• Luit van Drongelen's avatar
    crypto/hmac: Add HMAC-SHA224 and HMAC-SHA384/512 · a5263c7c
    Luit van Drongelen authored
    First was, apart from adding tests, a single line of code (to add the
    constructor function). Adding SHA512-based hashing to crypto/hmac
    required minor rework of the package because of a previously hardcoded
    block-size in it's implementation. Instead of using a hash.Hash
    generator function the constructor function now uses a crypto.Hash
    type, which was extended to expose information about block size.
    
    The only standard library package impacted by the change is
    crypto/tls, for which the fix is included in this patch. It might be
    useful to extend gofix to include this API change too.
    
    R=agl, r, rsc, r
    CC=golang-dev
    https://golang.org/cl/5550043
    a5263c7c
Name
Last commit
Last update
..
adler32 Loading commit data...
crc32 Loading commit data...
crc64 Loading commit data...
fnv Loading commit data...
Makefile Loading commit data...
hash.go Loading commit data...
test_cases.txt Loading commit data...
test_gen.awk Loading commit data...