Lines Matching refs:Err
55 Err(Error::RandomNumberGenerationFailed) in generate_aes256_key()
71 Err(Error::RandomNumberGenerationFailed) in generate_random_data()
88 _ => return Err(Error::InvalidIvLength), in aes_gcm_decrypt()
91 return Err(Error::InvalidAeadTagLength); in aes_gcm_decrypt()
96 _ => return Err(Error::InvalidKeyLength), in aes_gcm_decrypt()
116 false => Err(Error::DecryptionFailed), in aes_gcm_decrypt()
128 return Err(Error::RandomNumberGenerationFailed); in aes_gcm_encrypt()
133 _ => return Err(Error::InvalidKeyLength), in aes_gcm_encrypt()
154 Err(Error::EncryptionFailed) in aes_gcm_encrypt()
189 return Err(Error::InvalidSaltLength); in derive_key()
198 _ => return Err(Error::InvalidKeyLength), in derive_key()
240 return Err(Error::HKDFExtractFailed); in hkdf_extract()
244 return Err(Error::HKDFExtractFailed); in hkdf_extract()
261 return Err(Error::HKDFExpandFailed); in hkdf_expand()
324 return Err(Error::ECDHComputeKeyFailed); in ecdh_compute_key()
329 return Err(Error::ECDHComputeKeyFailed); in ecdh_compute_key()
342 return Err(Error::ECKEYGenerateKeyFailed); in ec_key_generate_key()
359 Err(Error::ECKEYMarshalPrivateKeyFailed) in ec_key_marshal_private_key()
369 Err(Error::ECKEYParsePrivateKeyFailed) in ec_key_parse_private_key()
390 return Err(Error::ECPoint2OctFailed); in ec_point_point_to_oct()
394 return Err(Error::ECPoint2OctFailed); in ec_point_point_to_oct()
405 return Err(Error::ECPoint2OctFailed); in ec_point_oct_to_point()
429 return Err(Error::ExtractSubjectFailed); in parse_subject_from_certificate()
449 return Err(Error::ExtractSubjectFailed); in parse_subject_from_certificate()