Lines Matching refs:key
34 u8 key[64]; member
39 struct crypto_hash * crypto_hash_init(enum crypto_hash_alg alg, const u8 *key, in crypto_hash_init() argument
78 MD5Update(&ctx->u.md5, key, key_len); in crypto_hash_init()
80 key = tk; in crypto_hash_init()
83 os_memcpy(ctx->key, key, key_len); in crypto_hash_init()
86 os_memcpy(k_pad, key, key_len); in crypto_hash_init()
97 SHA1Update(&ctx->u.sha1, key, key_len); in crypto_hash_init()
99 key = tk; in crypto_hash_init()
102 os_memcpy(ctx->key, key, key_len); in crypto_hash_init()
105 os_memcpy(k_pad, key, key_len); in crypto_hash_init()
117 sha256_process(&ctx->u.sha256, key, key_len); in crypto_hash_init()
119 key = tk; in crypto_hash_init()
122 os_memcpy(ctx->key, key, key_len); in crypto_hash_init()
125 os_memcpy(k_pad, key, key_len); in crypto_hash_init()
254 os_memcpy(k_pad, ctx->key, ctx->key_len); in crypto_hash_finish()
274 os_memcpy(k_pad, ctx->key, ctx->key_len); in crypto_hash_finish()
295 os_memcpy(k_pad, ctx->key, ctx->key_len); in crypto_hash_finish()