File tree Expand file tree Collapse file tree 3 files changed +9
-1
lines changed Expand file tree Collapse file tree 3 files changed +9
-1
lines changed Original file line number Diff line number Diff line change 1+ use alloc:: { format, vec:: Vec } ;
2+
13use aes_gcm:: { Aes128Gcm as RC_Aes128Gcm , Aes256Gcm as RC_Aes256Gcm } ;
24use chacha20poly1305:: {
35 aead:: { Aead , KeyInit , Payload } ,
Original file line number Diff line number Diff line change 1+ use alloc:: { vec, vec:: Vec } ;
2+
13use hkdf:: Hkdf ;
24use hpke_rs_crypto:: error:: Error ;
35use sha2:: { Sha256 , Sha384 , Sha512 } ;
Original file line number Diff line number Diff line change 11#![ doc = include_str ! ( "../Readme.md" ) ]
2+ #![ cfg_attr( not( test) , no_std) ]
23
4+ extern crate alloc;
5+
6+ use alloc:: { string:: String , vec:: Vec } ;
37use core:: fmt:: Display ;
48
59use hpke_rs_crypto:: {
@@ -161,7 +165,7 @@ impl HpkeCrypto for HpkeRustCrypto {
161165 fn prng ( ) -> Self :: HpkePrng {
162166 #[ cfg( feature = "deterministic-prng" ) ]
163167 {
164- let mut fake_rng = vec ! [ 0u8 ; 256 ] ;
168+ let mut fake_rng = alloc :: vec![ 0u8 ; 256 ] ;
165169 rand_chacha:: ChaCha20Rng :: from_entropy ( ) . fill_bytes ( & mut fake_rng) ;
166170 HpkeRustCryptoPrng {
167171 fake_rng,
You can’t perform that action at this time.
0 commit comments