Common setting for unsupported CredentialId version

This commit is contained in:
Egor Duda
2022-05-17 19:49:25 +03:00
parent dc7311a3bd
commit b9c48b480a

View File

@@ -48,11 +48,7 @@ const ECDSA_CREDENTIAL_ID_VERSION: u8 = 0x01;
#[cfg(feature = "ed25519")] #[cfg(feature = "ed25519")]
const ED25519_CREDENTIAL_ID_VERSION: u8 = 0x02; const ED25519_CREDENTIAL_ID_VERSION: u8 = 0x02;
#[cfg(test)] #[cfg(test)]
#[cfg(feature = "ed25519")] const UNSUPPORTED_CREDENTIAL_ID_VERSION: u8 = 0x80;
const UNSUPPORTED_CREDENTIAL_ID_VERSION: u8 = 0x03;
#[cfg(test)]
#[cfg(not(feature = "ed25519"))]
const UNSUPPORTED_CREDENTIAL_ID_VERSION: u8 = 0x02;
/// Wraps the AES256-CBC encryption to match what we need in CTAP. /// Wraps the AES256-CBC encryption to match what we need in CTAP.
pub fn aes256_cbc_encrypt( pub fn aes256_cbc_encrypt(