[package]
edition = "2021"
rust-version = "1.77.0"
name = "obcrypt"
version = "0.2.0"
authors = ["Bojan Đuričković"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "Bytes-in/bytes-out cryptographic core of the oboron protocol (a-tier + u-tier schemes, no encoding)."
homepage = "https://oboron.org/"
documentation = "https://oboron.org/obcrypt"
readme = "README.md"
keywords = [
"encryption",
"cryptography",
"oboron",
"aes",
"siv",
]
categories = [
"cryptography",
"no-std",
]
license = "MIT"
repository = "https://gitlab.com/oboron/obcrypt-rs"
[features]
aags = ["aes-gcm-siv"]
aasv = ["aes-siv"]
apgs = ["aes-gcm-siv"]
apsv = ["aes-siv"]
default = [
"aags",
"apgs",
"aasv",
"apsv",
"upbc",
]
mock = []
upbc = [
"aes",
"cipher",
"cbc",
]
[lib]
name = "obcrypt"
crate-type = ["rlib"]
path = "src/lib.rs"
[[test]]
name = "roundtrip"
path = "tests/roundtrip.rs"
[dependencies.aead]
version = "0.5"
features = ["alloc"]
default-features = false
[dependencies.aes]
version = "0.8"
optional = true
[dependencies.aes-gcm-siv]
version = "0.11"
optional = true
[dependencies.aes-siv]
version = "0.7"
optional = true
[dependencies.cbc]
version = "0.1"
optional = true
[dependencies.cipher]
version = "0.4"
optional = true
[dependencies.hex]
version = "0.4"
[dependencies.thiserror]
version = "1.0"
[dependencies.zeroize]
version = "1"
features = ["derive"]
[target.'cfg(not(target_arch = "wasm32"))'.dependencies.rand]
version = "0.8"
[target.'cfg(target_arch = "wasm32")'.dependencies.getrandom]
version = "0.2"
features = ["js"]
[target.'cfg(target_arch = "wasm32")'.dependencies.rand]
version = "0.8"
features = ["getrandom"]