OLD | NEW |
(Empty) | |
| 1 // Copyright 2014 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 CONTENT_CHILD_WEBCRYPTO_OPENSSL_RSA_SIGN_OPENSSL_H_ |
| 6 #define CONTENT_CHILD_WEBCRYPTO_OPENSSL_RSA_SIGN_OPENSSL_H_ |
| 7 |
| 8 #include <stdint.h> |
| 9 |
| 10 #include <vector> |
| 11 |
| 12 namespace blink { |
| 13 class WebCryptoKey; |
| 14 } |
| 15 |
| 16 namespace content { |
| 17 |
| 18 namespace webcrypto { |
| 19 |
| 20 class CryptoData; |
| 21 class Status; |
| 22 |
| 23 // Helper functions for doing RSA-SSA signing and verification. |
| 24 |
| 25 Status RsaSign(const blink::WebCryptoKey& key, |
| 26 const CryptoData& data, |
| 27 std::vector<uint8_t>* buffer); |
| 28 |
| 29 Status RsaVerify(const blink::WebCryptoKey& key, |
| 30 const CryptoData& signature, |
| 31 const CryptoData& data, |
| 32 bool* signature_match); |
| 33 |
| 34 } // namespace webcrypto |
| 35 |
| 36 } // namespace content |
| 37 |
| 38 #endif // CONTENT_CHILD_WEBCRYPTO_OPENSSL_RSA_SIGN_OPENSSL_H_ |
OLD | NEW |