Lines Matching defs:MAX_STRIDE
13 #ifndef MAX_STRIDE
14 #define MAX_STRIDE 4
17 #if MAX_STRIDE == 4
35 #if MAX_STRIDE == 5
60 subs w4, w4, #MAX_STRIDE
70 adds w4, w4, #MAX_STRIDE
90 subs w4, w4, #MAX_STRIDE
100 adds w4, w4, #MAX_STRIDE
186 subs w4, w4, #MAX_STRIDE
189 #if MAX_STRIDE == 5
219 adds w4, w4, #MAX_STRIDE
353 sub BYTES_W, BYTES_W, #MAX_STRIDE << 4
355 mov w8, #MAX_STRIDE
360 * Set up the counter values in v0-v{MAX_STRIDE-1}.
362 * If we are encrypting less than MAX_STRIDE blocks, the tail block
364 * v{MAX_STRIDE-1}. For example: if encrypting two blocks with
365 * MAX_STRIDE=5, then v3 and v4 should have the next two counter blocks.
378 sub x6, CTR, #MAX_STRIDE - 1
379 sub x7, CTR, #MAX_STRIDE - 2
380 sub x8, CTR, #MAX_STRIDE - 3
381 sub x9, CTR, #MAX_STRIDE - 4
382 ST5( sub x10, CTR, #MAX_STRIDE - 5 )
416 * MAX_STRIDE. Using the value of IV_PART we can determine how
438 sub x7, IV_PART, #MAX_STRIDE - 1
439 sub x8, IV_PART, #MAX_STRIDE - 2
440 sub x9, IV_PART, #MAX_STRIDE - 3
445 ST5( sub x10, IV_PART, #MAX_STRIDE - 4 )
453 * If there are at least MAX_STRIDE blocks left, XOR the data with
481 * Handle up to MAX_STRIDE * 16 - 1 bytes of plaintext
483 * This code expects the last keystream block to be in v{MAX_STRIDE-1}.
484 * For example: if encrypting two blocks with MAX_STRIDE=5, then v3 and
496 ST5( cmp BYTES_W, #64 - (MAX_STRIDE << 4))
498 cmp BYTES_W, #48 - (MAX_STRIDE << 4)
500 cmp BYTES_W, #32 - (MAX_STRIDE << 4)
502 cmp BYTES_W, #16 - (MAX_STRIDE << 4)