Home
last modified time | relevance | path

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

/linux/lib/crypto/
H A Dsha1.c211 struct sha1_block_state *ostate, in __sha1_final()
232 *ostate = sha1_iv; in sha1()
233 sha1_blocks(ostate, derived_key.b, 1); in sha1()
241 __hmac_sha1_preparekey(&key->istate, &key->ostate, in __hmac_sha1_preparekey()
250 ctx->ostate = key->ostate; in __hmac_sha1_preparekey()
257 __hmac_sha1_preparekey(&ctx->sha_ctx.state, &ctx->ostate, in __hmac_sha1_preparekey()
274 sha1_blocks(&ctx->ostate, ctx->sha_ctx.buf, 1);
276 put_unaligned_be32(ctx->ostate.h[i / 4], out + i); in hmac_sha1_init()
240 __hmac_sha1_preparekey(struct sha1_block_state * istate,struct sha1_block_state * ostate,const u8 * raw_key,size_t raw_key_len) __hmac_sha1_preparekey() argument
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 in hmac_md5_final()
[all...]
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 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/gpu/drm/tidss/
H A Dtidss_crtc.c126 struct drm_atomic_state *ostate = old_state->state; in tidss_crtc_position_planes() local
141 for_each_new_plane_in_state(ostate, plane, pstate, i) { in tidss_crtc_position_planes()
/linux/drivers/net/ppp/
H A Dppp_generic.c3071 void *state, *ostate; in ppp_set_compress() local
3096 ostate = ppp->xc_state; in ppp_set_compress()
3100 if (ostate) { in ppp_set_compress()
3101 ocomp->comp_free(ostate); in ppp_set_compress()
3114 ostate = ppp->rc_state; in ppp_set_compress()
3118 if (ostate) { in ppp_set_compress()
3119 ocomp->decomp_free(ostate); in ppp_set_compress()
/linux/drivers/crypto/inside-secure/
H A Dsafexcel_hash.c1116 void *istate, void *ostate) in __safexcel_hmac_setkey() argument
1153 ret = safexcel_hmac_init_iv(areq, blocksize, opad, ostate); in __safexcel_hmac_setkey()
1170 struct safexcel_ahash_export_state istate, ostate; in safexcel_hmac_setkey() local
1173 ret = __safexcel_hmac_setkey(alg, key, keylen, &istate, &ostate); in safexcel_hmac_setkey()
1179 memcmp(&base->opad, ostate.state, state_sz))) in safexcel_hmac_setkey()
1183 memcpy(&base->opad, &ostate.state, state_sz); in safexcel_hmac_setkey()
/linux/sound/core/oss/
H A Dpcm_oss.c2853 snd_pcm_state_t ostate; in snd_pcm_oss_poll() local
2856 ostate = runtime->state; in snd_pcm_oss_poll()
2857 if (ostate != SNDRV_PCM_STATE_RUNNING || in snd_pcm_oss_poll()
2861 if (ostate != SNDRV_PCM_STATE_RUNNING && runtime->oss.trigger) { in snd_pcm_oss_poll()