File tree Expand file tree Collapse file tree 2 files changed +3
-6
lines changed Expand file tree Collapse file tree 2 files changed +3
-6
lines changed Original file line number Diff line number Diff line change 2
2
// SPDX-License-Identifier: Apache-2.0
3
3
//! Miscellaneous mechanisms:
4
4
//! - 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>
6
6
7
7
use std:: marker:: PhantomData ;
8
8
Original file line number Diff line number Diff line change @@ -944,11 +944,8 @@ fn derive_key_xor_key_and_data() -> TestResult {
944
944
Attribute :: Extractable ( true ) ,
945
945
] ;
946
946
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) ?;
952
949
953
950
let derived_key_value = session
954
951
. get_attributes ( derived_key, & [ AttributeType :: Value ] ) ?
You can’t perform that action at this time.
0 commit comments