2
0
mirror of https://github.com/edk2-porting/linux-next.git synced 2024-12-28 07:04:00 +08:00
linux-next/drivers/crypto/chelsio
Ayush Sawal f3b140ad85 Crypto/chcr: Fixes compilations warnings
This patch fixes the compilation warnings displayed by sparse tool for
chcr driver.

V1->V2

Avoid type casting by using get_unaligned_be32() and
put_unaligned_be16/32() functions.

The key which comes from stack is an u8 byte stream so we store it in
an unsigned char array(ablkctx->key). The function get_aes_decrypt_key()
is a used to calculate  the reverse round key for decryption, for this
operation the key has to be divided into 4 bytes, so to extract 4 bytes
from an u8 byte stream and store it in an u32 variable, get_aligned_be32()
is used. Similarly for copying back the key from u32 variable to the
original u8 key stream, put_aligned_be32() is used.

Signed-off-by: Ayush Sawal <ayush.sawal@chelsio.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2020-06-01 15:50:26 -07:00
..
chtls crypto: chelsio/chtls: properly set tp->lsndtime 2020-05-26 23:24:00 -07:00
chcr_algo.c Crypto/chcr: Fixes compilations warnings 2020-06-01 15:50:26 -07:00
chcr_algo.h crypto: chelsio - switch to skcipher API 2019-11-17 09:02:47 +08:00
chcr_common.h chcr: Handle first or middle part of record 2020-03-08 21:16:23 -07:00
chcr_core.c cxgb4/chcr: Enable ktls settings at run time 2020-06-01 15:48:18 -07:00
chcr_core.h cxgb4/chcr: Enable ktls settings at run time 2020-06-01 15:48:18 -07:00
chcr_crypto.h Crypto/chcr: fix ctr, cbc, xts and rfc3686-ctr failed tests 2020-05-06 17:44:11 -07:00
chcr_ipsec.c Crypto/chcr: Fixes compilations warnings 2020-06-01 15:50:26 -07:00
chcr_ktls.c crypto/chcr: IPV6 code needs to be in CONFIG_IPV6 2020-06-01 15:49:00 -07:00
chcr_ktls.h cxgb4/chcr: Enable ktls settings at run time 2020-06-01 15:48:18 -07:00
Kconfig cxgb4/chcr : Register to tls add and del callback 2020-03-08 21:16:23 -07:00
Makefile cxgb4/chcr : Register to tls add and del callback 2020-03-08 21:16:23 -07:00