Skip to content

schreibwsag/crypto_xp_rs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Experimental Rust Crypto API for Learning Purposes

Build: cargo build Run example: cargo run --example example_verbose

Test Suite for crypto_full

Incluldes a set of unit tests that exercise the SoftwareProvider through the provider-agnostic API traits. It assumes A1 (API) and A2 (Software Provider) are already merged into your project and Cargo.toml has the dependencies from A2.

Usage

Run the tests: cargo test

Notes

  • AES-GCM expects 12-byte nonce
  • AES-CCM (configured as Ccm<Aes256,U16,U13>) expects 13-byte nonce
  • ChaCha20-Poly1305 expects 12-byte nonce
  • AES-CBC uses PKCS#7 padding
  • ECDSA signatures are DER-encoded
  • ECDH shared secret is 32 bytes (raw secret)

Criterion Benchmarks for crypto_full

Run with: cargo bench

About

Experimental crypto library in RUST

Resources

Contributing

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages