Comments (2)
It's more intended to be used in the destructured tuple form:
let (priv, pub) = keypair(seed);
... but yeah, a struct for PKC keypairs would probably be a good idea. Similarly with symmetric keys, actually, as keys should be made different to arrays of bytes. This is a large-ish undertaking, however, and probably something best decided on as a group or by the maintainer, as it is a question of policy: do we implement this functionality for users, taking an opinionated stance, or let them do it how they (the users) like?
from rust-crypto.
Another notable possible misuse, the size of the seed should be enforced by its type (seed of size different than 32 bytes break the algo(only visible when using verify)). Yet I do not have a practical answer for this ([u8;32] is not really nice to use).
from rust-crypto.
Related Issues (20)
- assertion failed: dst.len() * 4 == input.len()
- error: could not compile `rustc-serialize`. HOT 1
- progress on pbkdf2
- Yank breaking versions with "*" deps
- is there a plan to support ECDSA P256?
- Is it possible to provide a demo of using salsa20 HOT 2
- error: failed to run custom build command for `rust-crypto v0.2.36` HOT 1
- Another crypto project HOT 2
- shake_128.result_str();//No output HOT 1
- rustc-serialize dependency do not support wasm HOT 2
- gcc is deprecated HOT 1
- adding optional dependencies HOT 1
- feature request: Provide a type that wraps a Write and updates a digest when it's written to HOT 1
- aes::cbc_encryptor result not Send
- Shouldn't Digest.result_str call output_bytes instead of repeating the code ?
- build error: error: failed to run custom build command for rust-crypto v0.2.36 HOT 1
- aes::ecb_encryptor result not right and aes::ecb_decryptor error HOT 1
- What is the safest way to generate a key for Blowfish? HOT 1
- Ed25519 signature verification fails
- armv7-a build fail HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from rust-crypto.