[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v4 16/37] target/ppc: Use aesdec_ISB_ISR_AK
From: |
Richard Henderson |
Subject: |
[PATCH v4 16/37] target/ppc: Use aesdec_ISB_ISR_AK |
Date: |
Mon, 3 Jul 2023 12:04:59 +0200 |
This implements the VNCIPHERLAST instruction.
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Daniel Henrique Barboza <danielhb413@gmail.com>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
---
target/ppc/int_helper.c | 8 +-------
1 file changed, 1 insertion(+), 7 deletions(-)
diff --git a/target/ppc/int_helper.c b/target/ppc/int_helper.c
index 34257e9d76..15f07fca2b 100644
--- a/target/ppc/int_helper.c
+++ b/target/ppc/int_helper.c
@@ -2973,13 +2973,7 @@ void helper_vncipher(ppc_avr_t *r, ppc_avr_t *a,
ppc_avr_t *b)
void helper_vncipherlast(ppc_avr_t *r, ppc_avr_t *a, ppc_avr_t *b)
{
- ppc_avr_t result;
- int i;
-
- VECTOR_FOR_INORDER_I(i, u8) {
- result.VsrB(i) = b->VsrB(i) ^ (AES_isbox[a->VsrB(AES_ishifts[i])]);
- }
- *r = result;
+ aesdec_ISB_ISR_AK((AESState *)r, (AESState *)a, (AESState *)b, true);
}
void helper_vshasigmaw(ppc_avr_t *r, ppc_avr_t *a, uint32_t st_six)
--
2.34.1
- [PATCH v4 20/37] target/i386: Use aesdec_ISB_ISR_AK, (continued)
- [PATCH v4 20/37] target/i386: Use aesdec_ISB_ISR_AK, Richard Henderson, 2023/07/03
- [PATCH v4 24/37] target/arm: Demultiplex AESE and AESMC, Richard Henderson, 2023/07/03
- [PATCH v4 25/37] target/arm: Use aesenc_SB_SR_AK, Richard Henderson, 2023/07/03
- [PATCH v4 26/37] target/arm: Use aesdec_ISB_ISR_AK, Richard Henderson, 2023/07/03
- [PATCH v4 28/37] target/arm: Use aesdec_IMC, Richard Henderson, 2023/07/03
- [PATCH v4 29/37] target/riscv: Use aesenc_SB_SR_AK, Richard Henderson, 2023/07/03
- [PATCH v4 16/37] target/ppc: Use aesdec_ISB_ISR_AK,
Richard Henderson <=
- [PATCH v4 09/37] crypto: Add aesenc_SB_SR_MC_AK, Richard Henderson, 2023/07/03
- [PATCH v4 32/37] target/riscv: Use aesenc_SB_SR_MC_AK, Richard Henderson, 2023/07/03
- [PATCH v4 23/37] target/i386: Use aesdec_ISB_ISR_IMC_AK, Richard Henderson, 2023/07/03
- [PATCH v4 33/37] target/riscv: Use aesdec_ISB_ISR_IMC_AK, Richard Henderson, 2023/07/03
- [PATCH v4 34/37] crypto: Remove AES_shifts, AES_ishifts, Richard Henderson, 2023/07/03
- [PATCH v4 27/37] target/arm: Use aesenc_MC, Richard Henderson, 2023/07/03