Lines Matching defs:block
207 /* Encrypt or decrypt a block of data in ECB mode */
209 des(void *cookie, uint8_t *block)
216 /* Read input block and place in left/right in big-endian order */
217 left = ((uint32_t)block[0] << 24) |
218 ((uint32_t)block[1] << 16) |
219 ((uint32_t)block[2] << 8) |
220 (uint32_t)block[3];
221 right = ((uint32_t)block[4] << 24) |
222 ((uint32_t)block[5] << 16) |
223 ((uint32_t)block[6] << 8) |
224 (uint32_t)block[7];
292 /* Put the block back into the user's buffer with final swap */
293 block[0] = right >> 24;
294 block[1] = right >> 16;
295 block[2] = right >> 8;
296 block[3] = right;
297 block[4] = left >> 24;
298 block[5] = left >> 16;
299 block[6] = left >> 8;
300 block[7] = left;