Fix comment type

This commit is contained in:
Heiko Schaefer 2021-09-16 02:05:28 +02:00
parent cdb72e271c
commit 39df280d70

View file

@ -84,12 +84,12 @@ impl<'a> crypto::Decryptor for CardDecryptor<'a> {
ciphertext: &mpi::Ciphertext, ciphertext: &mpi::Ciphertext,
_plaintext_len: Option<usize>, _plaintext_len: Option<usize>,
) -> openpgp::Result<crypto::SessionKey> { ) -> openpgp::Result<crypto::SessionKey> {
/// Delegate a decryption operation to the OpenPGP card. // Delegate a decryption operation to the OpenPGP card.
/// //
/// This fn prepares the data structures that openpgp-card needs to // This fn prepares the data structures that openpgp-card needs to
/// perform the decryption operation. // perform the decryption operation.
/// //
/// (7.2.11 PSO: DECIPHER) // (7.2.11 PSO: DECIPHER)
match (ciphertext, self.public.mpis()) { match (ciphertext, self.public.mpis()) {
(mpi::Ciphertext::RSA { c: ct }, mpi::PublicKey::RSA { .. }) => { (mpi::Ciphertext::RSA { c: ct }, mpi::PublicKey::RSA { .. }) => {
let dm = Cryptogram::RSA(ct.value()); let dm = Cryptogram::RSA(ct.value());