Skip to content

Commit

Permalink
Add EdDSA signature length constant
Browse files Browse the repository at this point in the history
EdDSA signatures must be 64 bytes long as per RFC 8032 5.1.6. (6).
This commit adds a constant for this length which may be used to
to pad shorter signatures.
  • Loading branch information
lukpueh committed Feb 24, 2021
1 parent 7024a5b commit 8a2e94d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions securesystemslib/gpg/eddsa.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@
# EdDSA Point Format (see RFC4880-bis8 13.3.)
ED25519_PUBLIC_KEY_LENGTH = 33
ED25519_PUBLIC_KEY_PREFIX = 0x40
# EdDSA signature byte length (see RFC 8032 5.1.6. (6))
ED25519_SIG_LENGTH = 64



Expand Down

0 comments on commit 8a2e94d

Please sign in to comment.