Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 1ad9e72

Browse files
committedJun 18, 2024
Fix typos
Signed-off-by: Gowtham Suresh Kumar <gowtham.sureshkumar@arm.com>
1 parent 96837f6 commit 1ad9e72

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed
 

‎cryptoki/src/slot/token_info.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ pub enum Limit {
5151
#[derive(Debug, Clone)]
5252
pub struct TokenInfo {
5353
// The following four strings are limited in size based on
54-
// the orignating struct definition. Sizes are in *bytes*
54+
// the originating struct definition. Sizes are in *bytes*
5555
// but UTF-8 data may represent fewer characters.
5656
// Original buffers were space (0x20) padded.
5757
label: String, // len <= 32 bytes

‎cryptoki/src/types.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -261,7 +261,7 @@ impl UtcTime {
261261

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

0 commit comments

Comments
 (0)
Please sign in to comment.