Skip to content

Commit

Permalink
docs(readme): add Note About Key Generation Speed
Browse files Browse the repository at this point in the history
  • Loading branch information
zicklag authored Jul 26, 2021
1 parent e4027b1 commit 9559d99
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,12 @@ let dec_data = priv_key.decrypt(PaddingScheme::new_pkcs1v15(), &enc_data).expect
assert_eq!(&data[..], &dec_data[..]);
```

> **Note:** If you encounter unusually slow key generation time while using `RSAPrivateKey::new` you can try to compile in release mode or add the following to your `Cargo.toml`. Key generation is much faster when building with higher optimization levels, but this will increase the compile time a bit.
> ```
> [profile.debug]
> opt-level = 3
> ```
## Status
Currently at Phase 1 (v) :construction:.
Expand Down

0 comments on commit 9559d99

Please sign in to comment.