Skip to content

Constify accessor methods to the Algorithm struct #2809

@jalil-salame

Description

@jalil-salame

For type safety, it would be nice if at least Algorithm::key_len was const so you could use it as the size of an array instead of hardcoding the value, e.g.

type CHACHA_KEY = [u8; ring::aead::CHACHA20_POLY1305.key_len()];

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