1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2025-07-26 16:38:12 +00:00

fixup! feat(core): Implement OPTIGA provisioning in prodtest.

This commit is contained in:
Andrew Kozlik 2023-08-07 13:54:59 +02:00
parent 97eb7c7ba4
commit 9481fb8482

View File

@ -962,7 +962,7 @@ static void keyfido_write(char *data) {
return; return;
} }
// Hash the shared secret. Use the result as the decryption key and IV. // Hash the shared secret. Use the result as the decryption key.
sha256_Raw(secret, secret_size, secret); sha256_Raw(secret, secret_size, secret);
aes_decrypt_ctx ctx = {0}; aes_decrypt_ctx ctx = {0};
AES_RETURN aes_ret = aes_decrypt_key256(secret, &ctx); AES_RETURN aes_ret = aes_decrypt_key256(secret, &ctx);