Liking cljdoc? Tell your friends :D

hive-license.derive

Key material derived from a signed licence, and AES-GCM sealing under it.

Contract: the derived key depends on the signature, which cannot be produced without the private key. A caller that needs unseal to obtain a value it depends on therefore cannot be satisfied by deleting the licence check.

Key material derived from a signed licence, and AES-GCM sealing under it.

Contract: the derived key depends on the signature, which cannot be produced
without the private key. A caller that needs `unseal` to obtain a value it
depends on therefore cannot be satisfied by deleting the licence check.
raw docstring

derive-keyclj

(derive-key signed purpose)

32 key bytes for purpose, bound to signed's signature and payload.

32 key bytes for `purpose`, bound to `signed`'s signature and payload.
raw docstring

sealclj

(seal signed purpose plaintext)

Base64 ciphertext of plaintext under the key derived for purpose. Deterministic: the IV is derived from purpose, so sealing is reproducible.

Base64 ciphertext of `plaintext` under the key derived for `purpose`.
Deterministic: the IV is derived from `purpose`, so sealing is reproducible.
raw docstring

unsealclj

(unseal signed purpose ciphertext)

Plaintext of base64 ciphertext, or nil when the licence does not derive the key it was sealed under.

Plaintext of base64 `ciphertext`, or nil when the licence does not derive
the key it was sealed under.
raw 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