fork of boring2 with prefix patch
Go to file
Erick Tryzelaar 5ba7c49a91 Add destructors to all the types that need destructing 2013-08-15 07:55:22 -07:00
.gitignore Add a .gitignore 2012-07-03 20:29:29 -07:00
README.md Initial commit. 2011-12-15 10:04:00 -05:00
crypto.rc Update to rust 0.8-pre 2013-08-15 07:15:35 -07:00
hash.rs Add destructors to all the types that need destructing 2013-08-15 07:55:22 -07:00
manifest.json manifest: Add license. 2011-12-15 21:43:44 -05:00
pkcs5.rs Update to rust 0.8-pre 2013-08-15 07:15:35 -07:00
pkey.rs Add destructors to all the types that need destructing 2013-08-15 07:55:22 -07:00
rand.rs Update to rust 0.8-pre 2013-08-15 07:15:35 -07:00
symm.rs Add destructors to all the types that need destructing 2013-08-15 07:55:22 -07:00

README.md

This package provides Rust bindings for the functionality exposed by OpenSSL's libcrypto. Currently provided:

  • Hashes (hash.rs)
    • MD5
    • SHA-1
    • SHA-2 (224, 256, 384, 512)
  • Symmetric crypto (symm.rs)
    • AES in ECB or CBC mode, all key lengths
  • Keypair generation (pkey.rs)
    • RSA, all key lengths
  • Asymmetric encryption (pkey.rs)
    • RSA with PKCS#1 OAEP padding
  • Digital signatures (pkey.rs)
    • RSA with whatever your system openssl does (PKCS#1 on my system) and sha256

Each module provides two interfaces: a low-level API which wraps the OpenSSL interfaces as directly as possible and a high-level API which presents the OpenSSL API as a Rust object and tries to make sensible default choices about parameters most users won't care about. You probably want to use the high-level API. For documentation on these, see the individual source files.