Lines Matching refs:signature
133 unsigned char *signature = NULL;
158 TEST_error("Failed to get signature length, len=%d", len);
162 if (!TEST_ptr(signature = OPENSSL_malloc(sigLength)))
165 if (EVP_PKEY_sign(ctx, signature, &sigLength, dataToSign, len) != 1) {
170 /* Check that the signature is okay via the EVP interface */
175 if (EVP_PKEY_verify(ctx, signature, sigLength, dataToSign, len) != 1) {
181 if (EVP_PKEY_verify(ctx, signature, sigLength, paddedData, digestlen) != 1) {
187 if (DSA_verify(0, dataToSign, len, signature, sigLength, dsakey) != 1) {
192 if (DSA_verify(0, paddedData, digestlen, signature, sigLength, dsakey) != 1) {
202 OPENSSL_free(signature);