Lines Matching refs:oper

308 	int oper;  member
1000 create_hash_pad(int oper, unsigned char *dst, u64 dgstlen, u64 bitcount) in create_hash_pad() argument
1005 switch (oper) { in create_hash_pad()
1454 u32 oper; in artpec6_crypto_prepare_hash() local
1457 oper = FIELD_GET(A6_CRY_MD_OPER, req_ctx->hash_md); in artpec6_crypto_prepare_hash()
1459 oper = FIELD_GET(A7_CRY_MD_OPER, req_ctx->hash_md); in artpec6_crypto_prepare_hash()
1483 hash_pad_len = create_hash_pad(oper, req_ctx->pad_buffer, in artpec6_crypto_prepare_hash()
1673 u32 oper; in artpec6_crypto_prepare_crypto() local
1721 oper = regk_crypto_aes_ecb; in artpec6_crypto_prepare_crypto()
1726 oper = regk_crypto_aes_cbc; in artpec6_crypto_prepare_crypto()
1731 oper = regk_crypto_aes_ctr; in artpec6_crypto_prepare_crypto()
1736 oper = regk_crypto_aes_xts; in artpec6_crypto_prepare_crypto()
1752 req_ctx->cipher_md |= FIELD_PREP(A6_CRY_MD_OPER, oper); in artpec6_crypto_prepare_crypto()
1758 req_ctx->cipher_md |= FIELD_PREP(A7_CRY_MD_OPER, oper); in artpec6_crypto_prepare_crypto()
2262 u32 oper; in artpec6_crypto_init_hash() local
2272 oper = hmac ? regk_crypto_hmac_sha1 : regk_crypto_sha1; in artpec6_crypto_init_hash()
2275 oper = hmac ? regk_crypto_hmac_sha256 : regk_crypto_sha256; in artpec6_crypto_init_hash()
2283 req_ctx->hash_md = FIELD_PREP(A6_CRY_MD_OPER, oper); in artpec6_crypto_init_hash()
2285 req_ctx->hash_md = FIELD_PREP(A7_CRY_MD_OPER, oper); in artpec6_crypto_init_hash()
2448 state->oper = FIELD_GET(A6_CRY_MD_OPER, ctx->hash_md); in artpec6_crypto_hash_export()
2450 state->oper = FIELD_GET(A7_CRY_MD_OPER, ctx->hash_md); in artpec6_crypto_hash_export()
2474 ctx->hash_md = FIELD_PREP(A6_CRY_MD_OPER, state->oper); in artpec6_crypto_hash_import()
2476 ctx->hash_md = FIELD_PREP(A7_CRY_MD_OPER, state->oper); in artpec6_crypto_hash_import()