Skip to content

Commit

Permalink
pr-1701: reuse type constants
Browse files Browse the repository at this point in the history
  • Loading branch information
Jill Kleiber committed Jun 24, 2024
1 parent 15c42c0 commit 8f5db23
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pg/src/main/java/org/bouncycastle/bcpg/S2K.java
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ public class S2K
public S2K(
int algorithm)
{
this.type = 0;
this.type = SIMPLE;
this.algorithm = algorithm;
}

Expand All @@ -141,7 +141,7 @@ public S2K(
int algorithm,
byte[] iv)
{
this.type = 1;
this.type = SALTED;
this.algorithm = algorithm;
this.iv = iv;
}
Expand All @@ -158,7 +158,7 @@ public S2K(
byte[] iv,
int itCount)
{
this.type = 3;
this.type = SALTED_AND_ITERATED;
this.algorithm = algorithm;
this.iv = iv;

Expand Down

0 comments on commit 8f5db23

Please sign in to comment.