File tree 1 file changed +4
-4
lines changed
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -56,7 +56,7 @@ impl KbkdfCounterFormat {
56
56
///
57
57
/// Corresponds to CK_SP800_108_DKM_LENGTH_METHOD.
58
58
#[ derive( Debug , Clone , Copy ) ]
59
- pub enum DkmLengthMethod {
59
+ pub enum KbkdfDkmLengthMethod {
60
60
/// Sum of length of all keys derived by given invocation of KDF.
61
61
SumOfKeys ,
62
62
/// Sum of length of all segments of output produced by PRF in given invocation of KDF.
@@ -81,14 +81,14 @@ impl KbkdfDkmLengthFormat {
81
81
///
82
82
/// * `width_in_bits` - The number of bits used to represent the DKM length value.
83
83
pub fn new (
84
- dkm_length_method : DkmLengthMethod ,
84
+ dkm_length_method : KbkdfDkmLengthMethod ,
85
85
endianness : Endianness ,
86
86
width_in_bits : usize ,
87
87
) -> Self {
88
88
Self ( CK_SP800_108_DKM_LENGTH_FORMAT {
89
89
dkmLengthMethod : match dkm_length_method {
90
- DkmLengthMethod :: SumOfKeys => CK_SP800_108_DKM_LENGTH_SUM_OF_KEYS ,
91
- DkmLengthMethod :: SumOfSegments => CK_SP800_108_DKM_LENGTH_SUM_OF_SEGMENTS ,
90
+ KbkdfDkmLengthMethod :: SumOfKeys => CK_SP800_108_DKM_LENGTH_SUM_OF_KEYS ,
91
+ KbkdfDkmLengthMethod :: SumOfSegments => CK_SP800_108_DKM_LENGTH_SUM_OF_SEGMENTS ,
92
92
} ,
93
93
bLittleEndian : ( endianness == Endianness :: Little ) . into ( ) ,
94
94
ulWidthInBits : width_in_bits
You can’t perform that action at this time.
0 commit comments