Update To 11.40.268.0
[platform/framework/web/crosswalk.git] / src / content / child / webcrypto / openssl / sha_openssl.cc
index 7a2faa8..e7ee049 100644 (file)
@@ -33,7 +33,7 @@ class DigestorOpenSsl : public blink::WebCryptoDigestor {
         digest_context_(EVP_MD_CTX_create()),
         algorithm_id_(algorithm_id) {}
 
-  virtual bool consume(const unsigned char* data, unsigned int size) {
+  bool consume(const unsigned char* data, unsigned int size) override {
     return ConsumeWithStatus(data, size).IsSuccess();
   }
 
@@ -49,8 +49,8 @@ class DigestorOpenSsl : public blink::WebCryptoDigestor {
     return Status::Success();
   }
 
-  virtual bool finish(unsigned char*& result_data,
-                      unsigned int& result_data_size) {
+  bool finish(unsigned char*& result_data,
+              unsigned int& result_data_size) override {
     Status error = FinishInternal(result_, &result_data_size);
     if (!error.IsSuccess())
       return false;
@@ -111,9 +111,9 @@ class DigestorOpenSsl : public blink::WebCryptoDigestor {
 
 class ShaImplementation : public AlgorithmImplementation {
  public:
-  virtual Status Digest(const blink::WebCryptoAlgorithm& algorithm,
-                        const CryptoData& data,
-                        std::vector<uint8_t>* buffer) const OVERRIDE {
+  Status Digest(const blink::WebCryptoAlgorithm& algorithm,
+                const CryptoData& data,
+                std::vector<uint8_t>* buffer) const override {
     DigestorOpenSsl digestor(algorithm.id());
     Status error = digestor.ConsumeWithStatus(data.bytes(), data.byte_length());
     // http://crbug.com/366427: the spec does not define any other failures for