Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ComputeBindingHash ¶
Types ¶
type AEADPrivateKey ¶
type AEADPrivateKey struct { PublicKey AEADPublicKey HashSeed [32]byte Key []byte }
func AEADGenerateKey ¶
func AEADGenerateKey(rand io.Reader, cipher algorithm.CipherFunction) (priv *AEADPrivateKey, err error)
type AEADPublicKey ¶
type AEADPublicKey struct { Cipher algorithm.CipherFunction BindingHash [32]byte Key []byte }
type HMACPrivateKey ¶
type HMACPrivateKey struct { PublicKey HMACPublicKey HashSeed [32]byte Key []byte }
func HMACGenerateKey ¶
func (*HMACPrivateKey) Public ¶
func (priv *HMACPrivateKey) Public() crypto.PublicKey
func (*HMACPrivateKey) Sign ¶
func (priv *HMACPrivateKey) Sign(rand io.Reader, digest []byte, opts crypto.SignerOpts) (signature []byte, err error)
type HMACPublicKey ¶
type HMACPublicKey struct { Hash algorithm.Hash BindingHash [32]byte // While this is a "public" key, the symmetric key needs to be present here. // Symmetric cryptographic operations use the same key material for // signing and verifying, and go-crypto assumes that a public key type will // be used for verification. Thus, this `Key` field must never be exported // publicly. Key []byte }
Click to show internal directories.
Click to hide internal directories.