Home
last modified time | relevance | path

Searched refs:pklen (Results 1 – 19 of 19) sorted by relevance

/freebsd/crypto/openssh/
H A Ded25519-openssl.c50 size_t pklen, sklen; in crypto_sign_ed25519_keypair() local
67 pklen = crypto_sign_ed25519_PUBLICKEYBYTES; in crypto_sign_ed25519_keypair()
68 if (!EVP_PKEY_get_raw_public_key(pkey, pk, &pklen)) { in crypto_sign_ed25519_keypair()
72 if (pklen != crypto_sign_ed25519_PUBLICKEYBYTES) { in crypto_sign_ed25519_keypair()
73 debug3_f("public key length mismatch: %zu", pklen); in crypto_sign_ed25519_keypair()
/freebsd/sbin/ipf/ipfsync/
H A Dipfsyncd.c448 do_packet(pklen, buff) in do_packet() argument
449 int pklen; in do_packet()
458 while (pklen > 0) {
459 if (pklen < sizeof(*sh)) {
460 syslog(LOG_ERR, "packet length too short:%d", pklen);
461 debug(2, "packet length too short:%d\n", pklen);
475 if (pklen < len + sizeof(*sh)) {
476 syslog(LOG_ERR, "packet length too short:%d", pklen);
477 debug(2, "packet length too short:%d\n", pklen);
500 pklen -= n3;
/freebsd/crypto/openssl/crypto/x509/
H A Dv3_skid.c58 int pklen; in ossl_x509_pubkey_hash() local
78 X509_PUBKEY_get0_param(NULL, &pk, &pklen, NULL, pubkey); in ossl_x509_pubkey_hash()
79 if (EVP_Digest(pk, pklen, pkey_dig, &diglen, md, NULL) in ossl_x509_pubkey_hash()
/freebsd/crypto/openssl/crypto/dsa/
H A Ddsa_backend.c125 int pklen, pmlen; in ossl_dsa_key_from_pkcs8() local
137 if (!PKCS8_pkey_get0(NULL, &p, &pklen, &palg, p8inf)) in ossl_dsa_key_from_pkcs8()
141 if ((privkey = d2i_ASN1_INTEGER(NULL, &p, pklen)) == NULL) in ossl_dsa_key_from_pkcs8()
H A Ddsa_ameth.c32 int pklen, pmlen; in dsa_pub_decode() local
41 if (!X509_PUBKEY_get0_param(NULL, &p, &pklen, &palg, pubkey)) in dsa_pub_decode()
65 if ((public_key = d2i_ASN1_INTEGER(NULL, &p, pklen)) == NULL) { in dsa_pub_decode()
/freebsd/crypto/openssl/crypto/dh/
H A Ddh_backend.c184 int pklen, pmlen; in ossl_dh_key_from_pkcs8() local
193 if (!PKCS8_pkey_get0(NULL, &p, &pklen, &palg, p8inf)) in ossl_dh_key_from_pkcs8()
200 if ((privkey = d2i_ASN1_INTEGER(NULL, &p, pklen)) == NULL) in ossl_dh_key_from_pkcs8()
H A Ddh_ameth.c63 int pklen, pmlen; in dh_pub_decode() local
72 if (!X509_PUBKEY_get0_param(NULL, &p, &pklen, &palg, pubkey)) in dh_pub_decode()
90 if ((public_key = d2i_ASN1_INTEGER(NULL, &p, pklen)) == NULL) { in dh_pub_decode()
/freebsd/crypto/openssl/crypto/pem/
H A Dpvkfmt.c1033 int outlen = 24, pklen; in i2b_PVK() local
1043 pklen = do_i2b(NULL, pk, 0); in i2b_PVK()
1044 if (pklen < 0) in i2b_PVK()
1046 outlen += pklen; in i2b_PVK()
1071 write_ledword(&p, pklen); in i2b_PVK()
1105 if (!EVP_EncryptUpdate(cctx, p, &enctmplen, p, pklen - 8)) in i2b_PVK()
/freebsd/contrib/unbound/validator/
H A Dval_kentry.c390 unsigned int pklen = 0; in dnskey_get_keysize() local
396 pklen = (unsigned)data->rr_len[idx]-2-4; in dnskey_get_keysize()
397 return sldns_rr_dnskey_key_size_raw(pk, pklen, algo); in dnskey_get_keysize()
H A Dval_sigcrypt.c196 unsigned char** pk, unsigned int* pklen) in dnskey_get_pubkey() argument
203 *pklen = 0; in dnskey_get_pubkey()
207 *pklen = (unsigned)len-2-4; in dnskey_get_pubkey()
/freebsd/crypto/openssl/crypto/ec/
H A Dec_ameth.c103 int pklen; in eckey_pub_decode() local
110 || !X509_PUBKEY_get0_param(NULL, &p, &pklen, &palg, pubkey)) in eckey_pub_decode()
118 if (!o2i_ECPublicKey(&eckey, &p, pklen)) { in eckey_pub_decode()
H A Dec_backend.c813 int pklen; in ossl_ec_key_from_pkcs8() local
817 if (!PKCS8_pkey_get0(NULL, &p, &pklen, &palg, p8inf)) in ossl_ec_key_from_pkcs8()
824 if (!d2i_ECPrivateKey(&eckey, &p, pklen)) { in ossl_ec_key_from_pkcs8()
H A Decx_meth.c57 int pklen; in ecx_pub_decode() local
62 if (!X509_PUBKEY_get0_param(NULL, &p, &pklen, &palg, pubkey)) in ecx_pub_decode()
64 ecx = ossl_ecx_key_op(palg, p, pklen, pkey->ameth->pkey_id, in ecx_pub_decode()
/freebsd/crypto/openssl/crypto/rsa/
H A Drsa_backend.c683 int pklen; in ossl_rsa_key_from_pkcs8() local
686 if (!PKCS8_pkey_get0(NULL, &p, &pklen, &alg, p8inf)) in ossl_rsa_key_from_pkcs8()
688 rsa = d2i_RSAPrivateKey(NULL, &p, pklen); in ossl_rsa_key_from_pkcs8()
H A Drsa_ameth.c79 int pklen; in rsa_pub_decode() local
83 if (!X509_PUBKEY_get0_param(NULL, &p, &pklen, &alg, pubkey)) in rsa_pub_decode()
85 if ((rsa = d2i_RSAPublicKey(NULL, &p, pklen)) == NULL) in rsa_pub_decode()
/freebsd/crypto/openssl/crypto/crmf/
H A Dcrmf_lib.c548 int pklen, ret = 0; in OSSL_CRMF_MSG_centralkeygen_requested() local
561 || (X509_PUBKEY_get0_param(NULL, &pk, &pklen, NULL, pubkey) in OSSL_CRMF_MSG_centralkeygen_requested()
562 && pklen == 0)) in OSSL_CRMF_MSG_centralkeygen_requested()
/freebsd/contrib/unbound/sldns/
H A Dstr2wire.c2828 size_t hitlen, pklen = 0; in sldns_str2wire_hip_buf() local
2863 pklen = *len - 4 - hitlen; in sldns_str2wire_hip_buf()
2864 if((e = sldns_str2wire_b64_buf(s, rd+4+hitlen, &pklen)) != 0) in sldns_str2wire_hip_buf()
2866 if(pklen > 65535) in sldns_str2wire_hip_buf()
2868 sldns_write_uint16(rd+2, (uint16_t)pklen); in sldns_str2wire_hip_buf()
2870 *len = 4 + hitlen + pklen; in sldns_str2wire_hip_buf()
H A Dwire2str.c1968 uint16_t pklen; in sldns_wire2str_int16_data_scan()
1975 pklen = sldns_read_uint16((*d)+2); in sldns_wire2str_int16_data_scan()
1976 if(*dl < (size_t)4 + (size_t)hitlen + (size_t)pklen) in sldns_wire2str_int16_data_scan()
1985 w += sldns_wire2str_b64_scan_num(d, dl, s, sl, pklen);
1940 uint16_t pklen; sldns_wire2str_hip_scan() local
/freebsd/crypto/openssl/test/
H A Dectest.c3482 int pklen, ret = 0; in ec_d2i_publickey_test() local
3488 if (!TEST_int_gt(pklen = i2d_PublicKey(gen_key, &pubkey_enc), 0)) in ec_d2i_publickey_test()
3502 &pk_enc, pklen))) in ec_d2i_publickey_test()