Versions in this module Expand all Collapse all v1 v1.3.1 Apr 7, 2023 v1.3.0 Apr 7, 2023 Changes in this version + func GetKXPubKey(privateKey [32]byte) (publicKey [32]byte) v1.2.0 Apr 6, 2023 Changes in this version + func NewKX() (privateKey, publicKey [32]byte, err error) + func SharedSecret(ownPrivateKey, targetPubKey [32]byte) (sharedSecret []byte, err error) v1.1.0 Apr 5, 2023 Changes in this version type KeyType + const ED25519 v1.0.0 Mar 21, 2022 Changes in this version + type JWK struct + Crv string + D string + DP string + DQ string + E string + G string + Kid string + Kty string + N string + P string + Q string + QI string + X string + Y string + func Generate(keytype KeyType) (j *JWK, err error) + func New(key interface{}) (j *JWK, err error) + func ParseJWK(jsonBytes []byte) (j *JWK, err error) + func ParsePEM(pemBytes, password []byte) (j *JWK, err error) + func (j *JWK) Bytes() (bytes []byte) + func (j *JWK) Key() (key interface{}) + func (j *JWK) PEM() (pemBytes []byte) + func (j *JWK) PublicKey() (p *JWK) + func (j *JWK) SetKeyID(kid string) + func (j *JWK) Sign(hashed []byte) (signed []byte, err error) + func (j *JWK) String() (str string) + func (j *JWK) Verify(signed, hashed []byte) (err error) + type KeyType uint8 + const ECDSA256 + const ECDSA384 + const ECDSA521 + const RSA2048 + const RSA4096 Other modules containing this package github.com/svicknesh/key/v2