From b9c48b480a46761d7e0fe019a5665a86eda3ddaf Mon Sep 17 00:00:00 2001 From: Egor Duda Date: Tue, 17 May 2022 19:49:25 +0300 Subject: [PATCH] Common setting for unsupported CredentialId version --- src/ctap/crypto_wrapper.rs | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/ctap/crypto_wrapper.rs b/src/ctap/crypto_wrapper.rs index 73da5eb..e4a43ab 100644 --- a/src/ctap/crypto_wrapper.rs +++ b/src/ctap/crypto_wrapper.rs @@ -48,11 +48,7 @@ const ECDSA_CREDENTIAL_ID_VERSION: u8 = 0x01; #[cfg(feature = "ed25519")] const ED25519_CREDENTIAL_ID_VERSION: u8 = 0x02; #[cfg(test)] -#[cfg(feature = "ed25519")] -const UNSUPPORTED_CREDENTIAL_ID_VERSION: u8 = 0x03; -#[cfg(test)] -#[cfg(not(feature = "ed25519"))] -const UNSUPPORTED_CREDENTIAL_ID_VERSION: u8 = 0x02; +const UNSUPPORTED_CREDENTIAL_ID_VERSION: u8 = 0x80; /// Wraps the AES256-CBC encryption to match what we need in CTAP. pub fn aes256_cbc_encrypt(