full diff: https://github.com/lestrrat-go/jwx/compare/v3.0.11...v3.0.13 Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
15 lines
314 B
Go
15 lines
314 B
Go
//go:build jwx_es256k
|
|
|
|
package jwa
|
|
|
|
var secp256k1Algorithm = NewEllipticCurveAlgorithm("secp256k1")
|
|
|
|
// This constant is only available if compiled with jwx_es256k build tag
|
|
func Secp256k1() EllipticCurveAlgorithm {
|
|
return secp256k1Algorithm
|
|
}
|
|
|
|
func init() {
|
|
RegisterEllipticCurveAlgorithm(secp256k1Algorithm)
|
|
}
|