We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 15c42c0 commit 8f5db23Copy full SHA for 8f5db23
pg/src/main/java/org/bouncycastle/bcpg/S2K.java
@@ -127,7 +127,7 @@ public class S2K
127
public S2K(
128
int algorithm)
129
{
130
- this.type = 0;
+ this.type = SIMPLE;
131
this.algorithm = algorithm;
132
}
133
@@ -141,7 +141,7 @@ public S2K(
141
int algorithm,
142
byte[] iv)
143
144
- this.type = 1;
+ this.type = SALTED;
145
146
this.iv = iv;
147
@@ -158,7 +158,7 @@ public S2K(
158
byte[] iv,
159
int itCount)
160
161
- this.type = 3;
+ this.type = SALTED_AND_ITERATED;
162
163
164
0 commit comments