Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(367)

Side by Side Diff: content/child/webcrypto/openssl/rsa_sign_openssl.h

Issue 662533002: [webcrypto] Refactor RSA-SSA signing. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698