Documentation ¶
Overview ¶
Package nist implements cryptographic groups and ciphersuites based on the NIST standards, using Go's built-in crypto library.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type P256 ¶
type P256 struct {
// contains filtered or unexported fields
}
P256 implements the group.Group interface for the NIST P-256 elliptic curve.
func (*P256) PointLen ¶
func (c *P256) PointLen() int
Return the number of bytes in the encoding of a Point for this curve. Currently uses uncompressed ANSI X9.62 format with both X and Y coordinates; this could change.
func (*P256) Scalar ¶
Create a Scalar associated with this curve. The scalars created by this package implement group.Scalar's SetBytes method, interpreting the bytes as a big-endian integer, so as to be compatible with the Go standard library's big.Int type.
type P384 ¶
type P384 struct {
// contains filtered or unexported fields
}
P384 implements the group.Group interface for the NIST P-384 elliptic curve.
func (*P384) PointLen ¶
func (c *P384) PointLen() int
Return the number of bytes in the encoding of a Point for this curve. Currently uses uncompressed ANSI X9.62 format with both X and Y coordinates; this could change.
func (*P384) Scalar ¶
Create a Scalar associated with this curve. The scalars created by this package implement group.Scalar's SetBytes method, interpreting the bytes as a big-endian integer, so as to be compatible with the Go standard library's big.Int type.
type P521 ¶
type P521 struct {
// contains filtered or unexported fields
}
P521 implements the group.Group interface for the NIST P-521 elliptic curve.
func (*P521) PointLen ¶
func (c *P521) PointLen() int
Return the number of bytes in the encoding of a Point for this curve. Currently uses uncompressed ANSI X9.62 format with both X and Y coordinates; this could change.
func (*P521) Scalar ¶
Create a Scalar associated with this curve. The scalars created by this package implement group.Scalar's SetBytes method, interpreting the bytes as a big-endian integer, so as to be compatible with the Go standard library's big.Int type.