Initialize all members of KdfParameters with default values

This commit is contained in:
Christian Hagau 2021-02-17 00:00:00 +00:00
parent b69a7c585d
commit 7dc0c5e184
1 changed files with 7 additions and 0 deletions

View File

@ -75,6 +75,13 @@ public abstract class KdfParameters {
public Builder() {
hasUsesKdf(false);
digestAlgorithm(HashType.SHA256);
iterations(0);
saltPw1(new byte[0]);
saltPw2(new byte[0]);
saltPw3(new byte[0]);
hashUser(new byte[0]);
hashAdmin(new byte[0]);
}
Builder parseKdfTLVs(Iso7816TLV[] tlvs) throws IOException {