Example usage for org.bouncycastle.asn1.pkcs RSAESOAEPparams RSAESOAEPparams

List of usage examples for org.bouncycastle.asn1.pkcs RSAESOAEPparams RSAESOAEPparams

Introduction

In this page you can find the example usage for org.bouncycastle.asn1.pkcs RSAESOAEPparams RSAESOAEPparams.

Prototype

public RSAESOAEPparams(AlgorithmIdentifier hashAlgorithm, AlgorithmIdentifier maskGenAlgorithm,
            AlgorithmIdentifier pSourceAlgorithm) 

Source Link

Usage

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);
}