Home | History | Annotate | Download | only in ec

Lines Matching refs:buf

66 	unsigned char *buf;
73 if ((buf = OPENSSL_malloc(buf_len)) == NULL)
76 if (!EC_POINT_point2oct(group, point, form, buf, buf_len, ctx))
78 OPENSSL_free(buf);
82 ret = BN_bin2bn(buf, buf_len, ret);
84 OPENSSL_free(buf);
95 unsigned char *buf;
99 buf = OPENSSL_malloc(buf_len);
100 if (buf == NULL)
103 if (!BN_bn2bin(bn, buf))
105 OPENSSL_free(buf);
113 OPENSSL_free(buf);
120 if (!EC_POINT_oct2point(group, ret, buf, buf_len, ctx))
124 OPENSSL_free(buf);
128 OPENSSL_free(buf);
142 unsigned char *buf, *pbuf;
149 if ((buf = OPENSSL_malloc(buf_len)) == NULL)
152 if (!EC_POINT_point2oct(group, point, form, buf, buf_len, ctx))
154 OPENSSL_free(buf);
161 OPENSSL_free(buf);
165 pbuf = buf;
174 OPENSSL_free(buf);
180 const char *buf,
187 if (!BN_hex2bn(&tmp_bn, buf))