crypto: s5p-sss - Use AES_BLOCK_SIZE define instead of number
Replace hard coded AES block size with define. Signed-off-by: Krzysztof Kozlowski <krzk@kernel.org> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
This commit is contained in:
parent
d9a5289d29
commit
ef5c73b338
@ -1819,10 +1819,12 @@ static void s5p_set_aes(struct s5p_aes_dev *dev,
|
||||
void __iomem *keystart;
|
||||
|
||||
if (iv)
|
||||
memcpy_toio(dev->aes_ioaddr + SSS_REG_AES_IV_DATA(0), iv, 0x10);
|
||||
memcpy_toio(dev->aes_ioaddr + SSS_REG_AES_IV_DATA(0), iv,
|
||||
AES_BLOCK_SIZE);
|
||||
|
||||
if (ctr)
|
||||
memcpy_toio(dev->aes_ioaddr + SSS_REG_AES_CNT_DATA(0), ctr, 0x10);
|
||||
memcpy_toio(dev->aes_ioaddr + SSS_REG_AES_CNT_DATA(0), ctr,
|
||||
AES_BLOCK_SIZE);
|
||||
|
||||
if (keylen == AES_KEYSIZE_256)
|
||||
keystart = dev->aes_ioaddr + SSS_REG_AES_KEY_DATA(0);
|
||||
|
Loading…
x
Reference in New Issue
Block a user