Lines Matching refs:field_size
275 const size_t field_size = (EC_GROUP_get_degree(group) + 7) >> 3;
276 unique_ptr<uint8_t[]> d_buf(new uint8_t[field_size]);
277 if (!BN_bn2le_padded(d_buf.get(), field_size, d)) {
281 if (request.ec().d().size() != field_size ||
282 memcmp(request.ec().d().data(), d_buf.get(), field_size) != 0) {
288 unique_ptr<uint8_t[]> x_buf(new uint8_t[field_size]);
289 if (!BN_bn2le_padded(x_buf.get(), field_size, x.get())) {
293 if (request.ec().x().size() != field_size ||
294 memcmp(request.ec().x().data(), x_buf.get(), field_size) != 0) {
299 unique_ptr<uint8_t[]> y_buf(new uint8_t[field_size]);
300 if (!BN_bn2le_padded(y_buf.get(), field_size, y.get())) {
304 if (request.ec().y().size() != field_size ||
305 memcmp(request.ec().y().data(), y_buf.get(), field_size) != 0) {