• 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
..
armor Loading commit data...
elgamal Loading commit data...
errors Loading commit data...
packet Loading commit data...
s2k Loading commit data...
Makefile Loading commit data...
canonical_text.go Loading commit data...
canonical_text_test.go Loading commit data...
keys.go Loading commit data...
read.go Loading commit data...
read_test.go Loading commit data...
write.go Loading commit data...
write_test.go Loading commit data...