Lines Matching refs:signature
2522 unsigned char signature[PSA_SIGNATURE_MAX_SIZE] = { 0 };
2543 signature, sizeof(signature),
2551 memset(signature, 0, sizeof(signature));
2554 signature, sizeof(signature));
2565 signature, sizeof(signature),
2573 memset(signature, 0, sizeof(signature));
2576 signature, sizeof(signature));
6796 unsigned char *signature = NULL;
6818 TEST_CALLOC(signature, signature_size);
6820 /* Perform the signature. */
6823 signature, signature_size,
6825 /* Verify that the signature is what is expected. */
6827 signature, signature_length);
6837 mbedtls_free(signature);
6869 unsigned char *signature = NULL;
6901 TEST_CALLOC(signature, signature_size);
6911 /* Start performing the signature. */
6918 /* Continue performing the signature until complete. */
6920 status = psa_sign_hash_complete(&operation, signature, signature_size,
6948 /* Verify that the signature is what is expected. */
6950 signature, signature_length);
6966 mbedtls_free(signature);
6982 unsigned char *signature = NULL;
6986 TEST_CALLOC(signature, signature_size);
6999 signature, signature_size,
7011 mbedtls_free(signature);
7053 unsigned char *signature = NULL;
7066 TEST_CALLOC(signature, signature_size);
7087 /* Start performing the signature. */
7096 actual_status = psa_sign_hash_complete(&operation, signature,
7112 /* Continue performing the signature until complete. */
7114 actual_status = psa_sign_hash_complete(&operation, signature,
7136 actual_status = psa_sign_hash_complete(&operation, signature,
7159 mbedtls_free(signature);
7172 unsigned char *signature = NULL;
7194 TEST_CALLOC(signature, signature_size);
7196 /* Perform the signature. */
7199 signature, signature_size,
7201 /* Check that the signature length looks sensible. */
7205 /* Use the library to verify that the signature is correct. */
7208 signature, signature_length));
7211 /* Flip a bit in the input and verify that the signature is now
7217 signature, signature_length),
7229 mbedtls_free(signature);
7241 * afterwards verify that signature. This is currently the only way to test
7245 * signature.
7262 unsigned char *signature = NULL;
7297 TEST_CALLOC(signature, signature_size);
7307 /* Start performing the signature. */
7314 /* Continue performing the signature until complete. */
7317 status = psa_sign_hash_complete(&sign_operation, signature,
7345 /* Check that the signature length looks sensible. */
7354 signature, signature_length));
7356 /* Continue performing the signature until complete. */
7373 /* Flip a bit in the input and verify that the signature is now
7381 signature, signature_length));
7383 /* Continue performing the signature until complete. */
7401 mbedtls_free(signature);
7459 * signature.
7510 /* Continue performing the signature until complete. */
7545 /* Flip a bit in the hash and verify that the signature is now detected
7555 /* Continue performing the signature until complete. */
7696 /* Continue performing the signature until complete. */
7752 unsigned char *signature = NULL;
7779 TEST_CALLOC(signature, signature_size);
7784 TEST_EQUAL(psa_sign_hash_complete(&sign_operation, signature,
7809 TEST_EQUAL(psa_sign_hash_complete(&sign_operation, signature,
7821 PSA_ASSERT(psa_sign_hash_complete(&sign_operation, signature,
7831 signature, signature_length));
7839 signature, signature_length));
7850 signature, signature_length));
7869 signature, signature_length));
7873 signature, signature_length),
7886 mbedtls_free(signature);
7907 unsigned char *signature = NULL;
7935 TEST_CALLOC(signature, signature_size);
7945 TEST_EQUAL(psa_sign_hash_complete(&sign_operation, signature,
7950 TEST_EQUAL(psa_sign_hash_complete(&sign_operation, signature,
7956 TEST_EQUAL(psa_sign_hash_complete(&sign_operation, signature,
7978 PSA_ASSERT(psa_sign_hash_complete(&sign_operation, signature,
7990 signature, signature_length));
8008 mbedtls_free(signature);
8037 unsigned char *signature = NULL;
8065 TEST_CALLOC(signature, signature_size);
8078 signature, signature_size));
8098 TEST_EQUAL(psa_sign_hash_complete(&sign_operation, signature,
8105 PSA_ASSERT(psa_sign_hash_complete(&sign_operation, signature,
8115 signature, signature_length));
8134 /* Continue performing the signature until complete. */
8136 status = psa_sign_hash_complete(&sign_operation, signature,
8151 /* Continue performing the signature until complete. */
8153 status = psa_sign_hash_complete(&sign_operation, signature,
8166 signature, signature_length));
8182 signature, signature_length));
8204 mbedtls_free(signature);
8220 unsigned char *signature = NULL;
8239 TEST_CALLOC(signature, signature_size);
8243 signature, signature_size,
8247 signature, signature_length);
8253 mbedtls_free(signature);
8273 unsigned char *signature = NULL;
8277 TEST_CALLOC(signature, signature_size);
8290 signature, signature_size,
8302 mbedtls_free(signature);
8317 unsigned char *signature = NULL;
8337 TEST_CALLOC(signature, signature_size);
8341 signature, signature_size,
8348 signature, signature_length));
8351 /* Flip a bit in the input and verify that the signature is now
8357 signature, signature_length),
8365 mbedtls_free(signature);