Go to the documentation of this file.
28 #include "../crypto/test/file_test.h"
29 #include "../crypto/test/test_util.h"
35 const char *group_str;
38 !t->GetAttribute(&n_str,
"N")) {
44 "[%s]\r\n\r\n[B.4.2 Key Pair Generation by Testing Candidates]\r\n\r\n",
47 unsigned long n = strtoul(n_str.c_str(),
nullptr, 10);
48 for (
unsigned long i = 0;
i <
n;
i++) {
55 qx.get(), qy.get(),
nullptr)) {
63 std::vector<uint8_t> qx_bytes(degree_len), qy_bytes(degree_len);
64 std::vector<uint8_t> d_bytes(order_len);
81 fprintf(
stderr,
"usage: %s <test file>\n",
#define EC_GROUP_get0_order
#define EC_KEY_get0_private_key
#define EC_KEY_new_by_curve_name
int FileTestMain(FileTestFunc run_test, void *arg, const char *path)
#define EC_KEY_generate_key_fips
_Use_decl_annotations_ int __cdecl printf(const char *_Format,...)
#define EC_KEY_get0_group
#define EC_POINT_get_affine_coordinates_GFp
def c_str(s, encoding='ascii')
static bool TestECDSA2KeyPair(FileTest *t, void *arg)
int GetECGroupNIDFromInstruction(FileTest *t, const char **out_str)
std::string EncodeHex(bssl::Span< const uint8_t > in)
int cavp_ecdsa2_keypair_test_main(int argc, char **argv)
#define EC_KEY_get0_public_key
void EchoComment(const std::string &comment)
#define EC_GROUP_get_degree
grpc
Author(s):
autogenerated on Fri May 16 2025 02:57:52