-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCargo.toml
More file actions
174 lines (133 loc) · 4.92 KB
/
Copy pathCargo.toml
File metadata and controls
174 lines (133 loc) · 4.92 KB
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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
[workspace]
resolver = "3"
members = ["oint-keys", "slug20-cli","x59pk-fmt", "app/openinternetcryptography/src-tauri", "libslug-zk-ext", "x59cert-std-rs" , "openinternetcryptographykeys", "openinternetcryptography-backend-node"]
[package]
name = "libslug"
version = "0.12.0"
edition = "2021"
keywords = ["crypto","cryptography","encryption","digest","signature"]
categories = ["cryptography"]
readme = "README.md"
license = "Apache-2.0 OR MIT"
description = "A Rust Library For Cryptography Intended For Slug20 That Supports X59 Certificate Format and Post-Quantum Cryptography"
repository = "https://github.com/sileneundula/libslug"
[dependencies]
# Curve25519 ECIES Encryption
# ecies-ed25519 = {version = "0.5.1", features=["serde"]}
ecies-ed25519 = {package="ecies-ed25519-silene", version="0.1.0", features=["serde"], optional=true}
# Randomness
rand = {version = "0.8.5", optional=true}
securerand-rs = {version="0.4.0", optional=true}
rand_2 = {package="rand", version="0.10.1"}
rand_core = "0.10.1"
# BIP39
tiny-bip39 = { version="2.0.0", optional=true}
# Password Deriviation
argon2 = { version= "0.5.3",optional=true}
# Security
subtle = "2.6.1"
subtle-encoding = "0.5.1"
zeroize = "1.9.0"
# Serialization
serde = { version = "1.0.0", features=["derive"] }
serde_yaml = "0.9.34"
serde_json = "1.0.150"
serde-big-array = "0.5.1"
bincode = "=1.3.3"
# Serialization Encryption
serde-encrypt = "0.7.0"
# Encoding
base58 = "0.2.0"
base32 = "0.5.1"
# Digest
tiny-keccak = {version = "2.0.2", features=["sha3","shake"], optional=true}
sha2 = {version = "0.11.0", optional=true}
blake2 = {version = "0.10.6", optional=true}
digest = {version = "0.11.3", optional=true}
blake3 = {version = "1.8.5", optional=true}
# ML-KEM
ml-kem = {version = "0.2.3", optional=true}
# Symmetric Encryption
chacha20poly1305 = {version = "0.10.1", optional=true}
aes-gcm = {version = "0.10.3", optional=true}
morus = {version="0.1.3", optional=true}
ascon-aead128 = "0.1.0-rc.3"
# PQ Signatures
pqcrypto-sphincsplus = { version = "0.7.2", optional=true}
pqcrypto-traits = {version = "0.3.5", optional=true}
pqcrypto-falcon = {version = "0.4.1", optional=true}
pqcrypto-hqc = {version = "0.2.2", optional=true}
# Signatures
ed25519-dalek = {version = "2.2.0", features=["rand_core"], optional=true}
schnorrkel = {version = "0.11.5", optional=true}
ecdsa = {version = "0.16.9", features=["verifying"], optional=true}
k256 = {version = "0.13.4", features=["ecdsa"], optional=true}
ml-dsa = {version = "0.0.4", optional=true}
ed448 = {version = "0.5.0", optional=true}
ed448-goldilocks = {version="0.9.0", optional=true}
ed448-goldilocks-plus = {version = "0.16.0", optional=true}
bls-signatures = {version = "0.15.0", optional=true}
ml-dsa-new = {package="ml-dsa", version = "=0.1.0", optional=true}
# /atropinetears/One-Time Signatures
leslie_lamport = { version = "0.3.1", optional=true}
winternitz-ots = {version= "0.3.0", optional=true}
# PQ
# Array
hybrid-array = "0.2.3"
hybrid-array-new = {package="hybrid-array", version="0.3.1"}
hybird-array-four = {package="hybrid-array", version="0.4.12"}
dirs = {version = "6.0.0", optional=true}
slugencode = "0.1.0"
bip32 = { version = "0.5.3", optional=true}
# Error Handling
thiserror = "2.0.18"
fixedstr = {version="0.5.11",features=["serde"]}
rsa = {version="0.9.10", optional=true}
log = "0.4.32"
# DER + PEM
der = "0.8.0"
pem = "3.0.6"
# Post-Quantum FIPS 205
slh-dsa = {version = "=0.2.0-rc.5", optional=true}
# Protobuf
protobuf = "4.34.1-release"
[features]
default = ["full"]
full = ["ecies-ed25519-sha3","kyber1024","aes256","xchacha20", "full-digests", "experimental", "full-signatures", "csprng", "bip39", "filesystem","bip32", "full-steady-signatures"]
# Public Key Encryption
ecies-ed25519-sha3 = ["dep:ecies-ed25519"]
kyber1024 = ["dep:ml-kem"]
# Symmetric Encryption
aes256 = ["dep:aes-gcm"]
xchacha20 = ["dep:chacha20poly1305"]
morus = ["dep:morus"]
# Hashing Algorithms
sha3 = ["dep:tiny-keccak", "digest"]
sha2 = ["dep:sha2", "digest"]
blake2 = ["dep:blake2", "digest"]
blake3 = ["dep:blake3", "digest"]
digest = ["dep:digest"]
# Signatures
schnorr = ["dep:schnorrkel"]
ed25519 = ["dep:ed25519-dalek"]
ecdsa = ["dep:ecdsa","k256"]
sphincs_plus = ["dep:pqcrypto-sphincsplus","dep:pqcrypto-traits"]
falcon = ["dep:pqcrypto-falcon","dep:pqcrypto-traits"]
ml-dsa = ["dep:ml-dsa"]
ed448 = ["dep:ed448","dep:ed448-goldilocks-plus","dep:ed448-goldilocks"]
bls = ["dep:bls-signatures"]
rsa = ["dep:rsa"]
slh-dsa = ["dep:slh-dsa"]
ml-dsa-new = ["dep:ml-dsa-new"]
# Other
bip39 = ["dep:tiny-bip39"]
bip32 = ["dep:bip32"]
filesystem = ["dep:dirs"]
csprng = ["dep:rand","dep:securerand-rs","dep:argon2"]
# Containers
full-digests = ["sha3","sha2","blake2","blake3","digest"]
full-signatures = ["schnorr","ed25519","ecdsa","sphincs_plus","falcon","ml-dsa","ed448","bls","rsa","ml-dsa-new"]
full-encryption = ["rsa","ecies-ed25519-sha3","kyber1024"]
full-steady-signatures = ["slh-dsa"]
# Experimental
experimental = ["dep:leslie_lamport","dep:winternitz-ots"]