• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 // Copyright 2019 The Chromium 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 UTIL_CRYPTO_DIGEST_SIGN_H_
6 #define UTIL_CRYPTO_DIGEST_SIGN_H_
7 
8 #include <openssl/evp.h>
9 
10 #include <string>
11 
12 #include "absl/types/span.h"
13 #include "platform/base/error.h"
14 
15 namespace openscreen {
16 
17 ErrorOr<std::string> SignData(const EVP_MD* digest,
18                               EVP_PKEY* private_key,
19                               absl::Span<const uint8_t> data);
20 
21 }  // namespace openscreen
22 
23 #endif  // UTIL_CRYPTO_DIGEST_SIGN_H_
24