ech-config
Safe HaskellNone
LanguageHaskell2010

Network.TLS.ECH.Config

Description

Types for Configuration of Encrypted Client Hello.

Synopsis

Types

data ECHConfig Source #

Type for configuration of encrypted client hello.

Constructors

ECHConfig 

type ConfigId = Word8 Source #

Configuration identifier.

type ECHConfigExtensionType = Word16 Source #

Extension type.

ECH configuration list

loadECHConfigList :: FilePath -> IO [ECHConfig] Source #

Loading the wire format of ECHConfigList and decode it into ECHConfigList.

loadECHSecretKeys :: [FilePath] -> IO [(ConfigId, ByteString)] Source #

Loading secret keys stored in files whose names are "<num>.key".

loadECHSecretKeys ["0.key", "1.key"]

ECH configuration

Low level

getECHConfigList :: ReadBuffer -> IO [ECHConfig] Source #

putECHConfigList :: WriteBuffer -> [ECHConfig] -> IO () Source #

getECHConfig :: ReadBuffer -> IO ECHConfig Source #

putECHConfig :: WriteBuffer -> ECHConfig -> IO () Source #