Lines Matching refs:sig
74 const unsigned char *hash, unsigned char *sig )
80 md_alg, hashlen, hash, sig ) );
489 data_t * sig, int ret )
508 hash->x, hash->len, sig->x, sig->len ) == ret );
526 unsigned char sig[MBEDTLS_ECDSA_MAX_LEN];
534 memset( sig, 0, sizeof( sig ) );
554 slen = sizeof( sig );
558 sig, sizeof( sig ), &slen,
565 TEST_ASSERT( memcmp( sig, sig_check->x, slen ) == 0 );
573 hash, hlen, sig, slen, &rs_ctx );
583 hash, hlen, sig, slen, &rs_ctx );
588 sig[0]++;
591 hash, hlen, sig, slen, &rs_ctx );
594 sig[0]--;
601 hash, hlen, sig, slen, &rs_ctx );
605 slen = sizeof( sig );
607 sig, sizeof sig, &slen,
627 unsigned char sig[MBEDTLS_PK_SIGNATURE_MAX_SIZE];
644 memset( sig, 0, sizeof sig );
651 sig, sizeof sig, &sig_len,
660 hash, hash_len, sig, sig_len ) == verify_ret );
666 hash, hash_len, sig, sig_len ) != 0 );
669 sig[0]++;
671 hash, hash_len, sig, sig_len ) != 0 );
672 sig[0]--;
676 sig, sizeof sig, &sig_len,
685 hash, hash_len, sig, sig_len, rs_ctx ) == verify_ret );
691 hash, sizeof hash, sig, sig_len, rs_ctx ) != 0 );
694 sig[0]++;
696 hash, sizeof hash, sig, sig_len, rs_ctx ) != 0 );
697 sig[0]--;
833 unsigned char hash[50], sig[100];
839 memset( sig, 0, sizeof sig );
848 MBEDTLS_MD_NONE, hash, hash_len, sig, sig_len ) ==
853 sig, sig_len ) == MBEDTLS_ERR_PK_BAD_INPUT_DATA );
856 sig, sizeof sig, &sig_len,
876 unsigned char hash[50], sig[64];
885 memset( sig, 0, sizeof sig );
912 sig, sizeof sig, &sig_len,
917 sig, sizeof sig, &sig_len,
922 hash, sizeof hash, sig, sig_len ) == 0 );
939 hash, sizeof hash, sig, sig_len ) == ret );
955 unsigned char sig[MBEDTLS_ECDSA_MAX_LEN];
1003 memset( sig, 0, sizeof sig );
1006 hash, sizeof hash, sig, sizeof sig, &sig_len,
1027 hash, sizeof hash, sig, sig_len ) == 0 );