Skip to content

Commit

Permalink
Fix up comment
Browse files Browse the repository at this point in the history
  • Loading branch information
nyonson committed Mar 29, 2024
1 parent 22c4222 commit b6b599e
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions protocol/src/hkdf.rs
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@
//! HMAC-based Extract-and-Expand Key Derivation Function (HKDF).
//!
//! The interface is scoped to BIP324's requirements. For
//! example, the hash implementation is hardcoded to SHA256, but
//! this could be abstracted away if necessary. The interface
//! also requires an extract step which is technically not
//! defined in the RFC5869.
//! Implementation based on RFC5869, but the interface is scoped
//! to BIP324's requirements.
use bitcoin_hashes::{Hash, HashEngine, Hmac, HmacEngine};
use core::fmt;
Expand All @@ -13,7 +10,7 @@ use core::fmt;
const MAX_OUTPUT_BLOCKS: usize = 255;

/// Size of output exceeds maximum length allowed.
#[derive(Copy, Clone, Debug)]
#[derive(Copy, Clone, Debug, PartialEq, Eq)]
pub struct MaxLengthError;

impl fmt::Display for MaxLengthError {
Expand Down

0 comments on commit b6b599e

Please sign in to comment.