Skip to content

Commit

Permalink
Fix typos (#570)
Browse files Browse the repository at this point in the history
  • Loading branch information
kylefleming committed Dec 5, 2020
1 parent 8dfbad4 commit 568fe17
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion crypto/box/src/traits.rs
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ pub trait CryptoBox<KexAlgo: Kex>: Default {
/// Meant to mirror aead::decrypt_in_place
///
/// Decryption can fail if:
/// - The buffer is too short to be interpretted
/// - The buffer is too short to be interpreted
/// - The curvepoint cannot be deserialized
/// - The mac check fails
///
Expand Down
4 changes: 2 additions & 2 deletions crypto/box/src/versioned.rs
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ use rand_core::{CryptoRng, RngCore};

pub type RistrettoHkdfBlake2bAes128Gcm = HkdfBox<Ristretto, Blake2b, Aes128Gcm>;

/// A "magic byte" value checked during this process, but not interpretted.
/// A "magic byte" value checked during this process, but not interpreted.
const MAJOR_VERSION: u8 = 1;
/// The "default" version that we would use for encryption lacking any version negotiation.
const LATEST_MINOR_VERSION: u8 = 0;
Expand Down Expand Up @@ -82,7 +82,7 @@ impl VersionedCryptoBox {
pub fn acceptable_minor_versions() -> Vec<u8> {
ACCEPTABLE_MINOR_VERSIONS.to_vec()
}
/// Called by a client to select an acceptable version based on what a server adverstised
/// Called by a client to select an acceptable version based on what a server advertised
pub fn select_version(others_acceptable_versions: &[u8]) -> Result<Self, VersionError> {
Self::acceptable_minor_versions()
.iter()
Expand Down
2 changes: 1 addition & 1 deletion crypto/digestible/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -426,7 +426,7 @@ to an enumerator. In this case, we follow the rules for an aggregate when append
the anonymous struct to the transcript, and use the empty string for its name.

In rust, an enum where every variant has no associated data can be tagged with e.g. `repr(u32)`
and interpretted directly as a `u32`, as in C enums. An implementor may reasonably decide
and interpreted directly as a `u32`, as in C enums. An implementor may reasonably decide
to implement `digestible` for such an enum by converting to a `u32` and then appending that
as a primitive. In this case `derive(Digestible)` should not be used, and this choice should be documented
to allow cross-language implementations to do the same.
Expand Down

0 comments on commit 568fe17

Please sign in to comment.