Lines Matching +full:0 +full:x10100000
62 { 0, NULL }
72 key_list->_key_count = 0; in ldns_key_list_new()
90 ldns_key_set_origttl(newkey, 0); in ldns_key_new()
91 ldns_key_set_keytag(newkey, 0); in ldns_key_new()
92 ldns_key_set_inception(newkey, 0); in ldns_key_new()
93 ldns_key_set_expiration(newkey, 0); in ldns_key_new()
142 static int gost_id = 0; in ldns_key_EVP_load_gost_id()
165 return 0; in ldns_key_EVP_load_gost_id()
170 return 0; in ldns_key_EVP_load_gost_id()
178 return 0; in ldns_key_EVP_load_gost_id()
238 if(!pub_key) return 0; in ldns_EC_KEY_calc_public()
241 return 0; in ldns_EC_KEY_calc_public()
246 return 0; in ldns_EC_KEY_calc_public()
248 if(EC_KEY_set_public_key(ec, pub_key) == 0) { in ldns_EC_KEY_calc_public()
250 return 0; in ldns_EC_KEY_calc_public()
316 int buflen = 0; in ldns_ed25519_priv_raw()
317 uint8_t pre[] = {0x30, 0x2e, 0x02, 0x01, 0x00, 0x30, 0x05, 0x06, in ldns_ed25519_priv_raw()
318 0x03, 0x2b, 0x65, 0x70, 0x04, 0x22, 0x04, 0x20}; in ldns_ed25519_priv_raw()
337 /* for(i=0; i<plen; i++) in ldns_ed25519_priv_raw()
376 int buflen = 0; in ldns_ed448_priv_raw()
377 …uint8_t pre[] = {0x30, 0x47, 0x02, 0x01, 0x00, 0x30, 0x05, 0x06, 0x03, 0x2b, 0x65, 0x71, 0x04, 0x3… in ldns_ed448_priv_raw()
389 /* for(i=0; i<plen; i++) in ldns_ed448_priv_raw()
441 alg = 0; in ldns_key_new_frm_fp_l()
457 if (strncmp(d, "v1.", 3) != 0) { in ldns_key_new_frm_fp_l()
473 if (strncmp(d, "1 RSA", 2) == 0) { in ldns_key_new_frm_fp_l()
476 if (strncmp(d, "2 DH", 2) == 0) { in ldns_key_new_frm_fp_l()
479 if (strncmp(d, "3 DSA", 2) == 0) { in ldns_key_new_frm_fp_l()
489 if (strncmp(d, "4 ECC", 2) == 0) { in ldns_key_new_frm_fp_l()
492 if (strncmp(d, "5 RSASHA1", 2) == 0) { in ldns_key_new_frm_fp_l()
495 if (strncmp(d, "6 DSA", 2) == 0) { in ldns_key_new_frm_fp_l()
505 if (strncmp(d, "7 RSASHA1", 2) == 0) { in ldns_key_new_frm_fp_l()
509 if (strncmp(d, "8 RSASHA256", 2) == 0) { in ldns_key_new_frm_fp_l()
519 if (strncmp(d, "10 RSASHA512", 3) == 0) { in ldns_key_new_frm_fp_l()
529 if (strncmp(d, "12 ECC-GOST", 3) == 0) { in ldns_key_new_frm_fp_l()
539 if (strncmp(d, "13 ECDSAP256SHA256", 3) == 0) { in ldns_key_new_frm_fp_l()
549 if (strncmp(d, "14 ECDSAP384SHA384", 3) == 0) { in ldns_key_new_frm_fp_l()
559 if (strncmp(d, "15 ED25519", 3) == 0) { in ldns_key_new_frm_fp_l()
569 if (strncmp(d, "16 ED448", 3) == 0) { in ldns_key_new_frm_fp_l()
579 if (strncmp(d, "157 HMAC-MD5", 4) == 0) { in ldns_key_new_frm_fp_l()
582 if (strncmp(d, "158 HMAC-SHA1", 4) == 0) { in ldns_key_new_frm_fp_l()
585 if (strncmp(d, "159 HMAC-SHA256", 4) == 0) { in ldns_key_new_frm_fp_l()
589 if (strncmp(d, "161 ", 4) == 0) { in ldns_key_new_frm_fp_l()
592 if (strncmp(d, "162 HMAC-SHA224", 4) == 0) { in ldns_key_new_frm_fp_l()
596 if (strncmp(d, "163 ", 4) == 0) { in ldns_key_new_frm_fp_l()
599 if (strncmp(d, "164 HMAC-SHA384", 4) == 0) { in ldns_key_new_frm_fp_l()
602 if (strncmp(d, "165 HMAC-SHA512", 4) == 0) { in ldns_key_new_frm_fp_l()
864 #if OPENSSL_VERSION_NUMBER < 0x10100000 || (defined(HAVE_LIBRESSL) && LIBRESSL_VERSION_NUMBER < 0x2… in ldns_key_new_frm_fp_rsa_l()
985 #if OPENSSL_VERSION_NUMBER < 0x10100000 || (defined(HAVE_LIBRESSL) && LIBRESSL_VERSION_NUMBER < 0x2… in ldns_key_new_frm_fp_dsa_l()
1039 ? 0 in ldns_key_new_frm_fp_hmac_l()
1042 ? 0 in ldns_key_new_frm_fp_hmac_l()
1062 if(EVP_PKEY_CTX_ctrl_str(ctx, "paramset", "A") <= 0) { in ldns_gen_gost_key()
1068 if(EVP_PKEY_keygen_init(ctx) <= 0) { in ldns_gen_gost_key()
1072 if(EVP_PKEY_keygen(ctx, &p) <= 0) { in ldns_gen_gost_key()
1100 uint16_t offset = 0; in ldns_key_new_frm_algorithm()
1121 if(EVP_PKEY_keygen_init(ctx) <= 0) { in ldns_key_new_frm_algorithm()
1126 if (EVP_PKEY_CTX_set_rsa_keygen_bits(ctx, size) <= 0) { in ldns_key_new_frm_algorithm()
1132 if (EVP_PKEY_keygen(ctx, &k->_key.key) <= 0) { in ldns_key_new_frm_algorithm()
1158 # if OPENSSL_VERSION_NUMBER < 0x00908000L in ldns_key_new_frm_algorithm()
1159 d = DSA_generate_parameters((int)size, NULL, 0, NULL, NULL, NULL, NULL); in ldns_key_new_frm_algorithm()
1170 if (! DSA_generate_parameters_ex(d, (int)size, NULL, 0, NULL, NULL, NULL)) { in ldns_key_new_frm_algorithm()
1223 ldns_key_set_flags(k, 0); in ldns_key_new_frm_algorithm()
1281 if(EVP_PKEY_keygen_init(ctx) <= 0) { in ldns_key_new_frm_algorithm()
1286 if (EVP_PKEY_keygen(ctx, &k->_key.key) <= 0) { in ldns_key_new_frm_algorithm()
1303 if(EVP_PKEY_keygen_init(ctx) <= 0) { in ldns_key_new_frm_algorithm()
1308 if (EVP_PKEY_keygen(ctx, &k->_key.key) <= 0) { in ldns_key_new_frm_algorithm()
1449 return key_list ? key_list->_key_count : 0; in ldns_key_list_key_count()
1536 return 0; in ldns_key_hmac_size()
1588 for (i = 0; i < ldns_key_list_key_count(keys); i++) { in ldns_key_list_set_use()
1634 if (key_count == 0) { in ldns_key_list_pop_key()
1663 #if OPENSSL_VERSION_NUMBER < 0x10100000 || (defined(HAVE_LIBRESSL) && LIBRESSL_VERSION_NUMBER < 0x2… in ldns_key_rsa2bin()
1674 data[0] = (unsigned char) BN_num_bytes(e); in ldns_key_rsa2bin()
1679 data[0] = 0; in ldns_key_rsa2bin()
1729 memset(data, 0, 21 + *size * 3); in ldns_key_dsa2bin()
1730 data[0] = (unsigned char)T; in ldns_key_dsa2bin()
1752 for(i=0; i<64; i++) in ldns_key_gost2bin()
1772 for(i=0; i<32; i++) in ldns_key_ed255192bin()
1792 for(i=0; i<57; i++) in ldns_key_ed4482bin()
1813 uint16_t size = 0; in ldns_key2rr()
1823 int internal_data = 0; in ldns_key2rr()
1968 /* move back one byte to shave off the 0x02 in ldns_key2rr()
1970 * Actually its 0x04 (from implementation). in ldns_key2rr()
1972 assert(bin[0] == POINT_CONVERSION_UNCOMPRESSED); in ldns_key2rr()
2076 for (i = 0; i < ldns_key_list_key_count(key_list); i++) { in ldns_key_list_free()
2090 size_t i = 0; in ldns_read_anchor_file()
2110 line[i] = '\0'; in ldns_read_anchor_file()
2114 if (i <= 0) { in ldns_read_anchor_file()
2121 status = ldns_rr_new_frm_str(&r, line, 0, NULL, NULL); in ldns_read_anchor_file()
2161 return 0; in ldns_key_algo_supported()
2188 {0, NULL}}; in ldns_get_signing_algorithm_by_name()
2194 if(strcasecmp(lt->name, name) == 0) in ldns_get_signing_algorithm_by_name()
2200 if(strcasecmp(lt->name, name) == 0) in ldns_get_signing_algorithm_by_name()
2208 return 0; in ldns_get_signing_algorithm_by_name()