Home
last modified time | relevance | path

Searched refs:new_from_slice (Results 1 – 12 of 12) sorted by relevance

/external/boringssl/src/rust/bssl-crypto/src/
Dhmac.rs54 pub fn new_from_slice(key: &[u8]) -> Self { in new_from_slice() method
55 Self(Hmac::new_from_slice(key)) in new_from_slice()
100 pub fn new_from_slice(key: &[u8]) -> Self { in new_from_slice() method
101 Self(Hmac::new_from_slice(key)) in new_from_slice()
182 Self::new_from_slice(&key)
186 fn new_from_slice(key: &[u8]) -> Self { in new_from_slice() method
325 let mut hmac = HmacSha256::new_from_slice(&key); in hmac_sha256_test()
344 let mut hmac = HmacSha256::new_from_slice(&key); in hmac_sha256_reset_test()
381 let mut hmac: HmacSha256 = HmacSha256::new_from_slice(&key); in hmac_sha256_update_test()
409 let mut hmac = HmacSha256::new_from_slice(&key); in hmac_sha256_update_chunks_test()
[all …]
/external/cronet/third_party/boringssl/src/rust/bssl-crypto/src/
Dhmac.rs54 pub fn new_from_slice(key: &[u8]) -> Self { in new_from_slice() method
55 Self(Hmac::new_from_slice(key)) in new_from_slice()
100 pub fn new_from_slice(key: &[u8]) -> Self { in new_from_slice() method
101 Self(Hmac::new_from_slice(key)) in new_from_slice()
182 Self::new_from_slice(&key)
186 fn new_from_slice(key: &[u8]) -> Self { in new_from_slice() method
325 let mut hmac = HmacSha256::new_from_slice(&key); in hmac_sha256_test()
344 let mut hmac = HmacSha256::new_from_slice(&key); in hmac_sha256_reset_test()
381 let mut hmac: HmacSha256 = HmacSha256::new_from_slice(&key); in hmac_sha256_update_test()
409 let mut hmac = HmacSha256::new_from_slice(&key); in hmac_sha256_update_chunks_test()
[all …]
/external/rust/beto-rust/nearby/crypto/crypto_provider_rustcrypto/src/
Dhmac_rc.rs45 hmac::Hmac::new_from_slice(&key)
50 fn new_from_slice(key: &[u8]) -> Result<Self, InvalidLength> {
51 hmac::Hmac::new_from_slice(key)
82 hmac::Hmac::new_from_slice(&key)
87 fn new_from_slice(key: &[u8]) -> Result<Self, InvalidLength> {
88 hmac::Hmac::new_from_slice(key)
/external/rust/beto-rust/nearby/crypto/crypto_provider_boringssl/src/
Dhmac.rs25 fn new_from_slice(key: &[u8]) -> Result<Self, InvalidLength> { in new_from_slice() method
26 Ok(Self(bssl_crypto::hmac::HmacSha256::new_from_slice(key))) in new_from_slice()
58 fn new_from_slice(key: &[u8]) -> Result<Self, InvalidLength> { in new_from_slice() method
59 Ok(Self(bssl_crypto::hmac::HmacSha512::new_from_slice(key))) in new_from_slice()
/external/rust/beto-rust/nearby/crypto/crypto_provider_openssl/src/
Dhmac_openssl.rs39 fn new_from_slice(key: &[u8]) -> Result<Self, InvalidLength> { in new_from_slice() method
40 new_from_slice(key) in new_from_slice()
69 fn new_from_slice(key: &[u8]) -> Result<Self, InvalidLength> { in new_from_slice() method
70 new_from_slice(key) in new_from_slice()
112 fn new_from_slice<H: OpenSslHash>(key: &[u8]) -> Result<Hmac<H>, InvalidLength> { in new_from_slice() function
Dhmac_boringssl.rs46 fn new_from_slice(key: &[u8]) -> Result<Self, InvalidLength> { in new_from_slice() method
/external/rust/beto-rust/nearby/crypto/crypto_provider/src/
Dhmac.rs21 fn new_from_slice(key: &[u8]) -> Result<Self, InvalidLength>; in new_from_slice() method
136 let mut mac = H::new_from_slice(key).unwrap(); in run_test()
156 let mut mac = H::new_from_slice(key).unwrap(); in run_test()
/external/rust/beto-rust/nearby/crypto/crypto_provider_stubs/src/
Dlib.rs103 fn new_from_slice(_key: &[u8]) -> Result<Self, crypto_provider::hmac::InvalidLength> { in new_from_slice() method
133 fn new_from_slice(_key: &[u8]) -> Result<Self, crypto_provider::hmac::InvalidLength> { in new_from_slice() method
/external/rust/beto-rust/nearby/connections/ukey2/ukey2_connections/src/
Dd2d_connection_context_v1.rs339 let mut hmac = C::HmacSha256::new_from_slice(&self.signing_key).unwrap(); in encode_message_to_peer()
373 let mut hmac = C::HmacSha256::new_from_slice(&self.verify_key).unwrap(); in decode_message_from_peer()
/external/rust/crates/zip/src/
Daes.rs99 let hmac = Hmac::<Sha1>::new_from_slice(hmac_key).unwrap(); in validate()
/external/crosvm/media/cros-codecs/src/decoders/h264/
Dpicture.rs118 pub fn new_from_slice(slice: &Slice<&[u8]>, sps: &Sps, timestamp: u64) -> Self { in new_from_slice() method
Ddecoder.rs1690 let mut pic = PictureData::new_from_slice(slice, sps, timestamp); in init_current_pic()