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:: {
@@ -163,7 +167,7 @@ impl HpkeCrypto for HpkeRustCrypto {
163167 fn prng ( ) -> Self :: HpkePrng {
164168 #[ cfg( feature = "deterministic-prng" ) ]
165169 {
166- let mut fake_rng = vec ! [ 0u8 ; 256 ] ;
170+ let mut fake_rng = alloc :: vec![ 0u8 ; 256 ] ;
167171 rand_chacha:: ChaCha20Rng :: from_entropy ( ) . fill_bytes ( & mut fake_rng) ;
168172 HpkeRustCryptoPrng {
169173 fake_rng,
You can’t perform that action at this time.
0 commit comments