Lines Matching refs:block
374 blowfish_encrypt_block(const void *cookie, const uint8_t *block, in blowfish_encrypt_block() argument
385 if (IS_P2ALIGNED(block, sizeof (uint32_t))) { in blowfish_encrypt_block()
387 b32 = (uint32_t *)block; in blowfish_encrypt_block()
397 left = htonl(*(uint32_t *)(void *)&block[0]); in blowfish_encrypt_block()
398 right = htonl(*(uint32_t *)(void *)&block[4]); in blowfish_encrypt_block()
400 left = ((uint32_t)block[0] << 24) in blowfish_encrypt_block()
401 | ((uint32_t)block[1] << 16) in blowfish_encrypt_block()
402 | ((uint32_t)block[2] << 8) in blowfish_encrypt_block()
403 | (uint32_t)block[3]; in blowfish_encrypt_block()
404 right = ((uint32_t)block[4] << 24) in blowfish_encrypt_block()
405 | ((uint32_t)block[5] << 16) in blowfish_encrypt_block()
406 | ((uint32_t)block[6] << 8) in blowfish_encrypt_block()
407 | (uint32_t)block[7]; in blowfish_encrypt_block()
469 blowfish_decrypt_block(const void *cookie, const uint8_t *block, in blowfish_decrypt_block() argument
480 if (IS_P2ALIGNED(block, sizeof (uint32_t))) { in blowfish_decrypt_block()
482 b32 = (uint32_t *)block; in blowfish_decrypt_block()
492 left = htonl(*(uint32_t *)(void *)&block[0]); in blowfish_decrypt_block()
493 right = htonl(*(uint32_t *)(void *)&block[4]); in blowfish_decrypt_block()
495 left = ((uint32_t)block[0] << 24) in blowfish_decrypt_block()
496 | ((uint32_t)block[1] << 16) in blowfish_decrypt_block()
497 | ((uint32_t)block[2] << 8) in blowfish_decrypt_block()
498 | (uint32_t)block[3]; in blowfish_decrypt_block()
499 right = ((uint32_t)block[4] << 24) in blowfish_decrypt_block()
500 | ((uint32_t)block[5] << 16) in blowfish_decrypt_block()
501 | ((uint32_t)block[6] << 8) in blowfish_decrypt_block()
502 | (uint32_t)block[7]; in blowfish_decrypt_block()