Sha256: 74bfada03d23670e945bbfddf1e557526bb4919b9c5238460405a5cb38643287
Contents?: true
Size: 259 Bytes
Versions: 16
Compression:
Stored size: 259 Bytes
Contents
package jose import ( "crypto/hmac" "hash" ) func calculateHmac(keySizeBits int, securedInput []byte, key []byte) []byte { hasher := hmac.New(func() hash.Hash { return hashAlg(keySizeBits)}, key) hasher.Write(securedInput) return hasher.Sum(nil) }
Version data entries
16 entries across 16 versions & 1 rubygems