Home
last modified time | relevance | path

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

/crypto/
Dsm4_generic.c101 static u32 sm4_round(const u32 *x, const u32 rk) in sm4_round() argument
103 return x[0] ^ sm4_enc_sub(x[1] ^ x[2] ^ x[3] ^ rk); in sm4_round()
119 u32 rk[4], t; in crypto_sm4_expand_key() local
127 rk[i] = get_unaligned_be32(&key[i]) ^ fk[i]; in crypto_sm4_expand_key()
130 t = rk[0] ^ sm4_key_sub(rk[1] ^ rk[2] ^ rk[3] ^ ck[i]); in crypto_sm4_expand_key()
132 rk[0] = rk[1]; in crypto_sm4_expand_key()
133 rk[1] = rk[2]; in crypto_sm4_expand_key()
134 rk[2] = rk[3]; in crypto_sm4_expand_key()
135 rk[3] = t; in crypto_sm4_expand_key()
166 static void sm4_do_crypt(const u32 *rk, u32 *out, const u32 *in) in sm4_do_crypt() argument
[all …]