AI_PKCS_OAEP_RSAPrivateBER

Simple DER encoding for the default algorithm:

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

C h a p t e r 2 A l g o r i t h m I n f o Ty p e s

145

Page 155
Image 155
RSA Security 5 manual Simple DER encoding for the default algorithm, General syntax is