Skip to content

Stringly-typed API inerited from the C FFI is hard to discover #81

@teythoon

Description

@teythoon

While porting Sequoia to Botan, I spent quite a bit of time grepping/reading Botan's source and stepping through the library in order to find the right strings to pass to various constructors like Cipher::new and Privkey::create to specify the algorithm, or methods like Privkey::sign to specify the padding scheme.

I think defining enums for algorithms, cipher modes, and padding schemes and any kind of argument that is currently a string would make the interface much nicer and more discoverable.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions