Lines Matching +full:12 +full:- +full:byte
1 /* SPDX-License-Identifier: GPL-2.0 */
5 * Based on arch/loongarch/vdso/vgetrandom-chacha.S.
14 slliw t0, \rs, 32 - \imm
28 * a1: 32-byte key input
29 * a2: 8-byte counter input/output
30 * a3: number of 64-byte blocks to write to output
79 * The ABI requires s0-s9 saved.
80 * This does not violate the stack-less requirement: no sensitive data
83 addi sp, sp, -12*SZREG
105 /* state[0,1,2,3] = "expand 32-byte k" */
115 lw state7, 12(key)
121 /* state[12,13] = counter */
165 addi i, i, -1
173 sw state3, 12(output)
181 lw state3, 12(key)
203 /* output[12,13,14,15] = state[12,13,14,15] + [cnt_lo, cnt_hi, 0, 0] */
217 /* --nblocks */
218 addi nblocks, nblocks, -1
225 * again. As at now copy[0,1,2,3] just contains "expand 32-byte k" and
226 * state[0,...,11] are s0-s11 those we'll restore in the epilogue, we
227 * only need to zero state[12,...,15].
246 addi sp, sp, 12*SZREG