Lines Matching refs:ciphertext
4224 data_t *plaintext, data_t *ciphertext)
4239 TEST_LE_U(ciphertext->len,
4244 PSA_CIPHER_DECRYPT_OUTPUT_SIZE(key_type, alg, ciphertext->len));
4245 TEST_LE_U(PSA_CIPHER_DECRYPT_OUTPUT_SIZE(key_type, alg, ciphertext->len),
4246 PSA_CIPHER_DECRYPT_OUTPUT_MAX_SIZE(ciphertext->len));
4293 TEST_MEMORY_COMPARE(ciphertext->x, ciphertext->len,
4301 ciphertext->x, ciphertext->len,
4319 TEST_MEMORY_COMPARE(ciphertext->x, ciphertext->len,
4324 PSA_ASSERT(psa_cipher_decrypt(key, alg, ciphertext->x, ciphertext->len,
5457 unsigned char *ciphertext = NULL;
5483 TEST_CALLOC(ciphertext, ciphertext_size);
5524 PSA_ASSERT(psa_aead_finish(&operation, ciphertext, ciphertext_size,
5532 mbedtls_free(ciphertext);
5557 unsigned char *ciphertext = NULL;
5586 TEST_CALLOC(ciphertext, ciphertext_size);
5645 TEST_EQUAL(psa_aead_finish(&operation, ciphertext, ciphertext_size,
5654 mbedtls_free(ciphertext);
5679 unsigned char *ciphertext = NULL;
5701 TEST_CALLOC(ciphertext, ciphertext_size);
5730 PSA_ASSERT(psa_aead_finish(&operation, ciphertext, ciphertext_size,
5738 mbedtls_free(ciphertext);
5762 unsigned char *ciphertext = NULL;
5784 TEST_CALLOC(ciphertext, ciphertext_size);
5811 ciphertext, ciphertext_size, &ciphertext_length));
5823 mbedtls_free(ciphertext);
8553 /* Determine the maximum ciphertext length */
8575 /* We don't know what ciphertext length to expect, but check that
8630 /* Determine the maximum ciphertext length */