Liking cljdoc? Tell your friends :D

hive-system.crypto.tink

Tink-backed implementation of hive-system.protocols/ICrypto.

See hive-system.protocols/ICrypto for the parameter-object contract — every op receives a single map keyed under :crypto/*.

Algorithms supported: :xchacha20-poly1305 — symmetric AEAD (subtle.XChaCha20Poly1305) :hpke-x25519 — RFC 9180 single-shot HPKE (DHKEM-X25519 + HKDF-SHA256 + ChaCha20-Poly1305) :sha256 — message digest

Tink-backed implementation of `hive-system.protocols/ICrypto`.

See `hive-system.protocols/ICrypto` for the parameter-object contract —
every op receives a single map keyed under `:crypto/*`.

Algorithms supported:
  :xchacha20-poly1305  — symmetric AEAD (subtle.XChaCha20Poly1305)
  :hpke-x25519         — RFC 9180 single-shot HPKE
                         (DHKEM-X25519 + HKDF-SHA256 + ChaCha20-Poly1305)
  :sha256              — message digest
raw docstring

->tink-cryptoclj

(->tink-crypto)

Construct a Tink-backed ICrypto.

Construct a Tink-backed ICrypto.
sourceraw docstring

generate-ed25519-keypairclj

(generate-ed25519-keypair)

Generate a fresh Ed25519 keypair. Returns {:public 32-bytes :private 32-bytes}.

Generate a fresh Ed25519 keypair. Returns {:public 32-bytes :private 32-bytes}.
sourceraw docstring

generate-x25519-keypairclj

(generate-x25519-keypair)

Generate a fresh DHKEM-X25519 key pair. Returns {:public 32-bytes :private 32-bytes}.

Generate a fresh DHKEM-X25519 key pair. Returns {:public 32-bytes :private 32-bytes}.
sourceraw docstring

cljdoc builds & hosts documentation for Clojure/Script libraries

Keyboard shortcuts
Ctrl+kJump to recent docs
Move to previous article
Move to next article
Ctrl+/Jump to the search field
× close