Add TLS-1.2 EC J-PAKE-to-PMS KDF algorithm#91
Conversation
|
[Sorry, I made a mistake in reading the code, fixed these comments to correctly reflect the code] @gilles-peskine-arm @mpg - Note also that in mbedtls:
It just happens to work because both the X coordinate, and the output from SHA256 are 32 bytes. Applications only need to know the size of the output ( |
|
@athoelke I'm going on holiday for 4 weeks at the end of the week, and have a number of urgent things that require my attention, so it's unlikely I'll find time to review before I leave, sorry. I've added this to my list, and will look at it when I return if I can't find time this week. |
|
@mpg - would you be able to review this PR please? |
|
Thanks for the reminder, sorry I had forgotten about this, I'm having a look right now. |
Fixes #11
Note that this does not exactly follow the MBEDTLS implementation:
PSA_TLS12_ECJPAKE_TO_PMS_OUTPUT_SIZErather thanPSA_TLS12_ECJPAKE_TO_PMS_DATA_SIZE, which is more consistent with the other Crypto API support macros.