Home GnuPG

rsa: Use memmov_independently when unpadding.

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.
  • Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>

Details

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