From aa95a7288a4cda8cd5bee8cab1ec37af00d06d3f Mon Sep 17 00:00:00 2001 From: Jakub Jelen Date: Wed, 28 Feb 2024 16:49:25 +0100 Subject: [PATCH] rsa: WIP comment Signed-off-by: Jakub Jelen --- src/rsa.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/rsa.rs b/src/rsa.rs index 4e8a1eb0..825c775d 100644 --- a/src/rsa.rs +++ b/src/rsa.rs @@ -89,6 +89,8 @@ struct OtherPrimeInfo<'a> { coefficient: DerEncBigUint<'a>, } +// TODO Is this correct? According to the PKCS#11 specs, for wrapping we should use +// BER-encoded according to PKCS #8’s PrivateKeyInfo ASN.1 type #[derive(asn1::Asn1Read, asn1::Asn1Write)] struct RSAPrivateKey<'a> { version: Version,