Home | History | Annotate | Download | only in privet
      1 // Copyright 2015 The Weave Authors. All rights reserved.
      2 // Use of this source code is governed by a BSD-style license that can be
      3 // found in the LICENSE file.
      4 
      5 #ifndef LIBWEAVE_SRC_PRIVET_OPENSSL_UTILS_H_
      6 #define LIBWEAVE_SRC_PRIVET_OPENSSL_UTILS_H_
      7 
      8 #include <string>
      9 #include <vector>
     10 
     11 namespace weave {
     12 namespace privet {
     13 
     14 const size_t kSha256OutputSize = 32;
     15 
     16 std::vector<uint8_t> HmacSha256(const std::vector<uint8_t>& key,
     17                                 const std::vector<uint8_t>& data);
     18 }  // namespace privet
     19 }  // namespace weave
     20 
     21 #endif  // LIBWEAVE_SRC_PRIVET_OPENSSL_UTILS_H_
     22