Hi,
The mode parameter was added early on to accommodate an old protocol that needed it. I am sorry, but I can’t remember what that protocol was and how it used it.
We have removed it, because it is a dangerous feature, and we didn’t expect it to be needed in any modern applications.
Why do you need to do encryption with a private key? What is your use case?
Best regards, Janos (Mbed TLS developer)
From: 克坚 马 via mbed-tls mbed-tls@lists.trustedfirmware.org Date: Monday, 23 October 2023 at 15:58 To: mbed-tls@lists.trustedfirmware.org mbed-tls@lists.trustedfirmware.org Subject: [mbed-tls] How can I encrypt with a private key? Hi all, I have been using the old version(2.28) for a very long time, and updated to version 3.4.0 recently. When using rsa encryption, there is a parameter 'mode' that allows to choose whether to use a public key or a private key. Why is it canceled in the new version? And how can I use the private key to perform an encryption operation? Thank you for your help! -- mbed-tls mailing list -- mbed-tls@lists.trustedfirmware.org To unsubscribe send an email to mbed-tls-leave@lists.trustedfirmware.org