(concat-bytes coll)Efficiently concatenate multiple byte arrays into one.
Efficiently concatenate multiple byte arrays into one.
(gen-nonce & {:keys [len] :or {len 32}})Generate a 32-byte cryptographic nonce.
Generate a 32-byte cryptographic nonce.
(hex-str->blocks h)Formats hex string into 8-char blocks for readability.
Formats hex string into 8-char blocks for readability.
(sha512-bytes n ba)(sha512-bytes n prefix-byte ba)(sha512-bytes n prefix-byte ba & more)Computes SHA-512 over an optional prefix byte and one or more byte arrays,
returning the first n bytes of the digest.
Examples: (sha512-bytes 32 ba) (sha512-bytes 32 prefix ba) (sha512-bytes 32 prefix ba1 ba2 ba3) (sha512-bytes 64 ba1 ba2)
Computes SHA-512 over an optional prefix byte and one or more byte arrays, returning the first `n` bytes of the digest. Examples: (sha512-bytes 32 ba) (sha512-bytes 32 prefix ba) (sha512-bytes 32 prefix ba1 ba2 ba3) (sha512-bytes 64 ba1 ba2)
(slice bs start end)Returns a sub-section of a byte array.
Returns a sub-section of a byte array.
cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |