Skip to content

Commit

Permalink
Adjust formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
justsmth committed May 22, 2024
1 parent e2a378b commit 1e5bc72
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions aws-lc-rs/src/hkdf.rs
Original file line number Diff line number Diff line change
Expand Up @@ -395,6 +395,7 @@ enum InfoBytes {
Stack([u8; MAX_HKDF_INFO_STACK_LEN]),
Heap(Box<[u8]>),
}

impl InfoBytes {
fn new(info: &[u8]) -> Self {
if info.len() <= MAX_HKDF_INFO_STACK_LEN {
Expand All @@ -405,6 +406,7 @@ impl InfoBytes {
Self::Heap(info.into())
}
}

fn as_slice(&self) -> &[u8] {
match self {
Self::Stack(ary_bytes) => ary_bytes.as_slice(),
Expand Down

0 comments on commit 1e5bc72

Please sign in to comment.