Lines Matching defs:buf

170     unsigned char buf[100];
191 buf[0] = 0;
197 || !TEST_true(EC_POINT_oct2point(group, Q, buf, 1, ctx))
245 EC_POINT_point2oct(group, Q, POINT_CONVERSION_COMPRESSED, buf,
246 sizeof(buf), ctx);
248 || !TEST_true(EC_POINT_oct2point(group, P, buf, len, ctx))
252 buf, len);
255 buf, sizeof(buf), ctx);
257 || !TEST_true(EC_POINT_oct2point(group, P, buf, len, ctx))
261 buf, len);
264 buf, sizeof(buf), ctx);
266 || !TEST_true(EC_POINT_oct2point(group, P, buf, len, ctx))
270 buf, len);
941 unsigned char buf[100];
971 buf[0] = 0;
972 if (!TEST_true(EC_POINT_oct2point(group, Q, buf, 1, ctx))
1032 buf, sizeof(buf), ctx);
1034 || !TEST_true(EC_POINT_oct2point(group, P, buf, len, ctx))
1038 buf, len);
1042 buf, sizeof(buf), ctx);
1044 || !TEST_true(EC_POINT_oct2point(group, P, buf, len, ctx))
1048 buf, len);
1053 EC_POINT_point2oct(group, Q, POINT_CONVERSION_HYBRID, buf, sizeof(buf),
1056 || !TEST_true(EC_POINT_oct2point(group, P, buf, len, ctx))
1060 buf, len);
1092 unsigned char *buf = NULL;
1107 || !TEST_ptr(buf = OPENSSL_malloc(len))
1111 buf,
1118 /* buf contains a valid hybrid point, check that we can decode it. */
1119 if (!TEST_true(EC_POINT_oct2point(group, point, buf, len, NULL)))
1123 buf[0] ^= 1;
1124 if (!TEST_false(EC_POINT_oct2point(group, point, buf, len, NULL)))
1132 OPENSSL_free(buf);
2018 unsigned char *buf = NULL;
2032 || !TEST_true((len = i2d_ECPKParameters(group, &buf)) >= 0)
2033 || !TEST_mem_eq(buf, len, p521_named, sizeof(p521_named)))
2036 OPENSSL_free(buf);
2037 buf = NULL;
2044 if (!TEST_true((len = i2d_ECPKParameters(group, &buf)) >= 0)
2045 || !TEST_mem_eq(buf, len, p521_explicit, sizeof(p521_explicit)))
2053 OPENSSL_free(buf);
2402 unsigned char buf[1024];
2488 OSSL_PKEY_PARAM_EC_GENERATOR, buf, sizeof(buf), &buf_len))
2489 || !TEST_mem_eq(buf, (int)buf_len, gen, gen_size))
2513 OSSL_PKEY_PARAM_EC_SEED, buf, sizeof(buf), &buf_len))
2514 || !TEST_mem_eq(buf, buf_len, EC_GROUP_get0_seed(group),
2971 unsigned char buf[1000];
2972 unsigned char *pubkey_enc = buf;