Commit 3fefe35
committed
Add RSA-PSS certificate support for PKCS7 EnvelopedData KTRI
RSA-PSS signed certificates contain a valid RSA public key that can be
used for key transport, but wc_PKCS7_AddRecipient_KTRI and the
EnvelopedData/AuthEnvelopedData encode paths rejected them because they
only checked for RSAk. Allow RSAPSSk to fall through to the RSAk key
transport path, and always use RSAk as the KeyEncryptionAlgorithmIdentifier
since the operation is RSA encryption, not RSA-PSS signing.
Signed-off-by: Sameeh Jubran <sameeh@wolfssl.com>1 parent 350706d commit 3fefe35
1 file changed
+14
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8344 | 8344 | | |
8345 | 8345 | | |
8346 | 8346 | | |
8347 | | - | |
| 8347 | + | |
| 8348 | + | |
| 8349 | + | |
| 8350 | + | |
| 8351 | + | |
8348 | 8352 | | |
8349 | 8353 | | |
8350 | 8354 | | |
| |||
8354 | 8358 | | |
8355 | 8359 | | |
8356 | 8360 | | |
8357 | | - | |
8358 | | - | |
| 8361 | + | |
8359 | 8362 | | |
8360 | 8363 | | |
8361 | 8364 | | |
| |||
10230 | 10233 | | |
10231 | 10234 | | |
10232 | 10235 | | |
| 10236 | + | |
| 10237 | + | |
| 10238 | + | |
| 10239 | + | |
10233 | 10240 | | |
10234 | 10241 | | |
10235 | 10242 | | |
| |||
13547 | 13554 | | |
13548 | 13555 | | |
13549 | 13556 | | |
| 13557 | + | |
| 13558 | + | |
| 13559 | + | |
| 13560 | + | |
13550 | 13561 | | |
13551 | 13562 | | |
13552 | 13563 | | |
| |||
0 commit comments