Example usage for org.bouncycastle.asn1.pkcs PKCSObjectIdentifiers id_pSpecified

List of usage examples for org.bouncycastle.asn1.pkcs PKCSObjectIdentifiers id_pSpecified

Introduction

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

Prototype

ASN1ObjectIdentifier id_pSpecified

To view the source code for org.bouncycastle.asn1.pkcs PKCSObjectIdentifiers id_pSpecified.

Click Source Link

Document

PKCS#1: 1.2.840.113549.1.1.9

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