Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add alloc feature for easier lib usage #42

Open
l1h3r opened this issue Jan 10, 2021 · 0 comments
Open

Add alloc feature for easier lib usage #42

l1h3r opened this issue Jan 10, 2021 · 0 comments
Assignees

Comments

@l1h3r
Copy link
Contributor

l1h3r commented Jan 10, 2021

Description

Continuing the discussion from #3 - crypto.rs should provide an alloc feature that allows opting in to more convenient usage patterns (eg. returning Vec<T> from a function) and to provide support for primitives requiring allocation (eg. RSA)

Motivation

This improves usability of crypto.rs and is required to support certain algorithms (eg. RSA)

Requirements

  1. Add an alloc cargo feature to enable condition compilation with #[cfg(feature = "alloc")]
  2. Add *_vec functions where they make sense (eg. AES_256_GCM::encrypt_vec)

Are you planning to do it yourself in a pull request?

Maybe.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants