diff options
Diffstat (limited to 'crypto/secure_hash_openssl.cc')
-rw-r--r-- | crypto/secure_hash_openssl.cc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/crypto/secure_hash_openssl.cc b/crypto/secure_hash_openssl.cc index 84d28a5..61946a8 100644 --- a/crypto/secure_hash_openssl.cc +++ b/crypto/secure_hash_openssl.cc @@ -30,18 +30,18 @@ class SecureHashSHA256OpenSSL : public SecureHash { OPENSSL_cleanse(&ctx_, sizeof(ctx_)); } - virtual void Update(const void* input, size_t len) OVERRIDE { + virtual void Update(const void* input, size_t len) override { SHA256_Update(&ctx_, static_cast<const unsigned char*>(input), len); } - virtual void Finish(void* output, size_t len) OVERRIDE { + virtual void Finish(void* output, size_t len) override { ScopedOpenSSLSafeSizeBuffer<SHA256_DIGEST_LENGTH> result( static_cast<unsigned char*>(output), len); SHA256_Final(result.safe_buffer(), &ctx_); } - virtual bool Serialize(Pickle* pickle) OVERRIDE; - virtual bool Deserialize(PickleIterator* data_iterator) OVERRIDE; + virtual bool Serialize(Pickle* pickle) override; + virtual bool Deserialize(PickleIterator* data_iterator) override; private: SHA256_CTX ctx_; |