Lines Matching refs:desc
309 SHASH_DESC_ON_STACK(desc, tfm); in krb5_cmac_Ki()
314 desc->tfm = tfm; in krb5_cmac_Ki()
315 ret = crypto_shash_init(desc); in krb5_cmac_Ki()
319 ret = crypto_shash_update(desc, step->data, step->len); in krb5_cmac_Ki()
322 ret = crypto_shash_update(desc, (u8 *)&i, sizeof(i)); in krb5_cmac_Ki()
325 ret = crypto_shash_update(desc, constant->data, constant->len); in krb5_cmac_Ki()
328 ret = crypto_shash_update(desc, &zero, sizeof(zero)); in krb5_cmac_Ki()
331 ret = crypto_shash_update(desc, (u8 *)&k, sizeof(k)); in krb5_cmac_Ki()
334 ret = crypto_shash_final(desc, step->data); in krb5_cmac_Ki()
339 shash_desc_zero(desc); in krb5_cmac_Ki()
448 SHASH_DESC_ON_STACK(desc, tfm); in krb5_hmac_K1()
453 desc->tfm = tfm; in krb5_hmac_K1()
454 ret = crypto_shash_init(desc); in krb5_hmac_K1()
457 ret = crypto_shash_update(desc, (u8 *)&one, sizeof(one)); in krb5_hmac_K1()
460 ret = crypto_shash_update(desc, label->data, label->len); in krb5_hmac_K1()
463 ret = crypto_shash_update(desc, &zero, sizeof(zero)); in krb5_hmac_K1()
466 ret = crypto_shash_update(desc, (u8 *)&k, sizeof(k)); in krb5_hmac_K1()
469 ret = crypto_shash_final(desc, K1->data); in krb5_hmac_K1()
474 shash_desc_zero(desc); in krb5_hmac_K1()