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 log-state
                     {client-extension :frereth.cp.shared.constants/clnt-xtn
                      server-extension :frereth.cp.shared.constants/srvr-xtn}
                     nonce-suffix
                     crypto-cookie)
source

(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
sourceraw 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
sourceraw 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]})
source

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

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

× close