/freebsd/crypto/openssl/include/openssl/ |
H A D | asn1t.h.in | 623 long plen; /* length */ member
|
H A D | bio.h | 334 typedef int asn1_ps_func (BIO *b, unsigned char **pbuf, int *plen,
|
/freebsd/crypto/openssl/include/crypto/ |
H A D | rsa.h | 95 int plen, const EVP_MD *md,
|
H A D | ecx.h | 135 const unsigned char *p, int plen,
|
/freebsd/crypto/openssl/engines/ |
H A D | e_ossltest.c | 797 size_t plen = key->payload_length; in ossltest_aes128_cbc_hmac_sha1_cipher() local 805 if (plen == NO_PAYLOAD_LENGTH) in ossltest_aes128_cbc_hmac_sha1_cipher() 806 plen = len; in ossltest_aes128_cbc_hmac_sha1_cipher() 808 ((plen + SHA_DIGEST_LENGTH + in ossltest_aes128_cbc_hmac_sha1_cipher() 812 memmove(out, in, plen); in ossltest_aes128_cbc_hmac_sha1_cipher() 816 fill_known_data(out + plen, SHA_DIGEST_LENGTH); in ossltest_aes128_cbc_hmac_sha1_cipher() 819 plen += SHA_DIGEST_LENGTH; in ossltest_aes128_cbc_hmac_sha1_cipher() 820 for (l = len - plen - 1; plen < len; plen++) in ossltest_aes128_cbc_hmac_sha1_cipher() 821 out[plen] = l; in ossltest_aes128_cbc_hmac_sha1_cipher() 846 for (plen = len - pad - 1; plen < len; plen++) in ossltest_aes128_cbc_hmac_sha1_cipher() [all …]
|
/freebsd/crypto/openssl/doc/man3/ |
H A D | PEM_bytes_read_bio.pod | 11 int PEM_bytes_read_bio(unsigned char **pdata, long *plen, char **pnm, 14 int PEM_bytes_read_bio_secmem(unsigned char **pdata, long *plen, char **pnm, 39 I<*pdata> with length I<*plen>. The caller must free the storage pointed
|
H A D | PEM_read_bio_PrivateKey.pod | 441 rc = EVP_BytesToKey(cipher, md, iv /*salt*/, pword, plen, 1, key, NULL /*iv*/);
|
/freebsd/crypto/openssl/crypto/x509/ |
H A D | x509_vfy.c | 453 int i, must_be_ca, plen = 0; in check_extensions() local 588 && plen > x->ex_pathlen + proxy_path_length, in check_extensions() 592 plen++; in check_extensions()
|
H A D | v3_utl.c | 580 static void skip_prefix(const unsigned char **p, size_t *plen, in skip_prefix() argument 585 size_t pattern_len = *plen; in skip_prefix() 607 *plen = pattern_len; in skip_prefix()
|
/freebsd/crypto/openssl/crypto/rsa/ |
H A D | rsa_oaep.c | 41 const unsigned char *param, int plen) in RSA_padding_add_PKCS1_OAEP() argument 44 param, plen, NULL, NULL); in RSA_padding_add_PKCS1_OAEP() 58 int plen, const EVP_MD *md, in ossl_rsa_padding_add_PKCS1_OAEP_mgf1_ex() argument 102 if (!EVP_Digest((void *)param, plen, db, NULL, md, NULL)) in ossl_rsa_padding_add_PKCS1_OAEP_mgf1_ex() 143 const unsigned char *param, int plen, in RSA_padding_add_PKCS1_OAEP_mgf1() argument 147 param, plen, md, mgf1md); in RSA_padding_add_PKCS1_OAEP_mgf1() 152 const unsigned char *param, int plen) in RSA_padding_check_PKCS1_OAEP() argument 155 param, plen, NULL, NULL); in RSA_padding_check_PKCS1_OAEP() 161 int plen, const EVP_MD *md, in RSA_padding_check_PKCS1_OAEP_mgf1() argument 250 if (!EVP_Digest((void *)param, plen, phash, NULL, md, NULL)) in RSA_padding_check_PKCS1_OAEP_mgf1()
|
/freebsd/crypto/openssl/crypto/pem/ |
H A D | pem_lib.c | 235 static int pem_bytes_read_bio_flags(unsigned char **pdata, long *plen, in pem_bytes_read_bio_flags() argument 262 *plen = len; in pem_bytes_read_bio_flags() 278 int PEM_bytes_read_bio(unsigned char **pdata, long *plen, char **pnm, in PEM_bytes_read_bio() argument 281 return pem_bytes_read_bio_flags(pdata, plen, pnm, name, bp, cb, u, in PEM_bytes_read_bio() 285 int PEM_bytes_read_bio_secmem(unsigned char **pdata, long *plen, char **pnm, in PEM_bytes_read_bio_secmem() argument 288 return pem_bytes_read_bio_flags(pdata, plen, pnm, name, bp, cb, u, in PEM_bytes_read_bio_secmem() 414 int PEM_do_header(EVP_CIPHER_INFO *cipher, unsigned char *data, long *plen, in PEM_do_header() argument 419 long len = *plen; in PEM_do_header() 461 *plen = ilen; in PEM_do_header() 465 *plen += ilen; in PEM_do_header()
|
/freebsd/crypto/openssl/crypto/evp/ |
H A D | e_rc4_hmac_md5.c | 86 size_t plen = key->payload_length; in rc4_hmac_md5_cipher() local 88 if (plen != NO_PAYLOAD_LENGTH && len != (plen + MD5_DIGEST_LENGTH)) in rc4_hmac_md5_cipher() 92 if (plen == NO_PAYLOAD_LENGTH) in rc4_hmac_md5_cipher() 93 plen = len; in rc4_hmac_md5_cipher() 99 if (plen > md5_off && (blocks = (plen - md5_off) / MD5_CBLOCK) && in rc4_hmac_md5_cipher() 118 MD5_Update(&key->md, in + md5_off, plen - md5_off); in rc4_hmac_md5_cipher() 120 if (plen != len) { /* "TLS" mode of operation */ in rc4_hmac_md5_cipher() 125 MD5_Final(out + plen, &key->md); in rc4_hmac_md5_cipher() 127 MD5_Update(&key->md, out + plen, MD5_DIGEST_LENGTH); in rc4_hmac_md5_cipher() 128 MD5_Final(out + plen, &key->md); in rc4_hmac_md5_cipher() [all …]
|
H A D | ec_ctrl.c | 176 int EVP_PKEY_CTX_get_ecdh_kdf_outlen(EVP_PKEY_CTX *ctx, int *plen) in EVP_PKEY_CTX_get_ecdh_kdf_outlen() argument 198 *plen = (int)len; in EVP_PKEY_CTX_get_ecdh_kdf_outlen()
|
H A D | dh_ctrl.c | 265 int EVP_PKEY_CTX_get_dh_kdf_outlen(EVP_PKEY_CTX *ctx, int *plen) in EVP_PKEY_CTX_get_dh_kdf_outlen() argument 285 *plen = (int)len; in EVP_PKEY_CTX_get_dh_kdf_outlen()
|
H A D | e_aes_cbc_hmac_sha1.c | 428 if (plen == NO_PAYLOAD_LENGTH) in aesni_cbc_hmac_sha1_cipher() 429 plen = len; in aesni_cbc_hmac_sha1_cipher() 431 ((plen + SHA_DIGEST_LENGTH + in aesni_cbc_hmac_sha1_cipher() 438 if (plen > (sha_off + iv) in aesni_cbc_hmac_sha1_cipher() 463 SHA1_Final(out + plen, &key->md); in aesni_cbc_hmac_sha1_cipher() 466 SHA1_Final(out + plen, &key->md); in aesni_cbc_hmac_sha1_cipher() 469 plen += SHA_DIGEST_LENGTH; in aesni_cbc_hmac_sha1_cipher() 470 for (l = len - plen - 1; plen < len; plen++) in aesni_cbc_hmac_sha1_cipher() 471 out[plen] = l; in aesni_cbc_hmac_sha1_cipher() 501 if ((key->aux.tls_aad[plen - 4] << 8 | key->aux.tls_aad[plen - 3]) in aesni_cbc_hmac_sha1_cipher() [all …]
|
H A D | e_aes_cbc_hmac_sha256.c | 443 if (plen == NO_PAYLOAD_LENGTH) in aesni_cbc_hmac_sha256_cipher() 444 plen = len; in aesni_cbc_hmac_sha256_cipher() 446 ((plen + SHA256_DIGEST_LENGTH + in aesni_cbc_hmac_sha256_cipher() 467 plen > (sha_off + iv) && in aesni_cbc_hmac_sha256_cipher() 492 SHA256_Final(out + plen, &key->md); in aesni_cbc_hmac_sha256_cipher() 495 SHA256_Final(out + plen, &key->md); in aesni_cbc_hmac_sha256_cipher() 498 plen += SHA256_DIGEST_LENGTH; in aesni_cbc_hmac_sha256_cipher() 499 for (l = len - plen - 1; plen < len; plen++) in aesni_cbc_hmac_sha256_cipher() 500 out[plen] = l; in aesni_cbc_hmac_sha256_cipher() 530 if ((key->aux.tls_aad[plen - 4] << 8 | key->aux.tls_aad[plen - 3]) in aesni_cbc_hmac_sha256_cipher() [all …]
|
H A D | e_chacha20_poly1305.c | 241 if (plen) { in chacha20_poly1305_tls_cipher() 247 in += plen; in chacha20_poly1305_tls_cipher() 248 out += plen; in chacha20_poly1305_tls_cipher() 308 in += plen; in chacha20_poly1305_tls_cipher() 309 out += plen; in chacha20_poly1305_tls_cipher() 407 plen = len; in chacha20_poly1305_cipher() 414 in += plen; in chacha20_poly1305_cipher() 415 out += plen; in chacha20_poly1305_cipher() 420 in += plen; in chacha20_poly1305_cipher() 421 out += plen; in chacha20_poly1305_cipher() [all …]
|
/freebsd/crypto/openssl/crypto/cms/ |
H A D | cms_ec.c | 81 int plen; in ecdh_cms_set_peerkey() local 108 plen = ASN1_STRING_length(pubkey); in ecdh_cms_set_peerkey() 110 if (p == NULL || plen == 0) in ecdh_cms_set_peerkey() 113 if (!EVP_PKEY_set1_encoded_public_key(pkpeer, p, plen)) in ecdh_cms_set_peerkey() 165 int plen, keylen; in ecdh_cms_set_shared_info() local 182 plen = alg->parameter->value.sequence->length; in ecdh_cms_set_shared_info() 183 kekalg = d2i_X509_ALGOR(NULL, &p, plen); in ecdh_cms_set_shared_info() 202 plen = CMS_SharedInfo_encode(&der, kekalg, ukm, keylen); in ecdh_cms_set_shared_info() 204 if (plen <= 0) in ecdh_cms_set_shared_info() 207 if (EVP_PKEY_CTX_set0_ecdh_kdf_ukm(pctx, der, plen) <= 0) in ecdh_cms_set_shared_info()
|
/freebsd/crypto/openssl/crypto/asn1/ |
H A D | tasn_dec.c | 704 long plen; in asn1_d2i_ex_primitive() local 812 len = plen; in asn1_d2i_ex_primitive() 813 p += plen; in asn1_d2i_ex_primitive() 976 long plen; in asn1_find_end() local 1044 long plen; in asn1_collect() local 1085 } else if (plen && !collect_data(buf, &p, plen)) in asn1_collect() 1108 *p += plen; in collect_data() 1142 long plen; in asn1_check_tlen() local 1153 plen = ctx->plen; in asn1_check_tlen() 1161 ctx->plen = plen; in asn1_check_tlen() [all …]
|
H A D | bio_ndef.c | 45 static int ndef_prefix(BIO *b, unsigned char **pbuf, int *plen, void *parg); 46 static int ndef_prefix_free(BIO *b, unsigned char **pbuf, int *plen, 48 static int ndef_suffix(BIO *b, unsigned char **pbuf, int *plen, void *parg); 49 static int ndef_suffix_free(BIO *b, unsigned char **pbuf, int *plen, 129 static int ndef_prefix(BIO *b, unsigned char **pbuf, int *plen, void *parg) in ndef_prefix() argument 155 *plen = *ndef_aux->boundary - *pbuf; in ndef_prefix() 160 static int ndef_prefix_free(BIO *b, unsigned char **pbuf, int *plen, in ndef_prefix_free() argument 177 *plen = 0; in ndef_prefix_free() 181 static int ndef_suffix_free(BIO *b, unsigned char **pbuf, int *plen, in ndef_suffix_free() argument 185 if (!ndef_prefix_free(b, pbuf, plen, parg)) in ndef_suffix_free() [all …]
|
H A D | a_int.c | 155 const unsigned char *p, size_t plen) in c2i_ibuf() argument 159 if (plen == 0) { in c2i_ibuf() 167 if (plen == 1) { in c2i_ibuf() 187 for (pad = 0, i = 1; i < plen; i++) in c2i_ibuf() 199 plen -= pad; in c2i_ibuf() 202 twos_complement(b, p, plen, neg ? 0xffU : 0); in c2i_ibuf() 204 return plen; in c2i_ibuf()
|
/freebsd/tests/sys/netlink/ |
H A D | test_rtnl_ifaddr.py | 269 plen, auto_brd, ifa_brd_str = brd 270 ifa = ipaddress.ip_interface("192.0.2.1/{}".format(plen))
|
/freebsd/contrib/tcpdump/ |
H A D | print-rsvp.c | 678 const u_char *pptr, u_int plen, const u_char *tptr, in rsvp_obj_print() argument 1783 sigcheck = signature_verify(ndo, pptr, plen, in rsvp_obj_print() 1926 u_short plen, tlen; in rsvp_print() local 1957 plen = tlen = GET_BE_U_2(rsvp_com_header->length); in rsvp_print() 2057 if (rsvp_obj_print(ndo, pptr, plen, tptr, "\n\t ", tlen, rsvp_com_header) == -1) in rsvp_print()
|
H A D | signature.c | 119 signature_verify(netdissect_options *ndo, const u_char *pptr, u_int plen, in signature_verify() argument 134 if (!ND_TTEST_LEN(pptr, plen)) { in signature_verify() 146 if (sig_ptr + sizeof(sig) > pptr + plen) { in signature_verify() 154 packet_copy = malloc(plen); in signature_verify() 159 memcpy(packet_copy, pptr, plen); in signature_verify() 176 signature_compute_hmac_md5(packet_copy, plen, in signature_verify() 203 u_int plen _U_, const u_char *sig_ptr _U_, in signature_verify()
|
H A D | print-pim.c | 858 u_int plen = len; in pimv2_print() local 861 advance = pimv2_addr_print(ndo, ptr, plen, pimv2_unicast, pimv2_addr_len, 0); in pimv2_print() 865 plen -= advance; in pimv2_print()
|