Skip to content

pkcs8: better no_alloc support for DecodePrivateKey/EncodePrivateKey traits #2307

Description

@tarcieri

I am punting on these for the forthcoming v0.11 release, but the next time we do make breaking changes it would be nice to get them resolved:

  • PEM decoding: currently the whole pem feature enables alloc, but it would be nice to support no_alloc decoding by way of the DecodePrivateKey trait, especially as the der crate is capable of on-the-fly PEM decoding
  • Encoding: currently the whole EncodePrivateKey trait is gated on alloc, but it would be nice to support a no_alloc encoder for both DER and PEM that can write into a supplied buffer and return a slice

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions