diff options
author | Xu Yizhou <xuyizhou1@huawei.com> | 2023-01-18 09:55:02 +0800 |
---|---|---|
committer | Pauli <pauli@openssl.org> | 2023-02-02 10:16:47 +1100 |
commit | c007203b94b6921ebc8103cb7ae51af554c86afe (patch) | |
tree | ae62848655e7cf9daf5e072c34909f858195cfe3 /providers/implementations/ciphers/cipher_sm4_xts.c | |
parent | e3663717fc16bd140f54ee7f1600bdced7f9ea66 (diff) | |
download | openssl-new-c007203b94b6921ebc8103cb7ae51af554c86afe.tar.gz |
SM4 AESE optimization for ARMv8
Signed-off-by: Xu Yizhou <xuyizhou1@huawei.com>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
Reviewed-by: Paul Dale <pauli@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/19914)
Diffstat (limited to 'providers/implementations/ciphers/cipher_sm4_xts.c')
-rw-r--r-- | providers/implementations/ciphers/cipher_sm4_xts.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/providers/implementations/ciphers/cipher_sm4_xts.c b/providers/implementations/ciphers/cipher_sm4_xts.c index 3c568d4d18..037055fce8 100644 --- a/providers/implementations/ciphers/cipher_sm4_xts.c +++ b/providers/implementations/ciphers/cipher_sm4_xts.c @@ -145,14 +145,14 @@ static int sm4_xts_cipher(void *vctx, unsigned char *out, size_t *outl, if (ctx->xts_standard) { if (ctx->stream != NULL) (*ctx->stream)(in, out, inl, ctx->xts.key1, ctx->xts.key2, - ctx->base.iv); + ctx->base.iv, ctx->base.enc); else if (CRYPTO_xts128_encrypt(&ctx->xts, ctx->base.iv, in, out, inl, ctx->base.enc)) return 0; } else { if (ctx->stream_gb != NULL) (*ctx->stream_gb)(in, out, inl, ctx->xts.key1, ctx->xts.key2, - ctx->base.iv); + ctx->base.iv, ctx->base.enc); else if (ossl_crypto_xts128gb_encrypt(&ctx->xts, ctx->base.iv, in, out, inl, ctx->base.enc)) return 0; |