Source file src/crypto/internal/fips140/nistec/nistec.go
1 // Copyright 2022 The Go Authors. All rights reserved. 2 // Use of this source code is governed by a BSD-style 3 // license that can be found in the LICENSE file. 4 5 // Package nistec implements the elliptic curves from NIST SP 800-186. 6 // 7 // This package uses fiat-crypto or specialized assembly and Go code for its 8 // backend field arithmetic (not math/big) and exposes constant-time, heap 9 // allocation-free, byte slice-based safe APIs. Group operations use modern and 10 // safe complete addition formulas where possible. The point at infinity is 11 // handled and encoded according to SEC 1, Version 2.0, and invalid curve points 12 // can't be represented. 13 package nistec 14 15 import _ "crypto/internal/fips140/check" 16 17 //go:generate go run generate.go 18