Lines Matching refs:CipherError

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()
161 bssl_sys::CIPHER_R_INPUT_NOT_INITIALIZED => CipherError::InputNotInitialized, in map_cipher_reason_code()
162 bssl_sys::CIPHER_R_INVALID_AD_SIZE => CipherError::InvalidAdSize, in map_cipher_reason_code()
163 bssl_sys::CIPHER_R_INVALID_KEY_LENGTH => CipherError::InvalidKeyLength, in map_cipher_reason_code()
164 bssl_sys::CIPHER_R_INVALID_NONCE_SIZE => CipherError::InvalidNonceSize, in map_cipher_reason_code()
165 bssl_sys::CIPHER_R_INVALID_OPERATION => CipherError::InvalidOperation, in map_cipher_reason_code()
166 bssl_sys::CIPHER_R_IV_TOO_LARGE => CipherError::IvTooLarge, in map_cipher_reason_code()
167 bssl_sys::CIPHER_R_NO_CIPHER_SET => CipherError::NoCipherSet, in map_cipher_reason_code()
168 bssl_sys::CIPHER_R_OUTPUT_ALIASES_INPUT => CipherError::OutputAliasesInput, in map_cipher_reason_code()
169 bssl_sys::CIPHER_R_TAG_TOO_LARGE => CipherError::TagTooLarge, in map_cipher_reason_code()
170 bssl_sys::CIPHER_R_TOO_LARGE => CipherError::TooLarge, in map_cipher_reason_code()
171 bssl_sys::CIPHER_R_WRONG_FINAL_BLOCK_LENGTH => CipherError::WrongFinalBlockLength, in map_cipher_reason_code()
172 bssl_sys::CIPHER_R_NO_DIRECTION_SET => CipherError::NoDirectionSet, in map_cipher_reason_code()
173 bssl_sys::CIPHER_R_INVALID_NONCE => CipherError::InvalidNonce, in map_cipher_reason_code()