#crypto #api

crypto_api

Defines a general purpose API for various cryptographic primitives

6 releases

0.2.2 Mar 17, 2019
0.2.1 Mar 17, 2019
0.1.14 Mar 12, 2019
Download history 2362/week @ 2021-09-26 1516/week @ 2021-10-03 1448/week @ 2021-10-10 1488/week @ 2021-10-17 1224/week @ 2021-10-24 1364/week @ 2021-10-31 904/week @ 2021-11-07 761/week @ 2021-11-14 1795/week @ 2021-11-21 4505/week @ 2021-11-28 3865/week @ 2021-12-05 2526/week @ 2021-12-12 2004/week @ 2021-12-19 1700/week @ 2021-12-26 1834/week @ 2022-01-02 1738/week @ 2022-01-09

7,578 downloads per month
Used in 12 crates (3 directly)

BSD-2-Clause OR MIT

15KB
171 lines

License License

Crypto API

This crate defines a general purpose API for various cryptographic primitives. It's goal is to provide an abstraction layer that allows you to switch your cryptographic backend easily.

Primitives covered

The following primitives are covered:

  • Ciphers

    • Normal cipher
    • AEAD cipher
    • Streaming API
  • Hash

    • Normal hash
    • Variable-length hash
    • Streaming API
  • KDF

    • Normal parametrized KDF (tweaked with salt/info)
  • MAC

    • Normal MAC
    • Streaming API
  • PBKDF

    • Normal (CPU-hard) PBKDF
    • Memory-hard PBKDF
  • RNG

    • Cryptographically secure RNG
    • Cryptographically secure, seedable RNG
    • Cryptographically secure, deterministic RNG
  • Asymmetric Signer

    • Normal signer

lib.rs:

This crate defines a general purpose API for various cryptographic primitives. It's goal is to provide an abstraction layer that allows you to switch your cryptographic backend easily.

No runtime deps

`c\