mirror of
https://github.com/mii443/qemu.git
synced 2025-12-03 02:58:29 +00:00
crypto: Add aesdec_ISB_ISR_AK_IMC
Add a primitive for InvSubBytes + InvShiftRows + AddRoundKey + InvMixColumns. Acked-by: Daniel P. Berrangé <berrange@redhat.com> Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org> Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
This commit is contained in:
14
crypto/aes.c
14
crypto/aes.c
@@ -1542,6 +1542,20 @@ void aesdec_ISB_ISR_IMC_AK_genrev(AESState *r, const AESState *st,
|
||||
aesdec_ISB_ISR_IMC_AK_swap(r, st, rk, true);
|
||||
}
|
||||
|
||||
void aesdec_ISB_ISR_AK_IMC_gen(AESState *ret, const AESState *st,
|
||||
const AESState *rk)
|
||||
{
|
||||
aesdec_ISB_ISR_AK_gen(ret, st, rk);
|
||||
aesdec_IMC_gen(ret, ret);
|
||||
}
|
||||
|
||||
void aesdec_ISB_ISR_AK_IMC_genrev(AESState *ret, const AESState *st,
|
||||
const AESState *rk)
|
||||
{
|
||||
aesdec_ISB_ISR_AK_genrev(ret, st, rk);
|
||||
aesdec_IMC_genrev(ret, ret);
|
||||
}
|
||||
|
||||
/**
|
||||
* Expand the cipher key into the encryption key schedule.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user