Skip to content

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

@tarcieri

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions