diff --git a/webrtc/base/sha1.cc b/webrtc/base/sha1.cc index afc5569fd7..68530540de 100644 --- a/webrtc/base/sha1.cc +++ b/webrtc/base/sha1.cc @@ -104,7 +104,7 @@ namespace rtc { -void SHA1Transform(uint32 state[5], const uint8 buffer[64]); +namespace { #define rol(value, bits) (((value) << (bits)) | ((value) >> (32 - (bits)))) @@ -206,6 +206,8 @@ void SHA1Transform(uint32 state[5], const uint8 buffer[64]) { state[4] += e; } +} // namespace + // SHA1Init - Initialize new context. void SHA1Init(SHA1_CTX* context) { // SHA1 initialization constants.