Skip to content

Commit 0be833d

Browse files
Make lint fixes
Signed-off-by: Jacob Prud'homme <[email protected]>
1 parent f8bb949 commit 0be833d

File tree

2 files changed

+3
-6
lines changed

2 files changed

+3
-6
lines changed

cryptoki/src/mechanism/misc.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
// SPDX-License-Identifier: Apache-2.0
33
//! Miscellaneous mechanisms:
44
//! - Simple key derivation mechanisms
5-
//! See: <https://docs.oasis-open.org/pkcs11/pkcs11-spec/v3.1/os/pkcs11-spec-v3.1-os.html#_Toc111203697>
5+
//! See: <https://docs.oasis-open.org/pkcs11/pkcs11-spec/v3.1/os/pkcs11-spec-v3.1-os.html#_Toc111203697>
66
77
use std::marker::PhantomData;
88

cryptoki/tests/basic.rs

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -944,11 +944,8 @@ fn derive_key_xor_key_and_data() -> TestResult {
944944
Attribute::Extractable(true),
945945
];
946946
let data = KeyDerivationStringData::new(&data_value);
947-
let derived_key = session.derive_key(
948-
&Mechanism::XorBaseAndData(data),
949-
key,
950-
&derived_key_template,
951-
)?;
947+
let derived_key =
948+
session.derive_key(&Mechanism::XorBaseAndData(data), key, &derived_key_template)?;
952949

953950
let derived_key_value = session
954951
.get_attributes(derived_key, &[AttributeType::Value])?

0 commit comments

Comments
 (0)