Codebase list libcryptx-perl / a77f381
pulling small dsa fix from libtomcrypt repo Karel Miko 9 years ago
1 changed file(s) with 2 addition(s) and 2 deletion(s). Raw diff Collapse all Expand all
104104 if ((sbuf = XMALLOC(seedbytes)) == NULL) { err = CRYPT_MEM; goto cleanup2; }
105105
106106 err = mp_init_multi(&t2L1, &t2N1, &t2q, &t2seedlen, &U, &W, &X, &c, &h, &e, &seedinc, NULL);
107 if (err != CRYPT_OK) { goto cleanup1; };
107 if (err != CRYPT_OK) { goto cleanup1; }
108108
109109 if ((err = mp_2expt(t2L1, L-1)) != CRYPT_OK) { goto cleanup; }
110110 /* t2L1 = 2^(L-1) */
185185 cleanup:
186186 mp_clear_multi(t2L1, t2N1, t2q, t2seedlen, U, W, X, c, h, e, seedinc, NULL);
187187 cleanup1:
188 XFREE(wbuf);
188 XFREE(sbuf);
189189 cleanup2:
190190 XFREE(wbuf);
191191 cleanup3: