Home GnuPG

rsa: Use memmov_independently when unpadding.
c98b5e4a1471Unpublished

Unpublished Commit · Learn More

Not On Permanent Ref: This commit is not an ancestor of any permanent ref.

Description

rsa: Use memmov_independently when unpadding.

* cipher/rsa-common.c (memmov_independently): New.
(_gcry_rsa_pkcs1_decode_for_enc): Use memmov_independently.
(_gcry_rsa_oaep_decode): Use memmov_independently.

Cherry-pick master commit of:
58b62be844549ad3d57c507d834027f1e2756567

  • Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>

Details

Provenance
gniibeAuthored on Oct 31 2023, 6:46 AM
Parents
rC45945be8f3c3: const-time: Add ct_memmov_cond, fix _gcry_mpih_set_cond.
Branches
Unknown
Tags
Unknown

Event Timeline