2.2.3.1.5.1.1 PUBLIC_KEY

The PUBLIC_KEY structure contains an encoding of a public key.


0


1


2


3


4


5


6


7


8


9

1
0


1


2


3


4


5


6


7


8


9

2
0


1


2


3


4


5


6


7


8


9

3
0


1

Size of Algorithm Id

Algorithm Parameters Length

Public Key Length

...

Reserved

Algorithm Id (variable)

...

Algorithm Parameters (variable)

...

PublicKey Data (variable)

...

Size of Algorithm Id (1 byte): The size, in little-endian byte order, of the Algorithm Id field, in bytes. MUST be set to 20 bytes.

Algorithm Parameters Length (2 bytes): The size, in little-endian byte order, of the Algorithm Parameters field, in bytes.

Public Key Length  (2 bytes): The size, in little-endian byte order, of the PublicKey Data field, in bytes. MUST be set to 140 bytes.

Reserved (1 byte): MUST be set to 0x00 and ignored on receipt.

Algorithm Id (variable): An ASN.1-encoded object identifier (OID) indicating the public key format. MUST be the same as the rsaEncryption identifier, as specified in [RFC3447] section A.1.

Algorithm Parameters (variable): An ASN.1-encoded object identifier (OID) indicating the public key format. MUST be the same as the rsaEncryption, as specified in [RFC3447] section A.1.

PublicKey Data (variable): An ASN.1-encoded 1024-bit RSA public key, as specified in [RFC3447] section A.1.1.