Lines Matching defs:key
111 * sm4_expandkey - Expands the SM4 key as described in GB/T 32907-2016
112 * @ctx: The location where the computed key will be stored.
113 * @in_key: The supplied key.
114 * @key_len: The length of the supplied key.
116 * Returns 0 on success. The function fails only if an invalid key size (or
123 const u32 *key = (u32 *)in_key;
129 rk[0] = get_unaligned_be32(&key[0]) ^ fk[0];
130 rk[1] = get_unaligned_be32(&key[1]) ^ fk[1];
131 rk[2] = get_unaligned_be32(&key[2]) ^ fk[2];
132 rk[3] = get_unaligned_be32(&key[3]) ^ fk[3];