yubikey 0.8.0-pre.0

This commit is contained in:
Jack Grigg
2023-03-23 13:46:05 +09:00
parent 0d0f64ff1b
commit d5395ea4e5
3 changed files with 56 additions and 48 deletions
+1 -1
View File
@@ -111,7 +111,7 @@ impl RecipientLine {
}
pub(crate) fn wrap_file_key(file_key: &FileKey, pk: &Recipient) -> Self {
let esk = EphemeralSecret::random(OsRng);
let esk = EphemeralSecret::random(&mut OsRng);
let epk = esk.public_key();
let epk_bytes = EphemeralKeyBytes::from_public_key(&epk);