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

Unified Diff: content/child/webcrypto/openssl/rsa_sign_openssl.h

Issue 661653002: [webcrypto] Implement RSA-PSS using BoringSSL. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@refactor_rsassa
Patch Set: rebase onto master (corrected) 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 side-by-side diff with in-line comments
Download patch
Index: content/child/webcrypto/openssl/rsa_sign_openssl.h
diff --git a/content/child/webcrypto/openssl/rsa_sign_openssl.h b/content/child/webcrypto/openssl/rsa_sign_openssl.h
index d180ab4c960684b75d18a126a6eb804181b08674..c750ee2e57c004eb9e6fec71255d01657f0ab35a 100644
--- a/content/child/webcrypto/openssl/rsa_sign_openssl.h
+++ b/content/child/webcrypto/openssl/rsa_sign_openssl.h
@@ -20,13 +20,19 @@ namespace webcrypto {
class CryptoData;
class Status;
-// Helper functions for doing RSA-SSA signing and verification.
+// Helper functions for doing RSA-SSA signing and verification
+// (both PKCS1-v1_5 and PSS flavor).
+//
+// The salt length parameter is only relevant when the key is for RSA-PSS. In
+// other cases it should be set to zero.
Status RsaSign(const blink::WebCryptoKey& key,
+ unsigned int pss_salt_length_bytes,
const CryptoData& data,
std::vector<uint8_t>* buffer);
Status RsaVerify(const blink::WebCryptoKey& key,
+ unsigned int pss_salt_length_bytes,
const CryptoData& signature,
const CryptoData& data,
bool* signature_match);
« no previous file with comments | « content/child/webcrypto/openssl/rsa_pss_openssl.cc ('k') | content/child/webcrypto/openssl/rsa_sign_openssl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698