Lines Matching refs:sha1
93 struct shash_desc *sha1; member
133 crypto_shash_init(state->sha1); in get_new_key_from_sha()
134 crypto_shash_update(state->sha1, state->master_key, in get_new_key_from_sha()
136 crypto_shash_update(state->sha1, sha_pad->sha_pad1, in get_new_key_from_sha()
138 crypto_shash_update(state->sha1, state->session_key, in get_new_key_from_sha()
140 crypto_shash_update(state->sha1, sha_pad->sha_pad2, in get_new_key_from_sha()
142 crypto_shash_final(state->sha1, state->sha1_digest); in get_new_key_from_sha()
191 state->sha1 = kmalloc(sizeof(*state->sha1) + in mppe_alloc()
194 if (!state->sha1) { in mppe_alloc()
198 state->sha1->tfm = shash; in mppe_alloc()
223 if (state->sha1) { in mppe_alloc()
224 crypto_free_shash(state->sha1->tfm); in mppe_alloc()
225 kzfree(state->sha1); in mppe_alloc()
240 crypto_free_shash(state->sha1->tfm); in mppe_free()
241 kzfree(state->sha1); in mppe_free()