Skip to content

Commit

Permalink
Fix typos
Browse files Browse the repository at this point in the history
Signed-off-by: Gowtham Suresh Kumar <[email protected]>
  • Loading branch information
gowthamsk-arm committed Jun 18, 2024
1 parent 96837f6 commit 1ad9e72
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cryptoki/src/slot/token_info.rs
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ pub enum Limit {
#[derive(Debug, Clone)]
pub struct TokenInfo {
// The following four strings are limited in size based on
// the orignating struct definition. Sizes are in *bytes*
// the originating struct definition. Sizes are in *bytes*
// but UTF-8 data may represent fewer characters.
// Original buffers were space (0x20) padded.
label: String, // len <= 32 bytes
Expand Down
2 changes: 1 addition & 1 deletion cryptoki/src/types.rs
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,7 @@ impl UtcTime {

// UTC time has the format YYYYMMDDhhmmss00 as ASCII digits
pub(crate) fn convert_utc_time(orig: [u8; 16]) -> Result<UtcTime> {
// Note: No validaiton of these values beyond being ASCII digits
// Note: No validation of these values beyond being ASCII digits
// because PKCS#11 doesn't impose any such restrictions.
Ok(UtcTime {
year: std::str::from_utf8(&orig[0..4])?.parse()?,
Expand Down

0 comments on commit 1ad9e72

Please sign in to comment.