Liking cljdoc? Tell your friends :D

roughtime-protocol.util


b64->bytesclj

(b64->bytes s)
source

bytes->b64clj

(bytes->b64 ba)
source

bytes->hex-stringclj

(bytes->hex-string bs)
source

bytes=clj

(bytes= a b)
source

concat-bytesclj

(concat-bytes coll)

Efficiently concatenate multiple byte arrays into one.

Efficiently concatenate multiple byte arrays into one.
sourceraw docstring

gen-nonceclj

(gen-nonce & {:keys [len] :or {len 32}})

Generate a 32-byte cryptographic nonce.

Generate a 32-byte cryptographic nonce.
sourceraw docstring

hex-str->blocksclj

(hex-str->blocks h)

Formats hex string into 8-char blocks for readability.

Formats hex string into 8-char blocks for readability.
sourceraw docstring

hex-string->bytesclj

(hex-string->bytes s)
source

le-bufferclj

(le-buffer ba)
source

long->hexclj

(long->hex x)
source

now-microsclj

(now-micros)
source

now-secondsclj

(now-seconds)
source

sha512-bytesclj

(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)
sourceraw docstring

sliceclj

(slice bs start end)

Returns a sub-section of a byte array.

Returns a sub-section of a byte array.
sourceraw docstring

u8clj

(u8 b)
source

u8-baclj

(u8-ba & xs)
source

u8-vecclj

(u8-vec ba)
source

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