Searched refs:AeadContext (Results 1 – 5 of 5) sorted by relevance
/packages/modules/Virtualization/libs/bssl/tests/ |
D | aead_test.rs | 15 use bssl_avf::{Aead, AeadContext, ApiName, CipherError, Error, ReasonCode, Result}; 41 let aead_ctx = AeadContext::new(Aead::aes_256_gcm(), &KEY1, tag_len)?; in aes_256_gcm_encrypts_and_decrypts_successfully() 53 let aead_ctx = AeadContext::new(Aead::aes_256_gcm(), &KEY1, tag_len)?; in aes_256_gcm_fails_to_encrypt_with_invalid_nonce() 74 let aead_ctx2 = AeadContext::new(Aead::aes_256_gcm(), &KEY2, tag_len)?; in aes_256_gcm_fails_to_decrypt_with_wrong_key() 91 let aead_ctx = AeadContext::new(Aead::aes_256_gcm(), &KEY1, tag_len)?; in aes_256_gcm_fails_to_decrypt_with_different_ad() 108 let aead_ctx = AeadContext::new(Aead::aes_256_gcm(), &KEY1, tag_len)?; in aes_256_gcm_fails_to_decrypt_with_different_nonce() 126 let aead_ctx = AeadContext::new(Aead::aes_256_gcm(), &KEY1, tag_len)?; in aes_256_gcm_fails_to_decrypt_corrupted_ciphertext() 139 let aead_ctx = AeadContext::new(Aead::aes_256_gcm(), &KEY1, tag_len)?; in aes_256_gcm_encrypt()
|
/packages/modules/Virtualization/libs/bssl/src/ |
D | aead.rs | 79 pub struct AeadContext { struct 84 impl Drop for AeadContext { argument 92 impl AeadContext { implementation
|
D | lib.rs | 38 pub use aead::{Aead, AeadContext, AES_GCM_NONCE_LENGTH};
|
/packages/modules/Virtualization/service_vm/requests/src/ |
D | keyblob.rs | 19 use bssl_avf::{hkdf, rand_bytes, Aead, AeadContext, Digester, AES_GCM_NONCE_LENGTH}; 76 let aead_ctx = AeadContext::new(Aead::aes_256_gcm(), kek.as_slice(), tag_len)?; in new() 87 let aead_ctx = AeadContext::new(Aead::aes_256_gcm(), kek.as_slice(), tag_len)?; in decrypt_private_key()
|
/packages/modules/Virtualization/pvmfw/src/ |
D | instance.rs | 21 use bssl_avf::{self, hkdf, Aead, AeadContext, Digester}; 92 fn aead_ctx_from_secret(secret: &[u8]) -> Result<AeadContext> { in aead_ctx_from_secret() argument 94 Ok(AeadContext::new(Aead::aes_256_gcm_randnonce(), key.as_slice(), /* tag_len */ None)?) in aead_ctx_from_secret()
|