Cryptographic Secret type (#615)

* Adds a type for cryptographic secrets

* default implementations and zeroize documentation

* removes whitespace
This commit is contained in:
kaczmarczyck
2023-04-19 18:02:48 +02:00
committed by GitHub
parent 3091b5a29d
commit 5f7eb3177b
36 changed files with 582 additions and 254 deletions

View File

@@ -113,7 +113,8 @@ fn main() {
|| {
let mut sha = sha256::Sha256::new();
sha.update(&contents);
sha.finalize();
let mut dummy_hash = [0; 32];
sha.finalize(&mut dummy_hash);
},
);
}