#primitive #hash #cipher #api #defines #mac #rng

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

#2388 in Cryptography

Download history 2007/week @ 2024-07-19 1558/week @ 2024-07-26 1343/week @ 2024-08-02 1487/week @ 2024-08-09 1286/week @ 2024-08-16 1932/week @ 2024-08-23 1805/week @ 2024-08-30 1735/week @ 2024-09-06 1764/week @ 2024-09-13 1512/week @ 2024-09-20 1435/week @ 2024-09-27 981/week @ 2024-10-04 1177/week @ 2024-10-11 1076/week @ 2024-10-18 1357/week @ 2024-10-25 1419/week @ 2024-11-01

5,323 downloads per month
Used in 9 crates (4 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