Allow ECC P-384 only on supported FW

This commit is contained in:
Adam Velebil 2024-08-26 12:58:58 +02:00
parent 496087f27f
commit 9ca44856e5
No known key found for this signature in database
GPG Key ID: C9B1E4A3CBBD2E10

View File

@ -27,7 +27,9 @@ List<KeyType> getSupportedKeyTypes(Version version, bool isFips) => [
if (!isFips) KeyType.x25519,
],
KeyType.eccp256,
KeyType.eccp384,
if (version.isAtLeast(4, 0)) ...[
KeyType.eccp384,
]
];
PinPolicy getPinPolicy(SlotId slot, bool match) {