| 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..78950cb51f5dbcfe7149ae58f9d51e2d78535624 100644
|
| --- a/crypto/third_party/nss/sha512.cc
|
| +++ b/crypto/third_party/nss/sha512.cc
|
| @@ -471,6 +471,11 @@ SHA256_End(SHA256Context *ctx, unsigned char *digest,
|
| *digestLen = padLen;
|
| }
|
|
|
| +void SHA256_Clone(SHA256Context* dest, SHA256Context* src)
|
| +{
|
| + memcpy(dest, src, sizeof *dest);
|
| +}
|
| +
|
| /* Comment out unused code, mostly the SHA384 and SHA512 implementations. */
|
| #if 0
|
| SECStatus
|
| @@ -519,12 +524,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 */
|
|
|