aese

AES Encrypt (A32)

AESE.8 <Qd>, <Qm>

Performs one round of AES encryption (AArch32).

Pseudocode Operation

state ← Qd
round_key ← Qm
state ← SubBytes(state)
state ← ShiftRows(state)
state ← MixColumns(state)
state ← AddRoundKey(state, round_key)
Qd ← state

Example

AESE.8 q0, q2

Encoding

Binary Layout
11110011
31:24
1
23
D
22
11
21:20
00
19:18
00
17:16
Vd
15:12
00110
11:7
Q
6
M
5
0
4
Vm
3:0
 
Format Crypto 2-Reg
Opcode 0xF3B00300
Extension Crypto

Operands

  • Qd
    Data
  • Qm
    Key

Related

Other forms of aese

  • aese AES Encrypt (A64)
  • aese AES Encrypt

More in Crypto

Reference

Instruction Forms

Encoding Instruction ISA Bit pattern
0x4E284800 AESE <Vd>.16B, <Vn>.16B A64 01001110 | 00 | 101000010 | 0 | 10 | Rn | Rd
0x4522E000 AESE <Zdn>.B, <Zdn>.B, <Zm>.B A64 01000101 | 0 | 0 | 10001 | 0 | 11100 | 0 | Zm | Zdn

Description

AES single round encryption.

Operation

AArch64.CheckFPAdvSIMDEnabled();

bits(128) operand1 = V[d, 128];
bits(128) operand2 = V[n, 128];
bits(128) result;
result = operand1 EOR operand2;
result = AESSubBytes(AESShiftRows(result));

V[d, 128] = result;