Chromium Code Reviews| Index: crypto/third_party/nss/sha512.cc |
| diff --git a/crypto/third_party/nss/sha512.cc b/crypto/third_party/nss/sha512.cc |
| index 5ef4e5062dcb1d746b0d6bfc0fda50b5195d7cd7..c9d0be0a0887e83112fb90257009631088bd1536 100644 |
| --- a/crypto/third_party/nss/sha512.cc |
| +++ b/crypto/third_party/nss/sha512.cc |
| @@ -471,6 +471,10 @@ SHA256_End(SHA256Context *ctx, unsigned char *digest, |
| *digestLen = padLen; |
| } |
| +void SHA256_Clone(SHA256Context* dest, SHA256Context* src) { |
| + memcpy(dest, src, sizeof *dest); |
| +} |
|
davidben
2016/03/08 22:12:03
Nit: Probably this should be mirroring the origina
asanka
2016/03/10 16:48:09
Done. I blame 'git cl format' for this one, since
|
| + |
| /* Comment out unused code, mostly the SHA384 and SHA512 implementations. */ |
| #if 0 |
| SECStatus |
| @@ -519,12 +523,6 @@ SHA256_Resurrect(unsigned char *space, void *arg) |
| return ctx; |
| } |
| -void SHA256_Clone(SHA256Context *dest, SHA256Context *src) |
| -{ |
| - memcpy(dest, src, sizeof *dest); |
| -} |
| - |
| - |
| /* ======= SHA512 and SHA384 common constants and defines ================= */ |
| /* common #defines for SHA512 and SHA384 */ |