Home
last modified time | relevance | path

Searched refs:ostate (Results 1 – 13 of 13) sorted by relevance

/linux/lib/crypto/
H A Dsha1.c240 struct sha1_block_state *ostate, in __hmac_sha1_preparekey() argument
261 *ostate = sha1_iv; in __hmac_sha1_preparekey()
262 sha1_blocks(ostate, derived_key.b, 1); in __hmac_sha1_preparekey()
270 __hmac_sha1_preparekey(&key->istate, &key->ostate, in hmac_sha1_preparekey()
279 ctx->ostate = key->ostate; in hmac_sha1_init()
286 __hmac_sha1_preparekey(&ctx->sha_ctx.state, &ctx->ostate, in hmac_sha1_init_usingrawkey()
303 sha1_blocks(&ctx->ostate, ctx->sha_ctx.buf, 1); in hmac_sha1_final()
305 put_unaligned_be32(ctx->ostate.h[i / 4], out + i); in hmac_sha1_final()
H A Dmd5.c214 struct md5_block_state *ostate, in __hmac_md5_preparekey() argument
235 *ostate = md5_iv; in __hmac_md5_preparekey()
236 md5_blocks(ostate, derived_key.b, 1); in __hmac_md5_preparekey()
244 __hmac_md5_preparekey(&key->istate, &key->ostate, raw_key, raw_key_len); in hmac_md5_preparekey()
252 ctx->ostate = key->ostate; in hmac_md5_init()
259 __hmac_md5_preparekey(&ctx->hash_ctx.state, &ctx->ostate, in hmac_md5_init_usingrawkey()
276 md5_blocks(&ctx->ostate, ctx->hash_ctx.buf, 1); in hmac_md5_final()
277 cpu_to_le32_array(ctx->ostate.h, ARRAY_SIZE(ctx->ostate.h)); in hmac_md5_final()
278 memcpy(out, ctx->ostate.h, MD5_DIGEST_SIZE); in hmac_md5_final()
H A Dsha512.c254 struct sha512_block_state *ostate, in __hmac_sha512_preparekey() argument
280 *ostate = *iv; in __hmac_sha512_preparekey()
281 sha512_blocks(ostate, derived_key.b, 1); in __hmac_sha512_preparekey()
289 __hmac_sha512_preparekey(&key->key.istate, &key->key.ostate, in hmac_sha384_preparekey()
297 __hmac_sha512_preparekey(&key->key.istate, &key->key.ostate, in hmac_sha512_preparekey()
306 ctx->ostate = key->ostate; in __hmac_sha512_init()
313 __hmac_sha512_preparekey(&ctx->ctx.sha_ctx.state, &ctx->ctx.ostate, in hmac_sha384_init_usingrawkey()
323 __hmac_sha512_preparekey(&ctx->ctx.sha_ctx.state, &ctx->ctx.ostate, in hmac_sha512_init_usingrawkey()
342 sha512_blocks(&ctx->ostate, ctx->sha_ctx.buf, 1); in __hmac_sha512_final()
344 put_unaligned_be64(ctx->ostate.h[i / 8], out + i); in __hmac_sha512_final()
H A Dsha256.c329 struct sha256_block_state *ostate, in __hmac_sha256_preparekey() argument
355 *ostate = *iv; in __hmac_sha256_preparekey()
356 sha256_blocks(ostate, derived_key.b, 1); in __hmac_sha256_preparekey()
364 __hmac_sha256_preparekey(&key->key.istate, &key->key.ostate, in hmac_sha224_preparekey()
372 __hmac_sha256_preparekey(&key->key.istate, &key->key.ostate, in hmac_sha256_preparekey()
381 ctx->ostate = key->ostate; in __hmac_sha256_init()
388 __hmac_sha256_preparekey(&ctx->ctx.sha_ctx.state, &ctx->ctx.ostate, in hmac_sha224_init_usingrawkey()
397 __hmac_sha256_preparekey(&ctx->ctx.sha_ctx.state, &ctx->ctx.ostate, in hmac_sha256_init_usingrawkey()
415 sha256_blocks(&ctx->ostate, ctx->sha_ctx.buf, 1); in __hmac_sha256_final()
417 put_unaligned_be32(ctx->ostate.h[i / 4], out + i); in __hmac_sha256_final()
/linux/crypto/
H A Dsha256.c230 ctx->ctx.ostate = HMAC_SHA224_KEY(desc->tfm)->key.ostate; in crypto_hmac_sha224_import()
245 ctx->ctx.ostate = HMAC_SHA224_KEY(desc->tfm)->key.ostate; in crypto_hmac_sha224_import_core()
297 ctx->ctx.ostate = HMAC_SHA256_KEY(desc->tfm)->key.ostate; in crypto_hmac_sha256_import()
312 ctx->ctx.ostate = HMAC_SHA256_KEY(desc->tfm)->key.ostate; in crypto_hmac_sha256_import_core()
H A Dsha512.c236 ctx->ctx.ostate = HMAC_SHA384_KEY(desc->tfm)->key.ostate; in crypto_hmac_sha384_import()
251 ctx->ctx.ostate = HMAC_SHA384_KEY(desc->tfm)->key.ostate; in crypto_hmac_sha384_import_core()
303 ctx->ctx.ostate = HMAC_SHA512_KEY(desc->tfm)->key.ostate; in crypto_hmac_sha512_import()
318 ctx->ctx.ostate = HMAC_SHA512_KEY(desc->tfm)->key.ostate; in crypto_hmac_sha512_import_core()
H A Dmd5.c160 ctx->ostate = HMAC_MD5_KEY(desc->tfm)->ostate; in crypto_hmac_md5_import()
173 ctx->ostate = HMAC_MD5_KEY(desc->tfm)->ostate; in crypto_hmac_md5_import_core()
H A Dsha1.c164 ctx->ostate = HMAC_SHA1_KEY(desc->tfm)->ostate; in crypto_hmac_sha1_import()
177 ctx->ostate = HMAC_SHA1_KEY(desc->tfm)->ostate; in crypto_hmac_sha1_import_core()
/linux/include/crypto/
H A Dmd5.h98 struct md5_block_state ostate; member
108 struct md5_block_state ostate; member
H A Dsha1.h106 struct sha1_block_state ostate; member
116 struct sha1_block_state ostate; member
H A Dsha2.h141 struct sha256_block_state ostate; member
145 struct sha256_block_state ostate; member
554 struct sha512_block_state ostate; member
558 struct sha512_block_state ostate; member
/linux/drivers/net/ppp/
H A Dppp_generic.c3051 void *state, *ostate; in ppp_set_compress() local
3076 ostate = ppp->xc_state; in ppp_set_compress()
3080 if (ostate) { in ppp_set_compress()
3081 ocomp->comp_free(ostate); in ppp_set_compress()
3094 ostate = ppp->rc_state; in ppp_set_compress()
3098 if (ostate) { in ppp_set_compress()
3099 ocomp->decomp_free(ostate); in ppp_set_compress()
/linux/sound/core/oss/
H A Dpcm_oss.c2850 snd_pcm_state_t ostate; in snd_pcm_oss_poll() local
2853 ostate = runtime->state; in snd_pcm_oss_poll()
2854 if (ostate != SNDRV_PCM_STATE_RUNNING || in snd_pcm_oss_poll()
2858 if (ostate != SNDRV_PCM_STATE_RUNNING && runtime->oss.trigger) { in snd_pcm_oss_poll()