Skip to main content

Module cookie

Module cookie 

Source
Expand description

Support for cookie authentication within the RPC protocol.

Re-exportsยง

use fs_mistrust::Mistrust; ๐Ÿ”’
use safelog::Sensitive; ๐Ÿ”’
use std::convert::Infallible; ๐Ÿ”’
use std::fs; ๐Ÿ”’
use std::io; ๐Ÿ”’
use std::path::Path; ๐Ÿ”’
use std::path::PathBuf; ๐Ÿ”’
use std::str::FromStr; ๐Ÿ”’
use std::sync::Arc; ๐Ÿ”’
use subtle::ConstantTimeEq as _; ๐Ÿ”’
use tiny_keccak::Hasher as _; ๐Ÿ”’
use zeroize::Zeroizing; ๐Ÿ”’

Structsยง

Cookie
A secret cookie value, used in RPC authentication.
CookieAuthMac
A MAC derived during the cookie authentication protocol.
CookieAuthNonce
A random nonce used during cookie authentication protocol.
CookieLocation
The location of a cookie on disk, and the rules to access it.

Enumsยง

CookieAccessError
An error that has occurred while trying to load or create a cookie.
HexError
An error when decoding a hexadecimal value.

Constantsยง

COOKIE_LEN
Length of an authentication cookie.
COOKIE_MAC_LEN ๐Ÿ”’
Length of the MAC values we use for cookie authentication.
COOKIE_NONCE_LEN ๐Ÿ”’
Length of the nonce values we use for cookie authentication.
COOKIE_PREFIX
A value used to differentiate cookie files, and as a personalization parameter within the RPC cookie authentication protocol.
COOKIE_PREFIX_LEN
Length of COOKIE_PREFIX.
TUPLEHASH_CUSTOMIZATION ๐Ÿ”’
Customization string used to initialize TupleHash.