File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -56,7 +56,7 @@ impl KbkdfCounterFormat {
5656///
5757/// Corresponds to CK_SP800_108_DKM_LENGTH_METHOD.
5858#[ derive( Debug , Clone , Copy ) ]
59- pub enum DkmLengthMethod {
59+ pub enum KbkdfDkmLengthMethod {
6060 /// Sum of length of all keys derived by given invocation of KDF.
6161 SumOfKeys ,
6262 /// Sum of length of all segments of output produced by PRF in given invocation of KDF.
@@ -81,14 +81,14 @@ impl KbkdfDkmLengthFormat {
8181 ///
8282 /// * `width_in_bits` - The number of bits used to represent the DKM length value.
8383 pub fn new (
84- dkm_length_method : DkmLengthMethod ,
84+ dkm_length_method : KbkdfDkmLengthMethod ,
8585 endianness : Endianness ,
8686 width_in_bits : usize ,
8787 ) -> Self {
8888 Self ( CK_SP800_108_DKM_LENGTH_FORMAT {
8989 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 ,
9292 } ,
9393 bLittleEndian : ( endianness == Endianness :: Little ) . into ( ) ,
9494 ulWidthInBits : width_in_bits
You can’t perform that action at this time.
0 commit comments