Skip to content

Commit

Permalink
xof: Make the SeedStreamAes128 constructor public (#846)
Browse files Browse the repository at this point in the history
  • Loading branch information
cjpatton authored Nov 22, 2023
1 parent bf7a485 commit 125020f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/vdaf/xof.rs
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,9 @@ pub struct SeedStreamAes128(Ctr64BE<Aes128>);

#[cfg(feature = "crypto-dependencies")]
impl SeedStreamAes128 {
pub(crate) fn new(key: &[u8], iv: &[u8]) -> Self {
/// Construct an instance of the seed stream with the given AES key `key` and initialization
/// vector `iv`.
pub fn new(key: &[u8], iv: &[u8]) -> Self {
SeedStreamAes128(<Ctr64BE<Aes128> as KeyIvInit>::new(key.into(), iv.into()))
}

Expand Down

0 comments on commit 125020f

Please sign in to comment.