From 9d93570d9f461ba612999d56fe70ae5abce494a5 Mon Sep 17 00:00:00 2001 From: Heiko Schaefer Date: Thu, 22 Jul 2021 16:50:51 +0200 Subject: [PATCH] Add comment pointing to Gnuk source for decryption return format. --- openpgp-card-sequoia/src/decryptor.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/openpgp-card-sequoia/src/decryptor.rs b/openpgp-card-sequoia/src/decryptor.rs index cba44fd..5631f04 100644 --- a/openpgp-card-sequoia/src/decryptor.rs +++ b/openpgp-card-sequoia/src/decryptor.rs @@ -118,6 +118,7 @@ impl<'a> crypto::Decryptor for CardDecryptor<'a> { // (Gnuk returns a leading '0x04' byte and // an additional 32 trailing bytes) if curve == &Curve::NistP256 && dec.len() == 65 { + // see Gnuk src/call-ec.c:82 dec = dec[1..33].to_vec(); }