blob: 9bb702c9918a134db0b8816b2aa7c5da7203d851 [file] [log] [blame]
// Copyright 2014 The Chromium OS Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef PRIVETD_OPENSSL_UTILS_H_
#define PRIVETD_OPENSSL_UTILS_H_
#include <string>
#include <vector>
#include <chromeos/secure_blob.h>
namespace privetd {
const size_t kSha256OutputSize = 32;
chromeos::Blob HmacSha256(const chromeos::SecureBlob& key,
const chromeos::Blob& data);
std::string Base64Encode(const chromeos::Blob& input);
chromeos::Blob Base64Decode(std::string input);
} // namespace privetd
#endif // PRIVETD_OPENSSL_UTILS_H_