6
6
namespace Org . BouncyCastle . Crypto . Parameters
7
7
{
8
8
/**
9
- * Parameter class for the HkdfBytesGenerator class.
9
+ * Parameter class for the HKdfBytesGenerator class.
10
10
*/
11
- public class HkdfParameters
11
+ public class HKdfParameters
12
12
: IDerivationParameters
13
13
{
14
14
private readonly byte [ ] ikm ;
15
15
private readonly bool skipExpand ;
16
16
private readonly byte [ ] salt ;
17
17
private readonly byte [ ] info ;
18
18
19
- private HkdfParameters ( byte [ ] ikm , bool skip , byte [ ] salt , byte [ ] info )
19
+ private HKdfParameters ( byte [ ] ikm , bool skip , byte [ ] salt , byte [ ] info )
20
20
{
21
21
if ( ikm == null )
22
22
throw new ArgumentNullException ( "ikm" ) ;
@@ -51,7 +51,7 @@ private HkdfParameters(byte[] ikm, bool skip, byte[] salt, byte[] info)
51
51
* @param salt the salt to use, may be null for a salt for hashLen zeros
52
52
* @param info the info to use, may be null for an info field of zero bytes
53
53
*/
54
- public HkdfParameters ( byte [ ] ikm , byte [ ] salt , byte [ ] info )
54
+ public HKdfParameters ( byte [ ] ikm , byte [ ] salt , byte [ ] info )
55
55
: this ( ikm , false , salt , info )
56
56
{
57
57
}
@@ -65,14 +65,14 @@ public HkdfParameters(byte[] ikm, byte[] salt, byte[] info)
65
65
* @param info the info to use, may be null for an info field of zero bytes
66
66
* @return HKDFParameters that makes the implementation skip step 1
67
67
*/
68
- public static HkdfParameters SkipExtractParameters ( byte [ ] ikm , byte [ ] info )
68
+ public static HKdfParameters SkipExtractParameters ( byte [ ] ikm , byte [ ] info )
69
69
{
70
- return new HkdfParameters ( ikm , true , null , info ) ;
70
+ return new HKdfParameters ( ikm , true , null , info ) ;
71
71
}
72
72
73
- public static HkdfParameters DefaultParameters ( byte [ ] ikm )
73
+ public static HKdfParameters DefaultParameters ( byte [ ] ikm )
74
74
{
75
- return new HkdfParameters ( ikm , false , null , null ) ;
75
+ return new HKdfParameters ( ikm , false , null , null ) ;
76
76
}
77
77
78
78
/**
0 commit comments