Home
last modified time | relevance | path

Searched refs:tag_len (Results 1 – 3 of 3) sorted by relevance

/packages/modules/Virtualization/libs/bssl/tests/
Daead_test.rs38 let tag_len = None; in aes_256_gcm_encrypts_and_decrypts_successfully() localVariable
41 let aead_ctx = AeadContext::new(Aead::aes_256_gcm(), &KEY1, tag_len)?; in aes_256_gcm_encrypts_and_decrypts_successfully()
52 let tag_len = None; in aes_256_gcm_fails_to_encrypt_with_invalid_nonce() localVariable
53 let aead_ctx = AeadContext::new(Aead::aes_256_gcm(), &KEY1, tag_len)?; in aes_256_gcm_fails_to_encrypt_with_invalid_nonce()
71 let tag_len = None; in aes_256_gcm_fails_to_decrypt_with_wrong_key() localVariable
74 let aead_ctx2 = AeadContext::new(Aead::aes_256_gcm(), &KEY2, tag_len)?; in aes_256_gcm_fails_to_decrypt_with_wrong_key()
88 let tag_len = None; in aes_256_gcm_fails_to_decrypt_with_different_ad() localVariable
91 let aead_ctx = AeadContext::new(Aead::aes_256_gcm(), &KEY1, tag_len)?; in aes_256_gcm_fails_to_decrypt_with_different_ad()
105 let tag_len = None; in aes_256_gcm_fails_to_decrypt_with_different_nonce() localVariable
108 let aead_ctx = AeadContext::new(Aead::aes_256_gcm(), &KEY1, tag_len)?; in aes_256_gcm_fails_to_decrypt_with_different_nonce()
[all …]
/packages/modules/Virtualization/libs/bssl/src/
Daead.rs96 pub fn new(aead: Aead, key: &[u8], tag_len: Option<usize>) -> Result<Self> { in new()
97 let tag_len = tag_len.unwrap_or(AEAD_DEFAULT_TAG_LENGTH); in new() localVariable
100 let ctx = unsafe { EVP_AEAD_CTX_new(aead.0, key.as_ptr(), key.len(), tag_len) }; in new()
/packages/modules/Virtualization/service_vm/requests/src/
Dkeyblob.rs75 let tag_len = None; in new() localVariable
76 let aead_ctx = AeadContext::new(Aead::aes_256_gcm(), kek.as_slice(), tag_len)?; in new()
86 let tag_len = None; in decrypt_private_key() localVariable
87 let aead_ctx = AeadContext::new(Aead::aes_256_gcm(), kek.as_slice(), tag_len)?; in decrypt_private_key()