Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

BouncyCastle AlgorithmIdentifier

How can i create a new instance of org.bouncycastle.asn1.x509.AlgorithmIdentifier of RSA OAEP? in order to be able to use it here:

JceKeyTransRecipientInfoGenerator(java.security.cert.X509Certificate recipientCert, org.bouncycastle.asn1.x509.AlgorithmIdentifier algorithmIdentifier)
like image 783
callafa Avatar asked Mar 21 '23 14:03

callafa


1 Answers

with current BouncyCastleVersions you can use a constant from org.bouncycastle.asn1.pkcs.PKCSObjectIdentifiers

AlgorithmIdentifier algorithmIdentifier = new AlgorithmIdentifier(PKCSObjectIdentifiers.id_RSAES_OAEP);
like image 91
jandd Avatar answered Apr 25 '23 15:04

jandd