Top Description Fields Constructors Methods
org.bouncycastle.asn1.cms

public Class RsaKemParameters

extends ASN1Object
Class Inheritance
Imports
java.math.BigInteger, org.bouncycastle.asn1.ASN1EncodableVector, .ASN1Integer, .ASN1Object, .ASN1Primitive, .ASN1Sequence, .DERSequence, org.bouncycastle.asn1.x509.AlgorithmIdentifier

RFC 5990 RSA KEM parameters class.
 RsaKemParameters ::= SEQUENCE {
    keyDerivationFunction  KeyDerivationFunction,
    keyLength              KeyLength
  }

  KeyDerivationFunction ::= AlgorithmIdentifier
  KeyLength ::= INTEGER (1..MAX)

Field Summary

Modifier and TypeField and Description
private final AlgorithmIdentifier
private final BigInteger

Constructor Summary

AccessConstructor and Description
private
public
RsaKemParameters(AlgorithmIdentifier
algorithm ID describing the key derivation function.
keyDerivationFunction
,
int
length of key to be derived (in bytes).
keyLength
)

Base constructor.

Method Summary

Modifier and TypeMethod and Description
public static RsaKemParameters
public AlgorithmIdentifier
public BigInteger
public ASN1Primitive
toASN1Primitive()

Implements abstract org.bouncycastle.asn1.ASN1Object.toASN1Primitive.

Implements org.bouncycastle.asn1.ASN1Encodable.toASN1Primitive.

Method providing a primitive representation of this object suitable for encoding.
Inherited from org.bouncycastle.asn1.ASN1Object:
equalsgetEncodedgetEncodedhasEncodedTagValuehashCode

Field Detail

keyDerivationFunctionback to summary
private final AlgorithmIdentifier keyDerivationFunction
keyLengthback to summary
private final BigInteger keyLength

Constructor Detail

RsaKemParametersback to summary
private RsaKemParameters(ASN1Sequence sequence)
RsaKemParametersback to summary
public RsaKemParameters(AlgorithmIdentifier keyDerivationFunction, int keyLength)

Base constructor.

Parameters
keyDerivationFunction:AlgorithmIdentifier

algorithm ID describing the key derivation function.

keyLength:int

length of key to be derived (in bytes).

Method Detail

getInstanceback to summary
public static RsaKemParameters getInstance(Object o)
getKeyDerivationFunctionback to summary
public AlgorithmIdentifier getKeyDerivationFunction()
getKeyLengthback to summary
public BigInteger getKeyLength()
toASN1Primitiveback to summary
public ASN1Primitive toASN1Primitive()

Implements abstract org.bouncycastle.asn1.ASN1Object.toASN1Primitive.

Implements org.bouncycastle.asn1.ASN1Encodable.toASN1Primitive.

Doc from org.bouncycastle.asn1.ASN1Object.toASN1Primitive.

Method providing a primitive representation of this object suitable for encoding.

Returns:ASN1Primitive

a primitive representation of this object.