Browse Source

Use a slice instead of a vector in prf_expand()

hush
Jack Grigg 5 years ago
parent
commit
566db65a91
No known key found for this signature in database GPG Key ID: 9E8255172BBF9898
  1. 2
      zcash_primitives/src/keys.rs

2
zcash_primitives/src/keys.rs

@ -12,7 +12,7 @@ pub const PRF_EXPAND_PERSONALIZATION: &'static [u8; 16] = b"Zcash_ExpandSeed";
/// PRF^expand(sk, t) := BLAKE2b-512("Zcash_ExpandSeed", sk || t)
pub fn prf_expand(sk: &[u8], t: &[u8]) -> Blake2bResult {
prf_expand_vec(sk, &vec![t])
prf_expand_vec(sk, &[t])
}
pub fn prf_expand_vec(sk: &[u8], ts: &[&[u8]]) -> Blake2bResult {

Loading…
Cancel
Save