Skip to content
Snippets Groups Projects
Commit de4e1db2 authored by Niels Möller's avatar Niels Möller
Browse files

Update powerpc64 aes decrypt.

parent 3a9e9046
No related branches found
No related tags found
No related merge requests found
...@@ -115,14 +115,14 @@ IF_LE(`OPN_XXXY(vperm, SWAP_MASK, S0,S1,S2,S3,S4,S5,S6,S7)') ...@@ -115,14 +115,14 @@ IF_LE(`OPN_XXXY(vperm, SWAP_MASK, S0,S1,S2,S3,S4,S5,S6,S7)')
OPN_XXY(vxor, K, S0, S1, S2, S3, S4, S5, S6, S7) OPN_XXY(vxor, K, S0, S1, S2, S3, S4, S5, S6, S7)
mtctr ROUNDS mtctr ROUNDS
li r10,0x10 li r10,-0x10
.align 5 .align 5
L8x_round_loop: L8x_round_loop:
lxvd2x VSR(K),r10,KEYS lxvd2x VSR(K),r10,KEYS
vperm K,K,K,SWAP_MASK vperm K,K,K,SWAP_MASK
OPN_XXY(vncipher, ZERO, S0, S1, S2, S3, S4, S5, S6, S7) OPN_XXY(vncipher, ZERO, S0, S1, S2, S3, S4, S5, S6, S7)
OPN_XXY(vxor, K, S0, S1, S2, S3, S4, S5, S6, S7) OPN_XXY(vxor, K, S0, S1, S2, S3, S4, S5, S6, S7)
addi r10,r10,0x10 subi r10,r10,0x10
bdnz L8x_round_loop bdnz L8x_round_loop
lxvd2x VSR(K),r10,KEYS lxvd2x VSR(K),r10,KEYS
...@@ -176,14 +176,14 @@ IF_LE(`OPN_XXXY(vperm, SWAP_MASK, S0,S1,S2,S3)') ...@@ -176,14 +176,14 @@ IF_LE(`OPN_XXXY(vperm, SWAP_MASK, S0,S1,S2,S3)')
OPN_XXY(vxor, K, S0, S1, S2, S3) OPN_XXY(vxor, K, S0, S1, S2, S3)
mtctr ROUNDS mtctr ROUNDS
li r10,0x10 li r10,-0x10
.align 5 .align 5
L4x_round_loop: L4x_round_loop:
lxvd2x VSR(K),r10,KEYS lxvd2x VSR(K),r10,KEYS
vperm K,K,K,SWAP_MASK vperm K,K,K,SWAP_MASK
OPN_XXY(vncipher, ZERO, S0, S1, S2, S3) OPN_XXY(vncipher, ZERO, S0, S1, S2, S3)
OPN_XXY(vxor, K, S0, S1, S2, S3) OPN_XXY(vxor, K, S0, S1, S2, S3)
addi r10,r10,0x10 subi r10,r10,0x10
bdnz L4x_round_loop bdnz L4x_round_loop
lxvd2x VSR(K),r10,KEYS lxvd2x VSR(K),r10,KEYS
...@@ -224,7 +224,7 @@ IF_LE(`vperm S0,S0,S0,SWAP_MASK ...@@ -224,7 +224,7 @@ IF_LE(`vperm S0,S0,S0,SWAP_MASK
vxor S1,S1,K vxor S1,S1,K
mtctr ROUNDS mtctr ROUNDS
li r10,0x10 li r10,-0x10
.align 5 .align 5
L2x_round_loop: L2x_round_loop:
lxvd2x VSR(K),r10,KEYS lxvd2x VSR(K),r10,KEYS
...@@ -233,7 +233,7 @@ L2x_round_loop: ...@@ -233,7 +233,7 @@ L2x_round_loop:
vncipher S1,S1,ZERO vncipher S1,S1,ZERO
vxor S0,S0,K vxor S0,S0,K
vxor S1,S1,K vxor S1,S1,K
addi r10,r10,0x10 subi r10,r10,0x10
bdnz L2x_round_loop bdnz L2x_round_loop
lxvd2x VSR(K),r10,KEYS lxvd2x VSR(K),r10,KEYS
...@@ -267,14 +267,14 @@ IF_LE(`vperm S0,S0,S0,SWAP_MASK') ...@@ -267,14 +267,14 @@ IF_LE(`vperm S0,S0,S0,SWAP_MASK')
vxor S0,S0,K vxor S0,S0,K
mtctr ROUNDS mtctr ROUNDS
li r10,0x10 li r10,-0x10
.align 5 .align 5
L1x_round_loop: L1x_round_loop:
lxvd2x VSR(K),r10,KEYS lxvd2x VSR(K),r10,KEYS
vperm K,K,K,SWAP_MASK vperm K,K,K,SWAP_MASK
vncipher S0,S0,ZERO vncipher S0,S0,ZERO
vxor S0,S0,K vxor S0,S0,K
addi r10,r10,0x10 subi r10,r10,0x10
bdnz L1x_round_loop bdnz L1x_round_loop
lxvd2x VSR(K),r10,KEYS lxvd2x VSR(K),r10,KEYS
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment