2.2.18 RSAPUBKEY

The RSAPUBKEY structure contains information specific to a particular 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

magic

bitLen

pubExp

modulus (variable)

...

magic (4 bytes): An unsigned 32-bit integer that contains the sentinel value. This field MUST be set to 0x31415352.

bitLen (4 bytes): An unsigned 32-bit integer that contains the number of bits in the public key modulus.

pubExp (4 bytes): An unsigned 32-bit integer that contains the public exponent of the public key.

modulus (variable): A variable-length array of bytes containing the public key modulus. The length in bytes of this field is given by the bitLen field. The modulus field contains all (bitLen / 8) bytes of the public key modulus.