Lines Matching refs:sha1
23 struct SHA1Context sha1; member
58 SHA1Init(&ctx->u.sha1); in crypto_hash_init()
96 SHA1Init(&ctx->u.sha1); in crypto_hash_init()
97 SHA1Update(&ctx->u.sha1, key, key_len); in crypto_hash_init()
98 SHA1Final(tk, &ctx->u.sha1); in crypto_hash_init()
110 SHA1Init(&ctx->u.sha1); in crypto_hash_init()
111 SHA1Update(&ctx->u.sha1, k_pad, sizeof(k_pad)); in crypto_hash_init()
155 SHA1Update(&ctx->u.sha1, data, len); in crypto_hash_update()
209 SHA1Final(mac, &ctx->u.sha1); in crypto_hash_finish()
272 SHA1Final(mac, &ctx->u.sha1); in crypto_hash_finish()
279 SHA1Init(&ctx->u.sha1); in crypto_hash_finish()
280 SHA1Update(&ctx->u.sha1, k_pad, sizeof(k_pad)); in crypto_hash_finish()
281 SHA1Update(&ctx->u.sha1, mac, 20); in crypto_hash_finish()
282 SHA1Final(mac, &ctx->u.sha1); in crypto_hash_finish()