obcrypt 1.0.0

Bytes-in/bytes-out cryptographic core of the oboron protocol (authenticated core schemes, no encoding).
Documentation
# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO
#
# When uploading crates to the registry Cargo will automatically
# "normalize" Cargo.toml files for maximal compatibility
# with all versions of Cargo and also rewrite `path` dependencies
# to registry (e.g., crates.io) dependencies.
#
# If you are reading this file be aware that the original Cargo.toml
# will likely look very different (and much more reasonable).
# See Cargo.toml.orig for the original contents.

[package]
edition = "2021"
rust-version = "1.77.0"
name = "obcrypt"
version = "1.0.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 (authenticated core schemes, no encoding)."
homepage = "https://oboron.org/"
documentation = "https://docs.rs/obcrypt"
readme = "README.md"
keywords = [
    "encryption",
    "cryptography",
    "oboron",
    "aes",
    "siv",
]
categories = ["cryptography"]
license = "MIT OR Apache-2.0"
repository = "https://gitlab.com/oboron/obcrypt-rs"

[features]
default = [
    "dgcmsiv",
    "pgcmsiv",
    "dsiv",
    "psiv",
]
dgcmsiv = [
    "aes-gcm-siv",
    "hkdf",
    "sha2",
]
dsiv = ["aes-siv"]
mock = []
pgcmsiv = [
    "aes-gcm-siv",
    "hkdf",
    "sha2",
]
psiv = ["aes-siv"]

[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-gcm-siv]
version = "0.11"
optional = true

[dependencies.aes-siv]
version = "0.7"
optional = true

[dependencies.hex]
version = "0.4"

[dependencies.hkdf]
version = "0.12"
optional = true

[dependencies.sha2]
version = "0.10"
optional = true

[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"]