Paper 2026/3089
Bit-Exact Symmetric Cryptography on Commercial Edge AI Accelerators: Exactness, Wall-Plug Energy, and Five Silent Failures
Abstract
We compile seven standard symmetric primitives (the Keccak-f[1600] permutation of SHA-3, AES-128, SM4, ARIA-128, Camellia-128, ChaCha20 and Salsa20) into networks of binary threshold units with weights in {-1,0,+1}. We map them to the convolution engines of six commercial edge AI accelerator units from five vendors (a BrainChip AKD1500, two Hailo-8 cards, a MemryX MX3, the AMD XDNA 2 NPU and the VeriSilicon NPU of an Amlogic A311D) and to the int8 matrix extension of a SpacemiT K1 RISC-V CPU, through the vendors' own quantizers, compilers and runtimes, and we check every output bit against the standard. Of the 42 accelerator-primitive cells, 34 are bit-exact on silicon in at least one mapping, in runs of up to 1.3e8 checked blocks. The exceptions are Keccak-f on the AKD1500, where input padding lowers a transient error rate by a factor of about 56 but a 21-hour soak still found 56 wrong permutations in 2.7e7 (2.1e-6), and all seven primitives on XDNA 2, where 13 of 50 sustained runs returned wrong blocks after every exact test had passed. We then measure energy per block at the mains plug, both as power added over the host's idle draw and as whole-device power, against library code on the CPUs and GPUs of the same machines. The headline result is negative. The best exact accelerator for each primitive uses 1.5e4 to 2.6e5 times the added energy per block of the best CPU or GPU we measured (AES-128: 0.945 mJ per block on the AKD1500 against 3.60 nJ on the same host's Arm cores). The exact networks are, however, a strict oracle. With them we observe five silent failures in shipped toolchains and silicon, none of which raised an error or warning: a Hailo calibration default that breaks chained exact networks (246 of 256 SHA-3 permutations wrong, on two cards); a transient input zero-fill on the AKD1500; a cross-sample output fault on the AKD1500 for one SM4 mapping (1.29% of blocks wrong); an MX3 network that passes the vendor simulator and fails on the chip; and intermittent wrong outputs on XDNA 2, in a GF(2) workload and in the cipher runs (4,618 wrong of 4.9e7 checked outputs). A pre-registered test finds that wall power and host telemetry do not predict the AKD1500 errors. The value of exact cryptographic networks on these chips is not speed or efficiency but verification: they turn "the accelerator computed what we asked" into a yes-or-no question with a public answer.
Comments