Home
last modified time | relevance | path

Searched refs:block (Results 1 – 8 of 8) sorted by relevance

/crypto/
Dcast6_generic.c165 static inline void Q(u32 *block, u8 *Kr, u32 *Km) in Q() argument
168 block[2] ^= F1(block[3], Kr[0], Km[0]); in Q()
169 block[1] ^= F2(block[2], Kr[1], Km[1]); in Q()
170 block[0] ^= F3(block[1], Kr[2], Km[2]); in Q()
171 block[3] ^= F1(block[0], Kr[3], Km[3]); in Q()
175 static inline void QBAR(u32 *block, u8 *Kr, u32 *Km) in QBAR() argument
178 block[3] ^= F1(block[0], Kr[3], Km[3]); in QBAR()
179 block[0] ^= F3(block[1], Kr[2], Km[2]); in QBAR()
180 block[1] ^= F2(block[2], Kr[1], Km[1]); in QBAR()
181 block[2] ^= F1(block[3], Kr[0], Km[0]); in QBAR()
[all …]
Dmd5.c52 le32_to_cpu_array(ctx->block, sizeof(ctx->block) / sizeof(u32)); in md5_transform_helper()
53 md5_transform(ctx->hash, ctx->block); in md5_transform_helper()
72 const u32 avail = sizeof(mctx->block) - (mctx->byte_count & 0x3f); in md5_update()
77 memcpy((char *)mctx->block + (sizeof(mctx->block) - avail), in md5_update()
82 memcpy((char *)mctx->block + (sizeof(mctx->block) - avail), in md5_update()
89 while (len >= sizeof(mctx->block)) { in md5_update()
90 memcpy(mctx->block, data, sizeof(mctx->block)); in md5_update()
92 data += sizeof(mctx->block); in md5_update()
93 len -= sizeof(mctx->block); in md5_update()
96 memcpy(mctx->block, data, len); in md5_update()
[all …]
Dmd4.c38 u32 block[MD4_BLOCK_WORDS]; member
152 le32_to_cpu_array(ctx->block, ARRAY_SIZE(ctx->block)); in md4_transform_helper()
153 md4_transform(ctx->hash, ctx->block); in md4_transform_helper()
172 const u32 avail = sizeof(mctx->block) - (mctx->byte_count & 0x3f); in md4_update()
177 memcpy((char *)mctx->block + (sizeof(mctx->block) - avail), in md4_update()
182 memcpy((char *)mctx->block + (sizeof(mctx->block) - avail), in md4_update()
189 while (len >= sizeof(mctx->block)) { in md4_update()
190 memcpy(mctx->block, data, sizeof(mctx->block)); in md4_update()
192 data += sizeof(mctx->block); in md4_update()
193 len -= sizeof(mctx->block); in md4_update()
[all …]
Dkeywrap.c148 struct crypto_kw_block *block = (struct crypto_kw_block *) in crypto_kw_decrypt() local
163 memcpy(block->A, desc->info, SEMIBSIZE); in crypto_kw_decrypt()
184 scatterwalk_copychunks(block->R, &src_walk, SEMIBSIZE, in crypto_kw_decrypt()
190 crypto_xor(block->A, tbe, SEMIBSIZE); in crypto_kw_decrypt()
193 crypto_cipher_decrypt_one(child, (u8*)block, in crypto_kw_decrypt()
194 (u8*)block); in crypto_kw_decrypt()
199 scatterwalk_copychunks(block->R, &dst_walk, SEMIBSIZE, in crypto_kw_decrypt()
211 if (crypto_memneq("\xA6\xA6\xA6\xA6\xA6\xA6\xA6\xA6", block->A, in crypto_kw_decrypt()
215 memzero_explicit(block, sizeof(struct crypto_kw_block)); in crypto_kw_decrypt()
233 struct crypto_kw_block *block = (struct crypto_kw_block *) in crypto_kw_encrypt() local
[all …]
Dwp512.c785 u64 block[8]; /* mu(buffer) */ in wp512_process_buffer() local
791 block[i] = be64_to_cpu(buffer[i]); in wp512_process_buffer()
793 state[0] = block[0] ^ (K[0] = wctx->hash[0]); in wp512_process_buffer()
794 state[1] = block[1] ^ (K[1] = wctx->hash[1]); in wp512_process_buffer()
795 state[2] = block[2] ^ (K[2] = wctx->hash[2]); in wp512_process_buffer()
796 state[3] = block[3] ^ (K[3] = wctx->hash[3]); in wp512_process_buffer()
797 state[4] = block[4] ^ (K[4] = wctx->hash[4]); in wp512_process_buffer()
798 state[5] = block[5] ^ (K[5] = wctx->hash[5]); in wp512_process_buffer()
799 state[6] = block[6] ^ (K[6] = wctx->hash[6]); in wp512_process_buffer()
800 state[7] = block[7] ^ (K[7] = wctx->hash[7]); in wp512_process_buffer()
[all …]
DKconfig307 This block cipher algorithm is required for IPSec.
316 This block cipher algorithm is required for IPSec.
335 This is the simplest block cipher algorithm. It simply encrypts
336 the input block by block.
345 narrow block cipher mode for dm-crypt. Use it with cipher
348 rest is used to tie each cipher block to its logical position.
356 This block cipher algorithm is required for RxRPC.
364 XTS: IEEE1619/D16 narrow block cipher use with aes-xts-plain,
959 for some popular block cipher mode is supported too, including
988 for some popular block cipher mode is supported too, including
[all …]
Dccm.c64 static int set_msg_len(u8 *block, unsigned int msglen, int csize) in set_msg_len() argument
68 memset(block, 0, csize); in set_msg_len()
69 block += csize; in set_msg_len()
77 memcpy(block - csize, (u8 *)&data + 4 - csize, csize); in set_msg_len()
Dlrw.c121 static inline int get_index128(be128 *block) in get_index128() argument
124 __be32 *p = (__be32 *) block; in get_index128()