Skip to content

Use TryCryptoRng instead of CryptoRng #94

@josh-brown-anchor

Description

@josh-brown-anchor

There are a number of places in the library that the use the CryptoRng trait. This makes it impossible to pass failable randomness sources such as OsRng to these functions. Instead, this library should use the TryCryptoRng trait which is strictly more general and then add an error type to the error enum:

pub enum HpkeError {

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions