Lines Matching defs:sigbuf
214 unsigned char *sigbuf;
234 sigbuf = malloc(EVP_PKEY_size(pkey));
235 if (sigbuf == NULL) {
239 if (!EVP_SignFinal(evp_md_ctx, sigbuf, &siglen, pkey)) {
241 free(sigbuf);
251 free(sigbuf);
254 sb = sigbuf;
256 free(sigbuf);
261 free(sigbuf);
314 unsigned char *sigbuf;
356 sigbuf = malloc(EVP_PKEY_size(pkey) + 50);
357 if (sigbuf == NULL) {
361 siglen = (unsigned) i2d_DSA_SIG(dsasig, &sigbuf);
363 status = EVP_VerifyFinal(evp_md_ctx, sigbuf, siglen, pkey);
365 free(sigbuf);