From 1ad9e72c30b2e20130124392856aca7f5eecb80f Mon Sep 17 00:00:00 2001 From: Gowtham Suresh Kumar Date: Tue, 18 Jun 2024 14:24:52 +0100 Subject: [PATCH] Fix typos Signed-off-by: Gowtham Suresh Kumar --- cryptoki/src/slot/token_info.rs | 2 +- cryptoki/src/types.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/cryptoki/src/slot/token_info.rs b/cryptoki/src/slot/token_info.rs index cd020d41..9653c9b4 100644 --- a/cryptoki/src/slot/token_info.rs +++ b/cryptoki/src/slot/token_info.rs @@ -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 diff --git a/cryptoki/src/types.rs b/cryptoki/src/types.rs index 2711bdc6..19249450 100644 --- a/cryptoki/src/types.rs +++ b/cryptoki/src/types.rs @@ -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 { - // 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()?,