pc-dart icon indicating copy to clipboard operation
pc-dart copied to clipboard

Can you add PSS support?

Open xros opened this issue 2 years ago • 1 comments

When signing data, people recommended to use PSS method rather than PKCS1v15 I saw Pointy Castle is still using PKCS1v15.

https://cryptography.io/en/latest/hazmat/primitives/asymmetric/rsa/#signing Valid paddings for signatures are PSS and PKCS1v15. PSS is the recommended choice for any new protocols or applications, PKCS1v15 should only be used to support legacy protocols.

https://cryptography.io/en/latest/limitations/#rsa-pkcs1-v1-5-constant-time-decryption

Here's an example like what cryptography on pub.dev https://pub.dev/documentation/cryptography/latest/cryptography/RsaPss-class.html But this one doesn't work for now.

Also for paddings, PKCS8 might be modern.

xros avatar Feb 09 '22 00:02 xros

I am also interested in this! Bump

Ephenodrom avatar Oct 10 '22 08:10 Ephenodrom