|
crypto/hmac: Add HMAC-SHA224 and HMAC-SHA384/512
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.
Total comments: 4
Total comments: 4
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+367 lines, -31 lines) |
Patch |
 |
M |
src/pkg/crypto/hmac/hmac.go
|
View
|
1
2
3
4
|
4 chunks |
+13 lines, -19 lines |
0 comments
|
Download
|
 |
M |
src/pkg/crypto/hmac/hmac_test.go
|
View
|
1
2
3
4
|
11 chunks |
+300 lines, -12 lines |
0 comments
|
Download
|
 |
M |
src/pkg/crypto/md4/md4.go
|
View
|
1
2
3
|
2 chunks |
+5 lines, -0 lines |
0 comments
|
Download
|
 |
M |
src/pkg/crypto/md5/md5.go
|
View
|
1
2
3
|
2 chunks |
+5 lines, -0 lines |
0 comments
|
Download
|
 |
M |
src/pkg/crypto/openpgp/canonical_text.go
|
View
|
1
2
3
|
1 chunk |
+4 lines, -0 lines |
0 comments
|
Download
|
 |
M |
src/pkg/crypto/openpgp/canonical_text_test.go
|
View
|
1
2
3
|
1 chunk |
+4 lines, -0 lines |
0 comments
|
Download
|
 |
M |
src/pkg/crypto/ripemd160/ripemd160.go
|
View
|
1
2
3
|
1 chunk |
+2 lines, -0 lines |
0 comments
|
Download
|
 |
M |
src/pkg/crypto/sha1/sha1.go
|
View
|
1
2
3
|
2 chunks |
+5 lines, -0 lines |
0 comments
|
Download
|
 |
M |
src/pkg/crypto/sha256/sha256.go
|
View
|
1
2
3
|
2 chunks |
+5 lines, -0 lines |
0 comments
|
Download
|
 |
M |
src/pkg/crypto/sha512/sha512.go
|
View
|
1
2
3
|
2 chunks |
+5 lines, -0 lines |
0 comments
|
Download
|
 |
M |
src/pkg/exp/ssh/transport.go
|
View
|
1
2
3
|
1 chunk |
+2 lines, -0 lines |
0 comments
|
Download
|
 |
M |
src/pkg/hash/adler32/adler32.go
|
View
|
1
2
3
|
1 chunk |
+2 lines, -0 lines |
0 comments
|
Download
|
 |
M |
src/pkg/hash/crc32/crc32.go
|
View
|
1
2
3
|
1 chunk |
+2 lines, -0 lines |
0 comments
|
Download
|
 |
M |
src/pkg/hash/crc64/crc64.go
|
View
|
1
2
3
|
1 chunk |
+2 lines, -0 lines |
0 comments
|
Download
|
 |
M |
src/pkg/hash/fnv/fnv.go
|
View
|
1
2
3
|
1 chunk |
+5 lines, -0 lines |
0 comments
|
Download
|
 |
M |
src/pkg/hash/hash.go
|
View
|
1
2
3
|
1 chunk |
+6 lines, -0 lines |
0 comments
|
Download
|
Total messages: 48
|