Crates.io | ronnie-crypto |
lib.rs | ronnie-crypto |
version | 0.1.0 |
source | src |
created_at | 2023-09-29 15:15:48.140062 |
updated_at | 2023-09-29 15:15:48.140062 |
description | Wrapped based on OpenSSL, including interfaces for AES, HASH, RSA, HMAC, HKDF, ECDH, etc. |
homepage | https://github.com/smallevilbeast/ronnie-crypto |
repository | https://github.com/smallevilbeast/ronnie-crypto |
max_upload_size | |
id | 987461 |
size | 23,244 |
Wrapped based on OpenSSL, including interfaces for AES, HASH, RSA, HMAC, HKDF, ECDH, etc.
aes cbc
let key = b"abcdefghijklmnop";
let iv = b"abcdefghijklmnop";
let data = b"Hello, world! This is a test of the openssl encryptor.";
let ciphertext = aes_cbc_encrypt(key, iv, data).unwrap();