Lines Matching refs:buf
23 unsigned char *buf;
46 buf = XCALLOC(1, len);
47 if (buf == NULL) {
53 if (prng_descriptor[wprng].read(buf, len, prng) != (unsigned long)len) {
54 XFREE(buf);
59 buf[0] |= 0x80 | 0x40;
60 buf[len-1] |= 0x01 | ((type & USE_BBS) ? 0x02 : 0x00);
63 if ((err = mp_read_unsigned_bin(N, buf, len)) != CRYPT_OK) {
64 XFREE(buf);
70 XFREE(buf);
76 zeromem(buf, len);
79 XFREE(buf);