Common type formats

This section defines the wire format for types used by more than one of the top-level structures defined in other sections.

M_DSADiscreteLogGroup

This represents a structure with the following fields:

Field Size Format

p

variable

See M_Bignum

q

variable

See M_Bignum

g

variable

See M_Bignum

M_ECName

An enumeration type, represented as a 4-byte little-endian unsigned integer. Possible values include:

Value Name

2

ECName_NISTP192

3

ECName_NISTP224

4

ECName_NISTP256

5

ECName_NISTP384

6

ECName_NISTP521

7

ECName_NISTB163

8

ECName_NISTB233

9

ECName_NISTB283

10

ECName_NISTB409

11

ECName_NISTB571

12

ECName_NISTK163

13

ECName_NISTK233

14

ECName_NISTK283

15

ECName_NISTK409

16

ECName_NISTK571

17

ECName_ANSIB163v1

18

ECName_ANSIB191v1

19

ECName_SECP160r1

22

ECName_SECP256k1

23

ECName_BrainpoolP160r1

24

ECName_BrainpoolP160t1

25

ECName_BrainpoolP192r1

26

ECName_BrainpoolP192t1

27

ECName_BrainpoolP224r1

28

ECName_BrainpoolP224t1

29

ECName_BrainpoolP256r1

30

ECName_BrainpoolP256t1

31

ECName_BrainpoolP320r1

32

ECName_BrainpoolP320t1

33

ECName_BrainpoolP384r1

34

ECName_BrainpoolP384t1

35

ECName_BrainpoolP512r1

36

ECName_BrainpoolP512t1

M_EllipticCurve

This represents a structure with the following fields:

Field Size Format

name

4 bytes

Little-endian unsigned integer. See M_ECName

data

variable

Depends on field name. See below.

M_EllipticCurve.data representations

All of the supported values of name correspond to an empty (zero-length) data field.

M_KeyType

An enumeration type, represented as a 4-byte little-endian unsigned integer. Possible values include:

Value Name

1

KeyType_RSAPublic

2

KeyType_RSAPrivate

3

KeyType_DSAPublic

19

KeyType_DSAPrivate

39

KeyType_KCDSAPublic

40

KeyType_KCDSAPrivate

44

KeyType_ECPublic

45

KeyType_ECPrivate

46

KeyType_ECDSAPublic

47

KeyType_ECDSAPrivate

65

KeyType_Ed25519Public

66

KeyType_Ed25519Private

M_Mech

An enumeration type, represented as a 4-byte little-endian unsigned integer. Possible values include:

Value Name

170

Mech_DSAhSHA256

187

Mech_ECDSAhSHA512