sidh: API
This commit is contained in:
förälder
ed36ba540a
incheckning
7c79cbefc5
6
13.go
6
13.go
@ -29,6 +29,12 @@ import (
|
|||||||
const numSessionTickets = 2
|
const numSessionTickets = 2
|
||||||
|
|
||||||
type secretLabel int
|
type secretLabel int
|
||||||
|
type role uint8
|
||||||
|
|
||||||
|
const (
|
||||||
|
kRole_Server = iota
|
||||||
|
kRole_Client
|
||||||
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
secretResumptionPskBinder secretLabel = iota
|
secretResumptionPskBinder secretLabel = iota
|
||||||
|
@ -116,10 +116,19 @@ const (
|
|||||||
type CurveID uint16
|
type CurveID uint16
|
||||||
|
|
||||||
const (
|
const (
|
||||||
|
// Unexported
|
||||||
|
sidhP503 CurveID = 0
|
||||||
|
sidhP751 CurveID = 1
|
||||||
|
|
||||||
|
// Exported IDs
|
||||||
CurveP256 CurveID = 23
|
CurveP256 CurveID = 23
|
||||||
CurveP384 CurveID = 24
|
CurveP384 CurveID = 24
|
||||||
CurveP521 CurveID = 25
|
CurveP521 CurveID = 25
|
||||||
X25519 CurveID = 29
|
X25519 CurveID = 29
|
||||||
|
|
||||||
|
// Experimental KEX
|
||||||
|
HybridSidhP503Curve25519 CurveID = 0x0105 + sidhP503 // HybridSIDH: X25519 + P503
|
||||||
|
HybridSidhP751Curve448 CurveID = 0x0105 + sidhP751 // HybridSIDH: X448 + P751
|
||||||
)
|
)
|
||||||
|
|
||||||
// TLS 1.3 Key Share
|
// TLS 1.3 Key Share
|
||||||
|
Laddar…
Referens i nytt ärende
Block a user