# SPDX-FileCopyrightText: 2024 eaon # SPDX-License-Identifier: AGPL-3.0-or-later [package] name = "ecdh-omr" version = "0.1.1" description = "ECDH based Oblivious Message Retrieval" edition = "2021" authors = ["eaon "] license = "AGPL-3.0-or-later" repository = "https://codeberg.org/reach/reach/src/branch/main/common/ecdh-omr" keywords = ["cryptography", "diffie-hellman", "privacy", "pir"] readme = "README.md" [dependencies] aead = { version = "0.5.2", features = ["alloc"] } rand_core.workspace = true rand.workspace = true rand_chacha = "0.3.1" elliptic-curve = { version = "0.13", features = ["ecdh", "sec1"], optional = true } x25519-dalek = { workspace = true, features = ["static_secrets"], optional = true } [dev-dependencies] p256 = "0.13.2" aes = "0.8.4" ocb3 = "0.1.0" chacha20poly1305 = "0.10.1" criterion.workspace = true reach-harness.workspace = true [features] default = ["rustcrypto-ec", "dalek"] dalek = ["dep:x25519-dalek"] rustcrypto-ec = ["dep:elliptic-curve"] [lints] workspace = true [[bench]] name = "ecdh_omr_benches" harness = false