/freebsd/crypto/openssh/ |
H A D | ssh-xmss.c | 111 size_t pklen; in ssh_xmss_copy_public() local 118 if ((pklen = sshkey_xmss_pklen(from)) == 0 || in ssh_xmss_copy_public() 119 sshkey_xmss_pklen(to) != pklen) in ssh_xmss_copy_public() 121 if ((to->xmss_pk = malloc(pklen)) == NULL) in ssh_xmss_copy_public() 123 memcpy(to->xmss_pk, from->xmss_pk, pklen); in ssh_xmss_copy_public() 169 size_t pklen = 0, sklen = 0; in ssh_xmss_deserialize_private() local 174 (r = sshbuf_get_string(b, &xmss_pk, &pklen)) != 0 || in ssh_xmss_deserialize_private() 180 if (pklen != sshkey_xmss_pklen(key) || in ssh_xmss_deserialize_private() 195 freezero(xmss_pk, pklen); in ssh_xmss_deserialize_private()
|
/freebsd/sbin/ipf/ipfsync/ |
H A D | ipfsyncd.c | 448 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 D | v3_skid.c | 59 int pklen; in ossl_x509_pubkey_hash() local 79 X509_PUBKEY_get0_param(NULL, &pk, &pklen, NULL, pubkey); in ossl_x509_pubkey_hash() 80 if (EVP_Digest(pk, pklen, pkey_dig, &diglen, md, NULL) in ossl_x509_pubkey_hash()
|
/freebsd/crypto/openssl/crypto/dsa/ |
H A D | dsa_backend.c | 127 int pklen, pmlen; in ossl_dsa_key_from_pkcs8() local 139 if (!PKCS8_pkey_get0(NULL, &p, &pklen, &palg, p8inf)) in ossl_dsa_key_from_pkcs8() 143 if ((privkey = d2i_ASN1_INTEGER(NULL, &p, pklen)) == NULL) in ossl_dsa_key_from_pkcs8()
|
H A D | dsa_ameth.c | 32 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 D | dh_backend.c | 191 int pklen, pmlen; in ossl_dh_key_from_pkcs8() local 200 if (!PKCS8_pkey_get0(NULL, &p, &pklen, &palg, p8inf)) in ossl_dh_key_from_pkcs8() 207 if ((privkey = d2i_ASN1_INTEGER(NULL, &p, pklen)) == NULL) in ossl_dh_key_from_pkcs8()
|
H A D | dh_ameth.c | 63 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 D | pvkfmt.c | 1003 int outlen = 24, pklen; in i2b_PVK() local 1013 pklen = do_i2b(NULL, pk, 0); in i2b_PVK() 1014 if (pklen < 0) in i2b_PVK() 1016 outlen += pklen; in i2b_PVK() 1043 write_ledword(&p, pklen); in i2b_PVK() 1077 if (!EVP_EncryptUpdate(cctx, p, &enctmplen, p, pklen - 8)) in i2b_PVK()
|
/freebsd/contrib/unbound/validator/ |
H A D | val_kentry.c | 390 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 D | val_sigcrypt.c | 195 unsigned char** pk, unsigned int* pklen) in dnskey_get_pubkey() argument 202 *pklen = 0; in dnskey_get_pubkey() 206 *pklen = (unsigned)len-2-4; in dnskey_get_pubkey()
|
/freebsd/crypto/openssl/crypto/rsa/ |
H A D | rsa_backend.c | 553 int pklen; in ossl_rsa_key_from_pkcs8() local 556 if (!PKCS8_pkey_get0(NULL, &p, &pklen, &alg, p8inf)) in ossl_rsa_key_from_pkcs8() 558 rsa = d2i_RSAPrivateKey(NULL, &p, pklen); in ossl_rsa_key_from_pkcs8()
|
H A D | rsa_ameth.c | 79 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/ec/ |
H A D | ec_ameth.c | 103 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 D | ec_backend.c | 815 int pklen; in ossl_ec_key_from_pkcs8() local 819 if (!PKCS8_pkey_get0(NULL, &p, &pklen, &palg, p8inf)) in ossl_ec_key_from_pkcs8() 826 if (!d2i_ECPrivateKey(&eckey, &p, pklen)) { in ossl_ec_key_from_pkcs8()
|
H A D | ecx_meth.c | 59 int pklen; in ecx_pub_decode() local 64 if (!X509_PUBKEY_get0_param(NULL, &p, &pklen, &palg, pubkey)) in ecx_pub_decode() 66 ecx = ossl_ecx_key_op(palg, p, pklen, pkey->ameth->pkey_id, in ecx_pub_decode()
|
/freebsd/contrib/unbound/sldns/ |
H A D | str2wire.c | 2790 size_t hitlen, pklen = 0; in sldns_str2wire_hip_buf() local 2825 pklen = *len - 4 - hitlen; in sldns_str2wire_hip_buf() 2826 if((e = sldns_str2wire_b64_buf(s, rd+4+hitlen, &pklen)) != 0) in sldns_str2wire_hip_buf() 2828 if(pklen > 65535) in sldns_str2wire_hip_buf() 2830 sldns_write_uint16(rd+2, (uint16_t)pklen); in sldns_str2wire_hip_buf() 2832 *len = 4 + hitlen + pklen; in sldns_str2wire_hip_buf()
|
H A D | wire2str.c | 1940 uint16_t pklen; in sldns_wire2str_hip_scan() local 1947 pklen = sldns_read_uint16((*d)+2); in sldns_wire2str_hip_scan() 1948 if(*dl < (size_t)4 + (size_t)hitlen + (size_t)pklen) in sldns_wire2str_hip_scan() 1957 w += sldns_wire2str_b64_scan_num(d, dl, s, sl, pklen); in sldns_wire2str_hip_scan()
|
/freebsd/crypto/openssl/test/ |
H A D | ectest.c | 2976 int pklen, ret = 0; in ec_d2i_publickey_test() local 2982 if (!TEST_int_gt(pklen = i2d_PublicKey(gen_key, &pubkey_enc), 0)) in ec_d2i_publickey_test() 2996 &pk_enc, pklen))) in ec_d2i_publickey_test()
|