Skip to content

Commit 5f54a7e

Browse files
committed
added oids for RIPEMD160, SHA512/224, SHA512/256
1 parent eb5b0fd commit 5f54a7e

File tree

1 file changed

+4
-0
lines changed
  • prov/src/main/java/org/bouncycastle/jcajce/provider/symmetric

1 file changed

+4
-0
lines changed

prov/src/main/java/org/bouncycastle/jcajce/provider/symmetric/PBEPBKDF2.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
import org.bouncycastle.asn1.pkcs.PKCSObjectIdentifiers;
2323
import org.bouncycastle.crypto.CipherParameters;
2424
import org.bouncycastle.crypto.PasswordConverter;
25+
import org.bouncycastle.internal.asn1.iana.IANAObjectIdentifiers;
2526
import org.bouncycastle.jcajce.PBKDF2Key;
2627
import org.bouncycastle.jcajce.provider.config.ConfigurableProvider;
2728
import org.bouncycastle.jcajce.provider.symmetric.util.BCPBEKey;
@@ -44,10 +45,13 @@ public class PBEPBKDF2
4445
prfCodes.put(PKCSObjectIdentifiers.id_hmacWithSHA224, Integers.valueOf(PBE.SHA224));
4546
prfCodes.put(PKCSObjectIdentifiers.id_hmacWithSHA384, Integers.valueOf(PBE.SHA384));
4647
prfCodes.put(PKCSObjectIdentifiers.id_hmacWithSHA512, Integers.valueOf(PBE.SHA512));
48+
prfCodes.put(PKCSObjectIdentifiers.id_hmacWithSHA512_224, Integers.valueOf(PBE.SHA512_224));
49+
prfCodes.put(PKCSObjectIdentifiers.id_hmacWithSHA512_256, Integers.valueOf(PBE.SHA512_256));
4750
prfCodes.put(NISTObjectIdentifiers.id_hmacWithSHA3_256, Integers.valueOf(PBE.SHA3_256));
4851
prfCodes.put(NISTObjectIdentifiers.id_hmacWithSHA3_224, Integers.valueOf(PBE.SHA3_224));
4952
prfCodes.put(NISTObjectIdentifiers.id_hmacWithSHA3_384, Integers.valueOf(PBE.SHA3_384));
5053
prfCodes.put(NISTObjectIdentifiers.id_hmacWithSHA3_512, Integers.valueOf(PBE.SHA3_512));
54+
prfCodes.put(IANAObjectIdentifiers.hmacRIPEMD160, Integers.valueOf(PBE.RIPEMD160));
5155
prfCodes.put(GMObjectIdentifiers.hmac_sm3, Integers.valueOf(PBE.SM3));
5256
}
5357

0 commit comments

Comments
 (0)