Skip to content

Commit

Permalink
Fix a few typos (#311)
Browse files Browse the repository at this point in the history
  • Loading branch information
striezel authored May 23, 2023
1 parent 0333da5 commit b716e2c
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/errors.rs
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ pub enum ValidationError {
/// A field required is missing from the token
/// The parameter shows the name of the missing claim
MissingRequiredClaims(Vec<String>),
/// The token's expiry has passed (exp check failled, RFC7523 3.4)
/// The token's expiry has passed (exp check failed, RFC7523 3.4)
/// The parameter show how long the token has expired
Expired(Duration),
/// The token is not yet valid (nbf check failed, RFC7523 3.5)
Expand Down
6 changes: 3 additions & 3 deletions src/jwa.rs
Original file line number Diff line number Diff line change
Expand Up @@ -630,7 +630,7 @@ impl ContentEncryptionAlgorithm {
Ok(key)
}

/// Encrypt some payload with the provided algorith
/// Encrypt some payload with the provided algorithm
pub fn encrypt<T: Serialize + DeserializeOwned>(
self,
payload: &[u8],
Expand All @@ -646,7 +646,7 @@ impl ContentEncryptionAlgorithm {
}
}

/// Decrypt some payload with the provided algorith,
/// Decrypt some payload with the provided algorithm
pub fn decrypt<T: Serialize + DeserializeOwned>(
self,
encrypted: &EncryptionResult,
Expand Down Expand Up @@ -714,7 +714,7 @@ impl ContentEncryptionAlgorithm {
}
}

/// Return a psuedo random number generator
/// Return a pseudo random number generator
pub(crate) fn rng() -> &'static SystemRandom {
use std::ops::Deref;

Expand Down
4 changes: 2 additions & 2 deletions src/jwk.rs
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ impl<'de> Deserialize<'de> for PublicKeyUse {
/// Operations that the key is intended to be used for. This enum is serialized `untagged`
#[derive(Clone, Debug, Eq, PartialEq)]
pub enum KeyOperations {
/// Computer digitial signature or MAC
/// Compute digital signature or MAC
Sign,
/// Verify digital signature or MAC
Verify,
Expand Down Expand Up @@ -652,7 +652,7 @@ impl<T: Serialize + DeserializeOwned> JWK<T> {
/// A JSON object that represents a set of JWKs.
#[derive(Clone, Debug, Eq, PartialEq, Serialize, Deserialize)]
pub struct JWKSet<T> {
/// Containted JWKs
/// Contained JWKs
pub keys: Vec<JWK<T>>,
}

Expand Down

0 comments on commit b716e2c

Please sign in to comment.