constants

package
v2.0.9+incompatible Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 6, 2018 License: MIT, MPL-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var CipherSuites = map[string]CipherSuite{}/* 127 elements not displayed */
View Source
var Curves = []Curve{
	Curve{
		Code:        1,
		Name:        "sect163k1",
		OpenSSLName: "",
		PFSName:     "K-163",
	},
	Curve{
		Code:        2,
		Name:        "sect163r1",
		OpenSSLName: "",
		PFSName:     "",
	},
	Curve{
		Code:        3,
		Name:        "sect163r2",
		OpenSSLName: "",
		PFSName:     "B-163",
	},
	Curve{
		Code:        4,
		Name:        "sect193r1",
		OpenSSLName: "",
		PFSName:     "",
	},
	Curve{
		Code:        5,
		Name:        "sect193r2",
		OpenSSLName: "",
		PFSName:     "",
	},
	Curve{
		Code:        6,
		Name:        "sect233k1",
		OpenSSLName: "",
		PFSName:     "K-233",
	},
	Curve{
		Code:        7,
		Name:        "sect233r1",
		OpenSSLName: "",
		PFSName:     "",
	},
	Curve{
		Code:        8,
		Name:        "sect239k1",
		OpenSSLName: "",
		PFSName:     "",
	},
	Curve{
		Code:        9,
		Name:        "sect283k1",
		OpenSSLName: "",
		PFSName:     "K-283",
	},
	Curve{
		Code:        10,
		Name:        "sect283r1",
		OpenSSLName: "",
		PFSName:     "B-283",
	},
	Curve{
		Code:        11,
		Name:        "sect409k1",
		OpenSSLName: "",
		PFSName:     "K-409",
	},
	Curve{
		Code:        12,
		Name:        "sect409r1",
		OpenSSLName: "",
		PFSName:     "B-409",
	},
	Curve{
		Code:        13,
		Name:        "sect571k1",
		OpenSSLName: "",
		PFSName:     "K-571",
	},
	Curve{
		Code:        14,
		Name:        "sect571r1",
		OpenSSLName: "",
		PFSName:     "B-571",
	},
	Curve{
		Code:        15,
		Name:        "secp160k1",
		OpenSSLName: "",
		PFSName:     "",
	},
	Curve{
		Code:        16,
		Name:        "secp160r1",
		OpenSSLName: "",
		PFSName:     "",
	},
	Curve{
		Code:        17,
		Name:        "secp160r2",
		OpenSSLName: "",
		PFSName:     "",
	},
	Curve{
		Code:        18,
		Name:        "secp192k1",
		OpenSSLName: "",
		PFSName:     "",
	},
	Curve{
		Code:        19,
		Name:        "secp192r1",
		OpenSSLName: "prime192v1",
		PFSName:     "P-192",
	},
	Curve{
		Code:        20,
		Name:        "secp224k1",
		OpenSSLName: "",
		PFSName:     "",
	},
	Curve{
		Code:        21,
		Name:        "secp224r1",
		OpenSSLName: "",
		PFSName:     "P-224",
	},
	Curve{
		Code:        22,
		Name:        "secp256k1",
		OpenSSLName: "",
		PFSName:     "",
	},
	Curve{
		Code:        23,
		Name:        "secp256r1",
		OpenSSLName: "prime256v1",
		PFSName:     "P-256",
	},
	Curve{
		Code:        24,
		Name:        "secp384r1",
		OpenSSLName: "",
		PFSName:     "P-384",
	},
	Curve{
		Code:        25,
		Name:        "secp521r1",
		OpenSSLName: "",
		PFSName:     "P-521",
	},
	Curve{
		Code:        26,
		Name:        "brainpoolP256r1",
		OpenSSLName: "",
		PFSName:     "",
	},
	Curve{
		Code:        27,
		Name:        "brainpoolP384r1",
		OpenSSLName: "",
		PFSName:     "",
	},
	Curve{
		Code:        28,
		Name:        "brainpoolP512r1",
		OpenSSLName: "",
		PFSName:     "",
	},
	Curve{
		Code:        29,
		Name:        "ecdh_x25519",
		OpenSSLName: "",
		PFSName:     "",
	},
	Curve{
		Code:        30,
		Name:        "ecdh_x448",
		OpenSSLName: "",
		PFSName:     "",
	},
}

Curves is a list of known IANA curves with their code point, IANA name, openssl name and PFS alias used by openssl

View Source
var Protocols = []Protocol{
	Protocol{
		OpenSSLName: "SSLv3",
		Code:        768,
	},
	Protocol{
		OpenSSLName: "TLSv1",
		Code:        769,
	},
	Protocol{
		OpenSSLName: "TLSv1.1",
		Code:        770,
	},
	Protocol{
		OpenSSLName: "TLSv1.2",
		Code:        771,
	},
}

Functions

This section is empty.

Types

type CipherSuite

type CipherSuite struct {
	IANAName     string     `json:"iana_name"`
	GnuTLSName   string     `json:"gnutls_name"`
	NSSName      string     `json:"nss_name"`
	Protocol     string     `json:"protocol"`
	ProtocolCode uint64     `json:"protocol_code"`
	Kx           string     `json:"kx"`
	Au           string     `json:"au"`
	Enc          Encryption `json:"encryption"`
	Mac          string     `json:"mac"`
	Code         uint64     `json:"code"`
}

type Curve

type Curve struct {
	Name        string `json:"iana_name"`
	OpenSSLName string `json:"openssl_name,omitempty"`
	PFSName     string `json:"pfs_name,omitempty"`
	Code        uint64 `json:"code"`
}

Curve is the definition of an elliptic curve

type Encryption

type Encryption struct {
	Cipher string `json:"cipher"`
	Bits   int    `json:"bits"`
}

type Protocol

type Protocol struct {
	OpenSSLName string `json:"openssl_name"`
	Code        int    `json:"code"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL