-
Notifications
You must be signed in to change notification settings - Fork 0
/
Cargo.toml
48 lines (41 loc) · 1.61 KB
/
Cargo.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
[package]
name = "coffio"
version = "0.1.0"
authors = ["Rodolphe Bréard <[email protected]>"]
edition = "2021"
description = "Abstraction layer for symmetric data encryption, primarily designed for database column encryption."
documentation = "https://docs.rs/coffio/"
readme = "README.md"
repository = "https://github.com/breard-r/coffio"
license = "MIT OR Apache-2.0"
keywords = ["cryptography", "encryption"]
categories = ["cryptography"]
[features]
default = ["aes", "chacha", "ikm-management"]
encryption = []
aes = ["encryption", "aes-gcm", "hkdf", "sha2"]
chacha = ["encryption", "chacha20poly1305", "blake3"]
ikm-management = []
encrypt-at = []
benchmark = ["criterion"]
[dependencies]
base64ct = { version = "1.6.0", default-features = false, features = ["std"] }
getrandom = { version = "0.2.12", default-features = false }
thiserror = { version = "2.0.3", default-features = false }
# chacha feature:
# - XChaCha20Poly1305WithBlake3
chacha20poly1305 = { version = "0.10.1", default-features = false, features = ["std"], optional = true }
blake3 = { version = "1.5.0", default-features = false, optional = true }
# aes feature:
# - Aes128GcmWithSha256
aes-gcm = { version = "0.10.3", default-features = false, features = ["std", "aes"], optional = true }
hkdf = { version = "0.12.4", default-features = false, features = ["std"], optional = true }
sha2 = { version = "0.10.8", default-features = false, features = ["std"], optional = true }
# Not in dev-dependencies so it can be optional
criterion = { version = "0.5.1", optional = true }
[[bench]]
name = "decryption"
harness = false
[[bench]]
name = "encryption"
harness = false