mirror of
https://github.com/polhenarejos/pico-fido.git
synced 2026-08-29 07:59:04 +01:00
AUT_ENABLE now requires that same exact encrypted-key length before decrypting or using it as a ChaChaPoly key.
Signed-off-by: Pol Henarejos <pol.henarejos@cttc.es>
This commit is contained in:
@@ -163,6 +163,9 @@ int cbor_config(const uint8_t *data, size_t len) {
|
||||
if (mse.init == false) {
|
||||
CBOR_ERROR(CTAP2_ERR_NOT_ALLOWED);
|
||||
}
|
||||
if (vendorParamByteString.present == false || vendorParamByteString.len != 32 + 16) {
|
||||
CBOR_ERROR(CTAP1_ERR_INVALID_PARAMETER);
|
||||
}
|
||||
|
||||
mbedtls_chachapoly_context chatx;
|
||||
int ret = mse_decrypt_ct(vendorParamByteString.data, vendorParamByteString.len);
|
||||
|
||||
Reference in New Issue
Block a user