Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
crypto: add RSA-PSS params to asymmetricKeyDetails
- Loading branch information
1 parent
5086c5b
commit 126464f
Showing
3 changed files
with
56 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
26 changes: 26 additions & 0 deletions
26
patches/boringssl/add_maskhash_to_rsa_pss_params_st_for_compat.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 | ||
From: Shelley Vohr <shelley.vohr@gmail.com> | ||
Date: Wed, 8 Sep 2021 10:59:51 +0200 | ||
Subject: Add maskHash to rsa_pss_params_st for compat | ||
|
||
This CL adds a maskHash member to the rsa_pss_params_st struct for | ||
increased compatibility with OpenSSL. | ||
|
||
Node.js recently began to make use of this member in | ||
https://github.com/nodejs/node/pull/39851 | ||
and without this member Electron sees compilation errors. | ||
|
||
Upstreamed at https://boringssl-review.googlesource.com/c/boringssl/+/49365 | ||
|
||
diff --git a/include/openssl/x509.h b/include/openssl/x509.h | ||
index fa333ca057dd8e90a3e38c51db6269815de7b85f..0f4a6d79514739fb4c719f9e5b41db364e775417 100644 | ||
--- a/include/openssl/x509.h | ||
+++ b/include/openssl/x509.h | ||
@@ -1949,6 +1949,7 @@ typedef struct rsa_pss_params_st { | ||
X509_ALGOR *maskGenAlgorithm; | ||
ASN1_INTEGER *saltLength; | ||
ASN1_INTEGER *trailerField; | ||
+ X509_ALGOR *maskHash; | ||
} RSA_PSS_PARAMS; | ||
|
||
DECLARE_ASN1_FUNCTIONS(RSA_PSS_PARAMS) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters