/aosp_15_r20/packages/modules/Virtualization/libs/bssl/src/ |
D | err.rs | 18 use bssl_avf_error::{CipherError, EcError, EcdsaError, GlobalError, ReasonCode}; 147 fn map_cipher_reason_code(reason: i32) -> Option<CipherError> { in map_cipher_reason_code() argument 149 bssl_sys::CIPHER_R_AES_KEY_SETUP_FAILED => CipherError::AesKeySetupFailed, in map_cipher_reason_code() 150 bssl_sys::CIPHER_R_BAD_DECRYPT => CipherError::BadDecrypt, in map_cipher_reason_code() 151 bssl_sys::CIPHER_R_BAD_KEY_LENGTH => CipherError::BadKeyLength, in map_cipher_reason_code() 152 bssl_sys::CIPHER_R_BUFFER_TOO_SMALL => CipherError::BufferTooSmall, in map_cipher_reason_code() 153 bssl_sys::CIPHER_R_CTRL_NOT_IMPLEMENTED => CipherError::CtrlNotImplemented, in map_cipher_reason_code() 155 CipherError::CtrlOperationNotImplemented in map_cipher_reason_code() 158 CipherError::DataNotMultipleOfBlockLength in map_cipher_reason_code() 160 bssl_sys::CIPHER_R_INITIALIZATION_ERROR => CipherError::InitializationError, in map_cipher_reason_code() [all …]
|
D | lib.rs | 36 pub use bssl_avf_error::{ApiName, CipherError, EcError, EcdsaError, Error, ReasonCode, Result};
|
/aosp_15_r20/external/cronet/third_party/boringssl/src/rust/bssl-crypto/src/cipher/ |
H A D | mod.rs | 31 pub struct CipherError; struct 47 fn apply_keystream(&mut self, buffer: &mut [u8]) -> Result<(), CipherError>; in apply_keystream() argument 67 fn encrypt_padded(self, buffer: &[u8]) -> Result<Vec<u8>, CipherError>; in encrypt_padded() argument 71 fn decrypt_padded(self, buffer: &[u8]) -> Result<Vec<u8>, CipherError>; in decrypt_padded() argument 185 fn apply_keystream_in_place(&mut self, buffer: &mut [u8]) -> Result<(), CipherError> { in apply_keystream_in_place() argument 196 let buff_len_int = c_int::try_from(cslice_buf_mut.len()).map_err(|_| CipherError)?; in apply_keystream_in_place() 213 Err(CipherError) in apply_keystream_in_place() 218 fn encrypt(self, buffer: &[u8]) -> Result<Vec<u8>, CipherError> { in encrypt() argument 236 let in_buff_len_int = c_int::try_from(cslice_in_buf.len()).map_err(|_| CipherError)?; in encrypt() 252 return Err(CipherError); in encrypt() [all …]
|
H A D | aes_cbc.rs | 19 BlockCipher, Cipher, CipherError, CipherInitPurpose, EvpAes128Cbc, EvpAes256Cbc, 38 fn encrypt_padded(self, buffer: &[u8]) -> Result<Vec<u8>, CipherError> { in encrypt_padded() argument 43 fn decrypt_padded(self, buffer: &[u8]) -> Result<Vec<u8>, CipherError> { in decrypt_padded() argument 64 fn encrypt_padded(self, buffer: &[u8]) -> Result<Vec<u8>, CipherError> { in encrypt_padded() argument 69 fn decrypt_padded(self, buffer: &[u8]) -> Result<Vec<u8>, CipherError> { in decrypt_padded() argument
|
H A D | aes_ctr.rs | 17 Cipher, CipherError, CipherInitPurpose, EvpAes128Ctr, EvpAes256Ctr, StreamCipher, 33 fn apply_keystream(&mut self, buffer: &mut [u8]) -> Result<(), CipherError> { in apply_keystream() argument 51 fn apply_keystream(&mut self, buffer: &mut [u8]) -> Result<(), CipherError> { in apply_keystream() argument
|
/aosp_15_r20/external/boringssl/src/rust/bssl-crypto/src/cipher/ |
H A D | mod.rs | 31 pub struct CipherError; struct 47 fn apply_keystream(&mut self, buffer: &mut [u8]) -> Result<(), CipherError>; in apply_keystream() argument 67 fn encrypt_padded(self, buffer: &[u8]) -> Result<Vec<u8>, CipherError>; in encrypt_padded() argument 71 fn decrypt_padded(self, buffer: &[u8]) -> Result<Vec<u8>, CipherError>; in decrypt_padded() argument 185 fn apply_keystream_in_place(&mut self, buffer: &mut [u8]) -> Result<(), CipherError> { in apply_keystream_in_place() argument 196 let buff_len_int = c_int::try_from(cslice_buf_mut.len()).map_err(|_| CipherError)?; in apply_keystream_in_place() 213 Err(CipherError) in apply_keystream_in_place() 218 fn encrypt(self, buffer: &[u8]) -> Result<Vec<u8>, CipherError> { in encrypt() argument 236 let in_buff_len_int = c_int::try_from(cslice_in_buf.len()).map_err(|_| CipherError)?; in encrypt() 252 return Err(CipherError); in encrypt() [all …]
|
H A D | aes_cbc.rs | 19 BlockCipher, Cipher, CipherError, CipherInitPurpose, EvpAes128Cbc, EvpAes256Cbc, 38 fn encrypt_padded(self, buffer: &[u8]) -> Result<Vec<u8>, CipherError> { in encrypt_padded() argument 43 fn decrypt_padded(self, buffer: &[u8]) -> Result<Vec<u8>, CipherError> { in decrypt_padded() argument 64 fn encrypt_padded(self, buffer: &[u8]) -> Result<Vec<u8>, CipherError> { in encrypt_padded() argument 69 fn decrypt_padded(self, buffer: &[u8]) -> Result<Vec<u8>, CipherError> { in decrypt_padded() argument
|
H A D | aes_ctr.rs | 17 Cipher, CipherError, CipherInitPurpose, EvpAes128Ctr, EvpAes256Ctr, StreamCipher, 33 fn apply_keystream(&mut self, buffer: &mut [u8]) -> Result<(), CipherError> { in apply_keystream() argument 51 fn apply_keystream(&mut self, buffer: &mut [u8]) -> Result<(), CipherError> { in apply_keystream() argument
|
/aosp_15_r20/packages/modules/Virtualization/libs/bssl/tests/ |
D | aead_test.rs | 15 use bssl_avf::{Aead, AeadContext, ApiName, CipherError, Error, ReasonCode, Result}; 62 ReasonCode::Cipher(CipherError::InvalidNonceSize), in aes_256_gcm_fails_to_encrypt_with_invalid_nonce() 80 Error::CallFailed(ApiName::EVP_AEAD_CTX_open, ReasonCode::Cipher(CipherError::BadDecrypt)); in aes_256_gcm_fails_to_decrypt_with_wrong_key() 97 Error::CallFailed(ApiName::EVP_AEAD_CTX_open, ReasonCode::Cipher(CipherError::BadDecrypt)); in aes_256_gcm_fails_to_decrypt_with_different_ad() 114 Error::CallFailed(ApiName::EVP_AEAD_CTX_open, ReasonCode::Cipher(CipherError::BadDecrypt)); in aes_256_gcm_fails_to_decrypt_with_different_nonce() 132 Error::CallFailed(ApiName::EVP_AEAD_CTX_open, ReasonCode::Cipher(CipherError::BadDecrypt)); in aes_256_gcm_fails_to_decrypt_corrupted_ciphertext()
|
/aosp_15_r20/packages/modules/Virtualization/libs/bssl/error/src/ |
D | code.rs | 27 Cipher(CipherError), 72 pub enum CipherError { enum 96 impl From<CipherError> for ReasonCode { 97 fn from(e: CipherError) -> ReasonCode { in from() 102 impl fmt::Display for CipherError { implementation
|
D | lib.rs | 24 pub use crate::code::{CipherError, EcError, EcdsaError, GlobalError, ReasonCode};
|
/aosp_15_r20/external/scapy/scapy/layers/tls/crypto/ |
H A D | cipher_aead.py | 20 from scapy.layers.tls.crypto.ciphers import CipherError 139 raise CipherError(P, A) 183 raise CipherError(nonce_explicit_str, C, mac) 310 raise CipherError(P, A) 338 raise CipherError(C, mac)
|
H A D | cipher_stream.py | 12 from scapy.layers.tls.crypto.ciphers import CipherError 85 raise CipherError(data) 91 raise CipherError(data)
|
H A D | cipher_block.py | 13 from scapy.layers.tls.crypto.ciphers import CipherError 84 raise CipherError(data) 97 raise CipherError(data)
|
H A D | ciphers.py | 11 class CipherError(Exception): class
|
/aosp_15_r20/system/secretkeeper/client/src/ |
H A D | lib.rs | 100 .map_err(Error::CipherError)?; in secret_management_request() 112 .map_err(Error::CipherError) in secret_management_request() 149 CipherError(ApiError), enumerator 165 Self::CipherError(e) => write!(f, "Error in encryption/decryption of packets {e:?}"), in fmt()
|
/aosp_15_r20/external/scapy/scapy/layers/tls/ |
H A D | record.py | 36 from scapy.layers.tls.crypto.ciphers import CipherError 317 except CipherError as e: 409 except CipherError as e: 449 except CipherError as e:
|
H A D | record_tls13.py | 26 from scapy.layers.tls.crypto.ciphers import CipherError 117 except CipherError as e:
|
/aosp_15_r20/packages/modules/Virtualization/libs/libservice_vm_requests/src/ |
D | keyblob.rs | 110 use bssl_avf::{ApiName, CipherError, Error}; 146 Error::CallFailed(ApiName::EVP_AEAD_CTX_open, CipherError::BadDecrypt.into()).into(); in decrypting_keyblob_fails_with_a_different_kek()
|
/aosp_15_r20/hardware/interfaces/security/secretkeeper/aidl/vts/ |
H A D | secretkeeper_test_client.rs | 194 .map_err(|e| secretkeeper_client::Error::CipherError(e))?; in secret_management_request_custom_aad() 206 .map_err(|e| secretkeeper_client::Error::CipherError(e))?) in secret_management_request_custom_aad()
|