Home
last modified time | relevance | path

Searched refs:K (Results 1 – 3 of 3) sorted by relevance

/crypto/
Dwp512.c778 u64 K[8]; /* the round key */ in wp512_process_buffer() local
787 state[0] = block[0] ^ (K[0] = wctx->hash[0]); in wp512_process_buffer()
788 state[1] = block[1] ^ (K[1] = wctx->hash[1]); in wp512_process_buffer()
789 state[2] = block[2] ^ (K[2] = wctx->hash[2]); in wp512_process_buffer()
790 state[3] = block[3] ^ (K[3] = wctx->hash[3]); in wp512_process_buffer()
791 state[4] = block[4] ^ (K[4] = wctx->hash[4]); in wp512_process_buffer()
792 state[5] = block[5] ^ (K[5] = wctx->hash[5]); in wp512_process_buffer()
793 state[6] = block[6] ^ (K[6] = wctx->hash[6]); in wp512_process_buffer()
794 state[7] = block[7] ^ (K[7] = wctx->hash[7]); in wp512_process_buffer()
798 L[0] = C0[(int)(K[0] >> 56) ] ^ in wp512_process_buffer()
[all …]
Ddes_generic.c590 #define ROUND(L, R, A, B, K, d) \ argument
591 B = K[0]; A = K[1]; K += d; \
806 const u32 *K = ctx->expkey; in des_encrypt() local
817 ROUND(L, R, A, B, K, 2); in des_encrypt()
818 ROUND(R, L, A, B, K, 2); in des_encrypt()
829 const u32 *K = ctx->expkey + DES_EXPKEY_WORDS - 2; in des_decrypt() local
840 ROUND(L, R, A, B, K, -2); in des_decrypt()
841 ROUND(R, L, A, B, K, -2); in des_decrypt()
865 const u32 *K = (const u32 *)key; in des3_ede_setkey() local
870 if (unlikely(!((K[0] ^ K[2]) | (K[1] ^ K[3])) || in des3_ede_setkey()
[all …]
Dserpent.c45 #define K(x0,x1,x2,x3,i) \ macro
382 K(r0,r1,r2,r3,0); in serpent_encrypt()
414 S7(r3,r4,r1,r2,r0); K(r0,r1,r2,r3,32); in serpent_encrypt()
436 K(r0,r1,r2,r3,32); in serpent_decrypt()
468 SI0(r4,r1,r2,r0,r3); K(r2,r3,r1,r4,0); in serpent_decrypt()