mirror of
https://gogs.blitter.com/RLabs/xs
synced 2024-08-14 10:26:42 +00:00
Add optional cipher/hmac algo remodulate on rekey
This commit is contained in:
parent
e82d968381
commit
32b669192b
6 changed files with 103 additions and 11 deletions
|
@ -122,5 +122,19 @@ const (
|
|||
HmacNoneDisallowed
|
||||
)
|
||||
|
||||
// Conn opts outside of basic kex/cipher/hmac connect config
|
||||
const (
|
||||
CONone = iota
|
||||
CORemodulateShields // if set, rekeying also reselects random cipher/hmac alg
|
||||
)
|
||||
|
||||
type COValue uint32
|
||||
|
||||
// Available HMACs for hkex.Conn
|
||||
type CSHmacAlg uint32
|
||||
|
||||
// Some bounds-checking consts
|
||||
const (
|
||||
REKEY_SECS_MIN = 1
|
||||
CHAFF_FREQ_MSECS_MIN = 1
|
||||
)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue