List of usage examples for org.bouncycastle.asn1.pkcs PKCSObjectIdentifiers id_RSAES_OAEP
ASN1ObjectIdentifier id_RSAES_OAEP
To view the source code for org.bouncycastle.asn1.pkcs PKCSObjectIdentifiers id_RSAES_OAEP.
Click Source Link
From source file:no.difi.sdp.client.internal.CreateCMSDocument.java
License:Apache License
private AlgorithmIdentifier rsaesOaepIdentifier() { AlgorithmIdentifier hash = new AlgorithmIdentifier(NISTObjectIdentifiers.id_sha256, DERNull.INSTANCE); AlgorithmIdentifier mask = new AlgorithmIdentifier(PKCSObjectIdentifiers.id_mgf1, hash); AlgorithmIdentifier p_source = new AlgorithmIdentifier(PKCSObjectIdentifiers.id_pSpecified, new DEROctetString(new byte[0])); ASN1Encodable parameters = new RSAESOAEPparams(hash, mask, p_source); return new AlgorithmIdentifier(PKCSObjectIdentifiers.id_RSAES_OAEP, parameters); }