File tree Expand file tree Collapse file tree 3 files changed +9
-9
lines changed Expand file tree Collapse file tree 3 files changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ impl<'a> AesCbcDeriveParams<'a> {
28
28
/// * `iv` - The initialization vector
29
29
///
30
30
/// * `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.
32
32
pub fn new ( iv : [ u8 ; 16 ] , data : & ' a [ u8 ] ) -> Self {
33
33
Self {
34
34
inner : cryptoki_sys:: CK_AES_CBC_ENCRYPT_DATA_PARAMS {
Original file line number Diff line number Diff line change @@ -42,13 +42,13 @@ impl<'a> Ecdh1DeriveParams<'a> {
42
42
/// * `kdf` - The key derivation function to use.
43
43
///
44
44
/// * `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.
52
52
pub fn new ( kdf : EcKdf < ' a > , public_data : & ' a [ u8 ] ) -> Self {
53
53
Self {
54
54
kdf : kdf. kdf_type ,
Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ impl Session {
13
13
/// # Arguments
14
14
///
15
15
/// * `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
17
17
pub fn generate_random_slice ( & self , random_data : & mut [ u8 ] ) -> Result < ( ) > {
18
18
unsafe {
19
19
Rv :: from ( get_pkcs11 ! ( self . client( ) , C_GenerateRandom ) (
You can’t perform that action at this time.
0 commit comments