]> git.ipfire.org Git - thirdparty/openssl.git/commit
evp: Use functions instead of direct structure field references
authorTianjia Zhang <tianjia.zhang@linux.alibaba.com>
Mon, 30 Aug 2021 07:34:06 +0000 (15:34 +0800)
committerTomas Mraz <tomas@openssl.org>
Mon, 22 Aug 2022 08:14:39 +0000 (10:14 +0200)
commitb134300a342476398c11c19af602d7b2aa6b7f8a
tree9fe8105cf0a33daea775dfcbe9a35558618d3785
parente6b1c22b41b5feaffe7fe2bb24996fb6763586af
evp: Use functions instead of direct structure field references

AES and chacha20poly1305 also have some codes that directly reference
the fields in the EVP_CIPHER_CTX structure, such as 'ctx->buf' and
'ctx->encrypt', in order to make the code style uniform, use the
corresponding interface API instead of direct field references.

Signed-off-by: Tianjia Zhang <tianjia.zhang@linux.alibaba.com>
Reviewed-by: Hugo Landau <hlandau@openssl.org>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/16465)
crypto/evp/e_aes.c
crypto/evp/e_chacha20_poly1305.c