Documentation ¶
Overview ¶
Package hmac implements HMAC operations as described in the specifications at §29 (https://www.w3.org/TR/WebCryptoAPI/#hmac).
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CryptoKey ¶
type CryptoKey struct {
// contains filtered or unexported fields
}
func (*CryptoKey) Extractable ¶
type ImportParams ¶
type ImportParams struct { // The inner hash function to use. Hash string // The length (in bits) of the key. Length uint64 }
ImportParams represents the dictionary specification of §29.3 (https://www.w3.org/TR/WebCryptoAPI/#dfn-HmacImportParams)
type KeyAlgorithm ¶
type KeyAlgorithm struct {
// contains filtered or unexported fields
}
KeyAlgorithm represents the dictionary specification of §29.4 (https://www.w3.org/TR/WebCryptoAPI/#HmacKeyAlgorithm-dictionary)
func (*KeyAlgorithm) Hash ¶
func (k *KeyAlgorithm) Hash() string
Hash is the inner hash function to use.
func (*KeyAlgorithm) Length ¶
func (k *KeyAlgorithm) Length() uint64
Length is the length (in bits) of the key.
type KeyGenParams ¶
type KeyGenParams struct { // The inner hash function to use. Hash string // The length (in bits) of the key to generate. If unspecified, the // recommended length will be used, which is the size of the associated hash function's block // size. Length uint64 }
KeyGenParams represents the dictionary specification of §29.5 (https://www.w3.org/TR/WebCryptoAPI/#dfn-HmacKeyGenParams)
Click to show internal directories.
Click to hide internal directories.