Clarified: the spec says the card will format accordingly.

This commit is contained in:
Heiko Schaefer 2021-11-22 19:24:09 +01:00
parent f5eaa591cb
commit 9930e7d420
No known key found for this signature in database
GPG key ID: 4A849A1904CCBD7D

View file

@ -422,9 +422,6 @@ impl CardApp {
Cryptogram::RSA(message) => {
// "Padding indicator byte (00) for RSA" (pg. 69)
let mut data = vec![0x0];
// FIXME: The spec says we should "format according to PKCS#1"
data.extend_from_slice(message);
// Call the card to decrypt `data`