Skip to content

Architecture surrounding keys #63

@waltkb

Description

@waltkb

Keys in general:

  • Private keys do not have a method to get the public key from them
  • There does not exist a common public, or private key supertype
  • Perhaps a secret key supertype would be useful to incorporate as well

RSA:

  • RSA key pair generation involves an optional digest (hash) algorithm
  • RSA public/private key decoders require a digest (hash) algorithm
  • RSA PEM Key Encoding/Decoding: Client needs to know if PEM encoded string is in PKCS1 or in PKCS8 format.
  • RSA keys do not expose methods/fields for their parameters
  • RSA keys are bound to a specific signature/encryption scheme
  • RSA signatures with short keys (<= 1040 bits) lead to an exception

HMAC:

  • HMAC key generation cannot be parameterized (bit size and/or externally provided secret key)
  • HMAC default generated key bit size values, while fine in length, coincide with block size (they are too big, and can be shortened)

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions