LCOV - code coverage report
Current view: top level - shared_model/cryptography/hash_providers - sha3_256.hpp (source / functions) Hit Total Coverage
Test: coverage_cleared.info Lines: 1 2 50.0 %
Date: 2018-12-05 17:11:35 Functions: 1 1 100.0 %

          Line data    Source code
       1             : /**
       2             :  * Copyright Soramitsu Co., Ltd. All Rights Reserved.
       3             :  * SPDX-License-Identifier: Apache-2.0
       4             :  */
       5             : 
       6             : #ifndef IROHA_SHARED_MODEL_SHA3_256_HPP
       7             : #define IROHA_SHARED_MODEL_SHA3_256_HPP
       8             : 
       9             : #include "crypto/hash_types.hpp"
      10             : #include "cryptography/ed25519_sha3_impl/internal/sha3_hash.hpp"
      11             : #include "cryptography/hash.hpp"
      12             : 
      13             : namespace shared_model {
      14             :   namespace crypto {
      15             :     class Sha3_256 {
      16             :      public:
      17             :       static Hash makeHash(const Blob &blob) {
      18       32003 :         return Hash(iroha::sha3_256(blob.blob()).to_string());
      19           0 :       }
      20             :     };
      21             :   }  // namespace crypto
      22             : }  // namespace shared_model
      23             : 
      24             : #endif  // IROHA_SHARED_MODEL_SHA3_256_HPP

Generated by: LCOV version 1.13