Lines Matching refs:sha1
21 struct SHA1Context sha1; member
50 SHA1Init(&ctx->u.sha1); in crypto_hash_init()
78 SHA1Init(&ctx->u.sha1); in crypto_hash_init()
79 SHA1Update(&ctx->u.sha1, key, key_len); in crypto_hash_init()
80 SHA1Final(tk, &ctx->u.sha1); in crypto_hash_init()
92 SHA1Init(&ctx->u.sha1); in crypto_hash_init()
93 SHA1Update(&ctx->u.sha1, k_pad, sizeof(k_pad)); in crypto_hash_init()
137 SHA1Update(&ctx->u.sha1, data, len); in crypto_hash_update()
181 SHA1Final(mac, &ctx->u.sha1); in crypto_hash_finish()
222 SHA1Final(mac, &ctx->u.sha1); in crypto_hash_finish()
229 SHA1Init(&ctx->u.sha1); in crypto_hash_finish()
230 SHA1Update(&ctx->u.sha1, k_pad, sizeof(k_pad)); in crypto_hash_finish()
231 SHA1Update(&ctx->u.sha1, mac, 20); in crypto_hash_finish()
232 SHA1Final(mac, &ctx->u.sha1); in crypto_hash_finish()