Home
last modified time | relevance | path

Searched refs:MacError (Results 1 – 8 of 8) sorted by relevance

/external/rust/beto-rust/nearby/crypto/crypto_provider_boringssl/src/
Dhmac.rs15 use crypto_provider::hmac::{InvalidLength, MacError};
37 fn verify_slice(self, tag: &[u8]) -> Result<(), MacError> { in verify_slice() argument
38 self.0.verify_slice(tag).map_err(|_| MacError) in verify_slice()
41 fn verify(self, tag: [u8; 32]) -> Result<(), MacError> { in verify() argument
42 self.0.verify(tag).map_err(|_| MacError)
45 fn verify_truncated_left(self, tag: &[u8]) -> Result<(), MacError> { in verify_truncated_left() argument
46 self.0.verify_truncated_left(tag).map_err(|_| MacError) in verify_truncated_left()
70 fn verify_slice(self, tag: &[u8]) -> Result<(), MacError> { in verify_slice() argument
71 self.0.verify_slice(tag).map_err(|_| MacError) in verify_slice()
74 fn verify(self, tag: [u8; 64]) -> Result<(), MacError> { in verify() argument
[all …]
/external/rust/beto-rust/nearby/crypto/crypto_provider_rustcrypto/src/
Dhmac_rc.rs15 use crypto_provider::hmac::{InvalidLength, MacError};
64 fn verify_slice(self, tag: &[u8]) -> Result<(), MacError> {
65 self.hmac_impl.verify_slice(tag).map_err(|_| MacError)
68 fn verify(self, tag: [u8; 32]) -> Result<(), MacError> {
69 self.hmac_impl.verify(&tag.into()).map_err(|_| MacError)
72 fn verify_truncated_left(self, tag: &[u8]) -> Result<(), MacError> {
75 .map_err(|_| MacError)
101 fn verify_slice(self, tag: &[u8]) -> Result<(), MacError> {
102 self.hmac_impl.verify_slice(tag).map_err(|_| MacError)
105 fn verify(self, tag: [u8; 64]) -> Result<(), MacError> {
[all …]
/external/rust/beto-rust/nearby/crypto/crypto_provider_openssl/src/
Dhmac_openssl.rs17 use crypto_provider::hmac::{InvalidLength, MacError};
51 fn verify_slice(self, tag: &[u8]) -> Result<(), MacError> { in verify_slice() argument
55 fn verify(self, tag: [u8; 32]) -> Result<(), MacError> { in verify() argument
59 fn verify_truncated_left(self, tag: &[u8]) -> Result<(), MacError> { in verify_truncated_left() argument
81 fn verify_slice(self, tag: &[u8]) -> Result<(), MacError> { in verify_slice() argument
85 fn verify(self, tag: [u8; 64]) -> Result<(), MacError> { in verify() argument
89 fn verify_truncated_left(self, tag: &[u8]) -> Result<(), MacError> { in verify_truncated_left() argument
135 fn verify_slice<H: OpenSslHash>(hmac: Hmac<H>, tag: &[u8]) -> Result<(), MacError> { in verify_slice() argument
144 Err(MacError) in verify_slice()
148 fn verify<const N: usize, H: OpenSslHash>(hmac: Hmac<H>, tag: [u8; N]) -> Result<(), MacError> { in verify() argument
[all …]
Dhmac_boringssl.rs23 use crypto_provider::hmac::{InvalidLength, MacError};
65 fn verify_slice(self, tag: &[u8]) -> Result<(), MacError> { in verify_slice() argument
71 Err(MacError) in verify_slice()
75 fn verify(self, tag: [u8; N]) -> Result<(), MacError> { in verify() argument
81 Err(MacError)
85 fn verify_truncated_left(self, tag: &[u8]) -> Result<(), MacError> { in verify_truncated_left() argument
90 return Err(MacError); in verify_truncated_left()
92 let left = slice.get(..len).ok_or(MacError)?; in verify_truncated_left()
96 Err(MacError) in verify_truncated_left()
/external/boringssl/src/rust/bssl-crypto/src/
Dhmac.rs69 pub fn verify_slice(self, tag: &[u8]) -> Result<(), MacError> { in verify_slice() argument
74 pub fn verify(self, tag: [u8; 32]) -> Result<(), MacError> { in verify() argument
79 pub fn verify_truncated_left(self, tag: &[u8]) -> Result<(), MacError> { in verify_truncated_left() argument
115 pub fn verify_slice(self, tag: &[u8]) -> Result<(), MacError> { in verify_slice() argument
120 pub fn verify(self, tag: [u8; 64]) -> Result<(), MacError> { in verify() argument
125 pub fn verify_truncated_left(self, tag: &[u8]) -> Result<(), MacError> { in verify_truncated_left() argument
137 pub struct MacError; struct
242 fn verify(self, tag: [u8; N]) -> Result<(), MacError> { in verify() argument
251 fn verify_slice(self, tag: &[u8]) -> Result<(), MacError> { in verify_slice() argument
252 tag.len().eq(&N).then_some(()).ok_or(MacError)?; in verify_slice()
[all …]
/external/cronet/third_party/boringssl/src/rust/bssl-crypto/src/
Dhmac.rs69 pub fn verify_slice(self, tag: &[u8]) -> Result<(), MacError> { in verify_slice() argument
74 pub fn verify(self, tag: [u8; 32]) -> Result<(), MacError> { in verify() argument
79 pub fn verify_truncated_left(self, tag: &[u8]) -> Result<(), MacError> { in verify_truncated_left() argument
115 pub fn verify_slice(self, tag: &[u8]) -> Result<(), MacError> { in verify_slice() argument
120 pub fn verify(self, tag: [u8; 64]) -> Result<(), MacError> { in verify() argument
125 pub fn verify_truncated_left(self, tag: &[u8]) -> Result<(), MacError> { in verify_truncated_left() argument
137 pub struct MacError; struct
242 fn verify(self, tag: [u8; N]) -> Result<(), MacError> { in verify() argument
251 fn verify_slice(self, tag: &[u8]) -> Result<(), MacError> { in verify_slice() argument
252 tag.len().eq(&N).then_some(()).ok_or(MacError)?; in verify_slice()
[all …]
/external/rust/beto-rust/nearby/crypto/crypto_provider_stubs/src/
Dlib.rs32 use crypto_provider::hmac::{Hmac, MacError};
115 fn verify_slice(self, _tag: &[u8]) -> Result<(), MacError> { in verify_slice() argument
119 fn verify(self, _tag: [u8; 32]) -> Result<(), MacError> { in verify() argument
123 fn verify_truncated_left(self, _tag: &[u8]) -> Result<(), MacError> { in verify_truncated_left() argument
145 fn verify_slice(self, _tag: &[u8]) -> Result<(), MacError> { in verify_slice() argument
149 fn verify(self, _tag: [u8; 64]) -> Result<(), MacError> { in verify() argument
153 fn verify_truncated_left(self, _tag: &[u8]) -> Result<(), MacError> { in verify_truncated_left() argument
/external/rust/beto-rust/nearby/crypto/crypto_provider/src/
Dhmac.rs30 fn verify_slice(self, tag: &[u8]) -> Result<(), MacError>; in verify_slice() argument
33 fn verify(self, tag: [u8; N]) -> Result<(), MacError>; in verify() argument
36 fn verify_truncated_left(self, tag: &[u8]) -> Result<(), MacError>; in verify_truncated_left() argument
42 pub struct MacError; struct