AI_PKCS_OAEPRecodeBER

encoding of the default algorithm is given first, followed by the general syntax.

--Default Algorithm Identifier for RSAES-OAEP.

--The DER Encoding of this is in hexadecimal given below.

--Notice that the DER encoding of the default parameters

--is just an empty sequence.

--30 0D

--06 09

--2A 86 48 86 F7 0D 01 01 07

--30 00

--

RSAES-OAEP-Default-Identifier ::= AlgorithmIdentifier { id-RSAES-OAEP,

{sha1Identifier,

mgf1SHA1Identifier, pSpecifiedEmptyIdentifier

}

}

The general syntax is:

RSAES-OAEP ::= Sequence

{

algorithm

OBJECT

IDENTIFIER (id-RSAES-OAEP),

parameters

RSAES-OAEP-params

}

 

 

--Identifier for PKCS #1 v2.0 OAEP.

--The DER for this in hexadecimal is:

--06 09

--2A 86 48 86 F7 0D 01 01 07

--

id-RSAES-OAEP OBJECT IDENTIFIER ::= {

iso(1) member-body(2) us(840) rsadsi(113549) pkcs(1) pkcs-1(1) RSAES-OAEP(7)}

--Identifier for the PKCS #1 v2.0 mask generation function,

--which takes a hash function AlgID as a parameter.

--The DER for this in hexadecimal is:

--06 09

--2A 86 48 86 F7 0D 01 01 08

--

id-mgf1 OBJECT IDENTIFIER ::= {

iso(1) member-body(2) us(840) rsadsi(113549) pkcs(1) pkcs-1(1) mgf1(8)}

1 6 2

R S A B S A F E C r y p t o - C L i b r a r y R e f e r e n c e M a n u a l

Page 172
Image 172
RSA Security 5 manual General syntax is