Lines Matching refs:status

40     psa_status_t status;  in ctr_drbg_setup_psa_context()  local
45 status = psa_import_key(&key_attr, key, key_len, &psa_ctx->key_id); in ctr_drbg_setup_psa_context()
46 if (status != PSA_SUCCESS) { in ctr_drbg_setup_psa_context()
50 status = psa_cipher_encrypt_setup(&psa_ctx->operation, psa_ctx->key_id, PSA_ALG_ECB_NO_PADDING); in ctr_drbg_setup_psa_context()
51 if (status != PSA_SUCCESS) { in ctr_drbg_setup_psa_context()
57 return status; in ctr_drbg_setup_psa_context()
172 psa_status_t status; in block_cipher_df() local
213 status = ctr_drbg_setup_psa_context(&psa_ctx, key, sizeof(key)); in block_cipher_df()
214 if (status != PSA_SUCCESS) { in block_cipher_df()
215 ret = psa_generic_status_to_mbedtls(status); in block_cipher_df()
242 status = psa_cipher_update(&psa_ctx.operation, chain, MBEDTLS_CTR_DRBG_BLOCKSIZE, in block_cipher_df()
244 if (status != PSA_SUCCESS) { in block_cipher_df()
245 ret = psa_generic_status_to_mbedtls(status); in block_cipher_df()
270 status = ctr_drbg_setup_psa_context(&psa_ctx, tmp, MBEDTLS_CTR_DRBG_KEYSIZE); in block_cipher_df()
271 if (status != PSA_SUCCESS) { in block_cipher_df()
272 ret = psa_generic_status_to_mbedtls(status); in block_cipher_df()
286 status = psa_cipher_update(&psa_ctx.operation, iv, MBEDTLS_CTR_DRBG_BLOCKSIZE, in block_cipher_df()
288 if (status != PSA_SUCCESS) { in block_cipher_df()
289 ret = psa_generic_status_to_mbedtls(status); in block_cipher_df()
340 psa_status_t status; in ctr_drbg_update_internal() local
356 status = psa_cipher_update(&ctx->psa_ctx.operation, ctx->counter, sizeof(ctx->counter), in ctr_drbg_update_internal()
358 if (status != PSA_SUCCESS) { in ctr_drbg_update_internal()
359 ret = psa_generic_status_to_mbedtls(status); in ctr_drbg_update_internal()
380 status = ctr_drbg_setup_psa_context(&ctx->psa_ctx, tmp, MBEDTLS_CTR_DRBG_KEYSIZE); in ctr_drbg_update_internal()
381 if (status != PSA_SUCCESS) { in ctr_drbg_update_internal()
382 ret = psa_generic_status_to_mbedtls(status); in ctr_drbg_update_internal()
568 psa_status_t status; in mbedtls_ctr_drbg_seed() local
570 status = ctr_drbg_setup_psa_context(&ctx->psa_ctx, key, MBEDTLS_CTR_DRBG_KEYSIZE); in mbedtls_ctr_drbg_seed()
571 if (status != PSA_SUCCESS) { in mbedtls_ctr_drbg_seed()
572 ret = psa_generic_status_to_mbedtls(status); in mbedtls_ctr_drbg_seed()
573 return status; in mbedtls_ctr_drbg_seed()
659 psa_status_t status; in mbedtls_ctr_drbg_random_with_add() local
662 status = psa_cipher_update(&ctx->psa_ctx.operation, ctx->counter, sizeof(ctx->counter), in mbedtls_ctr_drbg_random_with_add()
664 if (status != PSA_SUCCESS) { in mbedtls_ctr_drbg_random_with_add()
665 ret = psa_generic_status_to_mbedtls(status); in mbedtls_ctr_drbg_random_with_add()