Skip to content

Commit 566d4b7

Browse files
committed
Fix indentation issues
Signed-off-by: Gowtham Suresh Kumar <gowtham.sureshkumar@arm.com>
1 parent b2839f5 commit 566d4b7

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

cryptoki/src/mechanism/ekdf.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ impl<'a> AesCbcDeriveParams<'a> {
2828
/// * `iv` - The initialization vector
2929
///
3030
/// * `data` - Data that will be encryption with the base key to obtain
31-
/// the new key from the resulted cypher.
31+
/// the new key from the resulted cypher.
3232
pub fn new(iv: [u8; 16], data: &'a [u8]) -> Self {
3333
Self {
3434
inner: cryptoki_sys::CK_AES_CBC_ENCRYPT_DATA_PARAMS {

cryptoki/src/mechanism/elliptic_curve.rs

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -42,13 +42,13 @@ impl<'a> Ecdh1DeriveParams<'a> {
4242
/// * `kdf` - The key derivation function to use.
4343
///
4444
/// * `public_data` - The other party's public key. A token MUST be able
45-
/// to accept this value encoded as a raw octet string (as per section
46-
/// A.5.2 of ANSI X9.62). A token MAY, in addition, support accepting
47-
/// this value as a DER-encoded `ECPoint` (as per section E.6 of ANSI
48-
/// X9.62) i.e. the same as a `CKA_EC_POINT` encoding. The calling
49-
/// application is responsible for converting the offered public key to the
50-
/// compressed or uncompressed forms of these encodings if the token does
51-
/// not support the offered form.
45+
/// to accept this value encoded as a raw octet string (as per section
46+
/// A.5.2 of ANSI X9.62). A token MAY, in addition, support accepting
47+
/// this value as a DER-encoded `ECPoint` (as per section E.6 of ANSI
48+
/// X9.62) i.e. the same as a `CKA_EC_POINT` encoding. The calling
49+
/// application is responsible for converting the offered public key to the
50+
/// compressed or uncompressed forms of these encodings if the token does
51+
/// not support the offered form.
5252
pub fn new(kdf: EcKdf<'a>, public_data: &'a [u8]) -> Self {
5353
Self {
5454
kdf: kdf.kdf_type,

cryptoki/src/session/random.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ impl Session {
1313
/// # Arguments
1414
///
1515
/// * `random_slice` - The slice to stick the random data into. The length of the slice represents
16-
/// the number of bytes to obtain from the RBG
16+
/// the number of bytes to obtain from the RBG
1717
pub fn generate_random_slice(&self, random_data: &mut [u8]) -> Result<()> {
1818
unsafe {
1919
Rv::from(get_pkcs11!(self.client(), C_GenerateRandom)(

0 commit comments

Comments
 (0)