Vitaly Buka | 7ce499f | 2015-06-09 08:04:11 -0700 | [diff] [blame] | 1 | // Copyright 2014 The Chromium OS 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 BUFFET_PRIVET_OPENSSL_UTILS_H_ |
| 6 | #define BUFFET_PRIVET_OPENSSL_UTILS_H_ |
| 7 | |
| 8 | #include <string> |
| 9 | #include <vector> |
| 10 | |
| 11 | #include <chromeos/secure_blob.h> |
| 12 | |
| 13 | namespace privetd { |
| 14 | |
| 15 | const size_t kSha256OutputSize = 32; |
| 16 | |
| 17 | chromeos::Blob HmacSha256(const chromeos::SecureBlob& key, |
| 18 | const chromeos::Blob& data); |
| 19 | |
| 20 | } // namespace privetd |
| 21 | |
| 22 | #endif // BUFFET_PRIVET_OPENSSL_UTILS_H_ |