Comments (3)
Hi, I am not completely familiar with that part of the MbedTLS code but it seems that rsa_sign_wrap
supports both RSASSA-PKCS1-v1_5 and RSASSA-PSS signature schemes thus in a similar way it may be possible for the alternative function of type mbedtls_pk_rsa_alt_sign_func
to support RSASSA-PSS signature as well. I can see that rsa_alt_can_do
would need to be changed to indicate that it supports key of type MBEDTLS_PK_RSASSA_PSS
though.
Otherwise please note that we are likely to deprecate the ALT interfaces in the next major release (4.0) and nowadays we rather advice to add support for hardware acceleration through the PSA driver interface, see docs/proposed/psa-driver-interface.md.
from mbedtls.
ALT interfaces are deprecated. The preferred way to accelerate crypto in Mbed TLS today is with PSA drivers.
If you prefer the old way (which, for RSA, does lead to reduced code size), you can define MBEDTLS_RSA_ALT
and write a full replacement for rsa.c
. This lets you use whatever accelerators are present on your platform.
The MBEDTLS_PK_RSA_ALT
interface (intended for keys in external secure elements) does not support PSS or OAEP. It supports a single signature mechanism and a single decryption mechanism. mbedtls_pk_sign_ext
rejects RSA_ALT keys when asked to calculate a PSS signature. You can βcheatβ and make the alt functions calculate PSS/OAEP, and then mbedtls_pk_sign
and mbedtls_pk_decrypt
will calculate PSS/OAEP. But you can't use that key from X.509 or TLS code: that code assumes that mbedtls_pk_sign
calculates a PKCS#1v1.5 signature and mbedtls_pk_sign_ext(MBEDTLS_PK_RSA_PSS, ...)
calculates a PSS signature.
from mbedtls.
I am closing this issue because ALT interfaces are deprecated and will not be extended.
from mbedtls.
Related Issues (20)
- Rename `MBEDTLS_PSA_P256M_DRIVER_ENABLED` as `PSA_CRYPTO_DRIVER_MBEDTLS_P256M` HOT 1
- Add API to parse DER signature and export R and S components HOT 3
- Error when building MbedTLS 3.6 with GCC with LTO HOT 3
- MbedTLS code style inconsistencies
- Build library failed for server mode only: missing-prototypes for mbedtls_ssl_conf_has_static_psk HOT 1
- Function to calculate certificate fingerprint HOT 1
- Build fails with unset MBEDTLS_DHM_C but MBEDTLS_USE_PSA_CRYPTO set HOT 1
- component_test_full_no_bignum doesn't actually disable bignum HOT 3
- Move crypto C modules and includes into a tf-psa-crypto directory
- Factor intermediate file generation boilerplate in makefiles
- Factor intermediate file generation boilerplate in CMakeLists.txt
- Configuration test coverage search tool
- Improve configuration coverage for asymmetric mechanisms HOT 2
- Consider removing static ECDH cipher suites
- Consider removing CBC cipher suites HOT 1
- Some compat.sh test cases failing on config-suite-b
- compat.sh doesn't run TLS 1.2 CCM tests against OpenSSL
- CIPHER_C not enabled when PSA CMAC is required as builtin, but no other unauthenticated cipher is
- 3.6.0 fails in curl CI where 3.5.2 works HOT 10
- The PSA key store is too small for high-end platforms HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mbedtls.