implementing security 1 handshake in .net
Posted: Thu Nov 14, 2024 9:29 am
Hello,
im trying to make an inhouse provisioning tool for esp32 wifi provisioning. Im writing this in .net and using Bouncycastle library for implementing security. With the encryption im way out of my league here. My issue arrises with handshake 1 response. The serial log on esp32 tells me that i have established secure session
but when i accept the response in my .net application i cannot match the decryptedDeviceVerifyData with my public key. i checked all status of handshake responses, and they both return ok, as is indicated by the esp itself. im unable to determine how to solve the problem (since i dont understand how this exchange works in the first place)
since i have quite alot of testing code i attached my implementation as a file. I hope someone can provide a clue to this, and thanks anyway
im trying to make an inhouse provisioning tool for esp32 wifi provisioning. Im writing this in .net and using Bouncycastle library for implementing security. With the encryption im way out of my league here. My issue arrises with handshake 1 response. The serial log on esp32 tells me that i have established secure session
but when i accept the response in my .net application i cannot match the decryptedDeviceVerifyData with my public key. i checked all status of handshake responses, and they both return ok, as is indicated by the esp itself. im unable to determine how to solve the problem (since i dont understand how this exchange works in the first place)
since i have quite alot of testing code i attached my implementation as a file. I hope someone can provide a clue to this, and thanks anyway