Lines Matching refs:session

566 	struct crypto_session *session;  in crypto_si32_aes_ecb_op()  local
574 session = (struct crypto_session *)ctx->drv_sessn_state; in crypto_si32_aes_ecb_op()
634 ret = crypto_si32_aes_set_key(session->decryption_key, ctx->keylen); in crypto_si32_aes_ecb_op()
700 struct crypto_session *session; in crypto_si32_aes_cbc_op() local
710 session = (struct crypto_session *)ctx->drv_sessn_state; in crypto_si32_aes_cbc_op()
792 ret = crypto_si32_aes_set_key(session->decryption_key, ctx->keylen); in crypto_si32_aes_cbc_op()
875 struct crypto_session *session; in crypto_si32_aes_ctr_op() local
883 session = (struct crypto_session *)ctx->drv_sessn_state; in crypto_si32_aes_ctr_op()
921 SI32_AES_0->HWCTR3.U32 = sys_cpu_to_be32(session->current_ctr); in crypto_si32_aes_ctr_op()
989 session->current_ctr = sys_be32_to_cpu(SI32_AES_0->HWCTR3.U32); in crypto_si32_aes_ctr_op()
1054 struct crypto_session *session = 0; in crypto_si32_begin_session() local
1104 session = &crypto_si32_data.sessions[i]; in crypto_si32_begin_session()
1108 if (!session) { in crypto_si32_begin_session()
1125 session->current_ctr = 0; in crypto_si32_begin_session()
1139 ret = crypto_si32_aes_calc_decryption_key(ctx, session->decryption_key); in crypto_si32_begin_session()
1146 ret = crypto_si32_aes_calc_decryption_key(ctx, session->decryption_key); in crypto_si32_begin_session()
1153 session->current_ctr = 0; in crypto_si32_begin_session()
1169 session->in_use = true; in crypto_si32_begin_session()
1170 ctx->drv_sessn_state = session; in crypto_si32_begin_session()
1187 struct crypto_session *session = (struct crypto_session *)ctx->drv_sessn_state; in crypto_si32_free_session() local
1190 session->in_use = false; in crypto_si32_free_session()