This repository was archived by the owner on Dec 29, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 139
DsaPublicKey
Shawn Willden edited this page Mar 7, 2015
·
1 revision
DSA public keys contain the following fields:
- "q": The DSA subprime
- "p": The DSA prime
- "g": The DSA base
- "y": The DSA public key exponent
- "size" : The size of the modulus in bits
Note: All fields are WebSafeBase64 encoded twos-complement representations of positive integers.
The digest size is 384 bits. SHA1 is used for the digest.
The KeyHash components are: [leftTrimZero(p).length] + [leftTrimZero(p)] + [leftTrimZero(q).length] + [leftTrimZero(q)] + [leftTrimZero(g).length] + [leftTrimZero(g)] + [leftTrimZero(y).length] + [leftTrimZero(y)]
The relevant parts of the KeyMetadata are as follows:
{
...
"purpose": "VERIFY",
"type": "DSA_PUB",
...
}
{
"g": (g_bytes),
"p": (p_bytes),
"q": (q_bytes),
"size": 1024,
"y": (y_bytes)
}
1024 bit key size
1024 bit key size
Defaults to 2048 bits 1024, 2048, 3072 bit key sizes supported