Liking cljdoc? Tell your friends :D

frereth.cp.server.cookie

For dealing with cookie packets on the server side

For dealing with cookie packets on the server side
raw docstring

(build-cookie-packet {client-extension :frereth.cp.shared.constants/clnt-xtn
                      server-extension :frereth.cp.shared.constants/srvr-xtn}
                     nonce-suffix
                     crypto-cookie)

(build-cookie-wrapper log-state shared-key nonce-suffix pk-session black-box)

Put together the real payload for the cookie packet

This builds the 144-byte crypto box that wraps the server's public session key and the actual cookie black-box

Put together the real payload for the cookie packet

This builds the 144-byte crypto box that wraps the server's
public session key and the actual cookie black-box
raw docstring

(build-inner-cookie log-state client-short-pk my-short-sk minute-key)
(build-inner-cookie log-state
                    client-short-pk
                    my-short-sk
                    minute-key
                    nonce-suffix)

Build the inner black-box Cookie portion of the Cookie Packet

Build the inner black-box Cookie portion of the Cookie Packet
raw docstring

do-build-responseclj

(do-build-response {:keys [:frereth.weald.specs/logger]
                    log-state :frereth.weald.specs/state
                    :as state}
                   {:keys [:frereth.cp.server.shared-specs/cookie-components
                           :frereth.cp.shared.constants/hello-spec]})

prepare-packet!clj

(prepare-packet! {:keys [:frereth.cp.server.state/client-short<->server-long
                         :frereth.weald.specs/logger
                         :frereth.cp.server.state/minute-key]
                  client-short-pk :frereth.cp.server.state/client-short-pk
                  log-state :frereth.weald.specs/state})

Set up the inner cookie

Set up the inner cookie
raw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close