Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion aes-siv/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ pub type Nonce<NonceSize = U16> = Array<u8, NonceSize>;
/// AES-SIV tags (i.e. the Synthetic Initialization Vector value)
pub type Tag = Array<u8, U16>;

/// Convinience wrapper around `Siv` interface.
/// Convenience wrapper around `Siv` interface.
///
/// The `SivAead` type wraps the more powerful `Siv` interface in a more
/// commonly used Authenticated Encryption with Associated Data (AEAD) API,
Expand Down
2 changes: 1 addition & 1 deletion ccm/src/private.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ pub trait SealedNonce: Unsigned {
}

fn get_max_len() -> usize {
// a somewhat ugly code to prevent overlfow.
// a somewhat ugly code to prevent overflow.
// compiler should be able to completely optimize it out
let l = Self::get_l() as u128;
let v = (1 << (8 * l)) - 1;
Expand Down