if (r > 0)
{
- unsigned int mdlen;
EVP_DigestInit_ex(&ctx, dgst, NULL);
if (!EVP_DigestUpdate(&ctx, Msg, Msglen))
goto error;
- if (!EVP_DigestFinal_ex(&ctx, mdtmp, &mdlen))
+ if (!EVP_DigestFinal_ex(&ctx, mdtmp, NULL))
goto error;
if (pad == RSA_X931_PADDING)
{
+ int mdlen = EVP_MD_size(dgst);
if (r != mdlen + 1)
r = 0;
else if (buf[mdlen] !=
static int print_monte(BIO *err, const EVP_MD *md, BIO *out,
unsigned char *Seed, int SeedLen)
{
- int i, j, k;
+ unsigned int i, j, k;
int ret = 0;
EVP_MD_CTX ctx;
unsigned char *m1, *m2, *m3, *p;