Lines Matching refs:buf_len
64 size_t buf_len = 0;
67 buf_len = EC_POINT_point2oct(group, point, form, NULL, 0, ctx);
68 if (buf_len == 0)
71 if ((buf = OPENSSL_malloc(buf_len)) == NULL)
74 if (!EC_POINT_point2oct(group, point, form, buf, buf_len, ctx)) {
79 ret = BN_bin2bn(buf, buf_len, ret);
89 size_t buf_len = 0;
93 if ((buf_len = BN_num_bytes(bn)) == 0)
95 buf = OPENSSL_malloc(buf_len);
112 if (!EC_POINT_oct2point(group, ret, buf, buf_len, ctx)) {
131 size_t buf_len = 0, i;
134 buf_len = EC_POINT_point2oct(group, point, form, NULL, 0, ctx);
135 if (buf_len == 0)
138 if ((buf = OPENSSL_malloc(buf_len)) == NULL)
141 if (!EC_POINT_point2oct(group, point, form, buf, buf_len, ctx)) {
146 ret = (char *)OPENSSL_malloc(buf_len * 2 + 2);
153 for (i = buf_len; i > 0; i--) {