autib

Authenticate Instruction Address (Key B)

AUTIB <Xd>, <Xn>

Authenticates an instruction address signed with Key B.

Details

Authenticates a 64-bit instruction address in Xd using Key B and a modifier in Xn. Similar to AUTIA, this instruction cryptographically verifies the pointer authentication code embedded in Xd using the alternate (Key B) authentication key. If authentication fails, the result is corrupted. This instruction is AArch64-only and requires ARMv8.3-A or later with PAC extension enabled; it does not affect condition flags.

Pseudocode Operation

Xd ← AuthIB(Xd, Xn)

Example

AUTIB x0, x1

Encoding

Binary Layout
1
1
0
11010110
00001
00
0
101
Rn
Rd
 
Format Data Processing
Opcode 0xDAC11400
Extension PAC (Security)

Operands

  • Xd
    Destination 64-bit integer register
  • Xn
    Modifier

Reference (Arm A64 ISA)

Instruction Forms

Encoding Instruction ISA Bit pattern
0xDAC11400 AUTIB <Xd>, <Xn|SP> A64 1 | 1 | 0 | 11010110 | 00001 | 00 | 0 | 101 | Rn | Rd

Description

Authenticate Instruction address, using key B. This instruction authenticates an instruction address, using a modifier and key B. If the authentication passes, the upper bits of the address are restored to enable subsequent use of the address. For information on behavior if the authentication fails, see Faulting on pointer authentication. The address is: The modifier is: If FEAT_PAuth_LR is implemented and PSTATE.PACM is 1, then AUTIB1716 and AUTIBSP include a second modifier that is:

Operation

if IsFeatureImplemented(FEAT_PAuth) then
    if source_is_sp then
        if IsFeatureImplemented(FEAT_PAuth_LR) && PSTATE.PACM == '1' then
            X[d, 64] = AuthIB2(X[d, 64], SP[], X[16, 64], FALSE);
        else
            X[d, 64] = AuthIB(X[d, 64], SP[], FALSE);
    else
        if IsFeatureImplemented(FEAT_PAuth_LR) && PSTATE.PACM == '1' && autib1716 then
            X[d, 64] = AuthIB2(X[d, 64], X[n, 64], X[15, 64], FALSE);
        else
            X[d, 64] = AuthIB(X[d, 64], X[n, 64], FALSE);