Home GnuPG

Use memset instead of setting buffers byte by byte

Description

Use memset instead of setting buffers byte by byte

* cipher/cipher-ccm.c (do_cbc_mac): Replace buffer setting loop with memset call.
* cipher/cipher-gcm.c (do_ghash_buf): Ditto.
* cipher/poly1305.c (poly1305_final): Ditto.
  • Signed-off-by: Jussi Kivilinna <jussi.kivilinna@iki.fi>

Details

Provenance
jukiviliAuthored on Mar 21 2019, 7:43 PM
Parents
rC4db6d8796c0d: Use buf_cpy instead of copying buffers byte by byte
Branches
Unknown
Tags
Unknown