Home
last modified time | relevance | path

Searched refs:plen (Results 251 – 275 of 393) sorted by last modified time

1...<<111213141516

/freebsd/crypto/openssl/include/openssl/
H A Dasn1t.h.in623 long plen; /* length */ member
H A Dbio.h334 typedef int asn1_ps_func (BIO *b, unsigned char **pbuf, int *plen,
/freebsd/crypto/openssl/include/crypto/
H A Drsa.h95 int plen, const EVP_MD *md,
H A Decx.h135 const unsigned char *p, int plen,
/freebsd/crypto/openssl/engines/
H A De_ossltest.c797 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 DPEM_bytes_read_bio.pod11 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 DPEM_read_bio_PrivateKey.pod441 rc = EVP_BytesToKey(cipher, md, iv /*salt*/, pword, plen, 1, key, NULL /*iv*/);
/freebsd/crypto/openssl/crypto/x509/
H A Dx509_vfy.c453 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 Dv3_utl.c580 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 Drsa_oaep.c41 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 Dpem_lib.c235 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 De_rc4_hmac_md5.c86 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 Dec_ctrl.c176 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 Ddh_ctrl.c265 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 De_aes_cbc_hmac_sha1.c428 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 De_aes_cbc_hmac_sha256.c443 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 De_chacha20_poly1305.c241 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 Dcms_ec.c81 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 Dtasn_dec.c704 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 Dbio_ndef.c45 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 Da_int.c155 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 Dtest_rtnl_ifaddr.py269 plen, auto_brd, ifa_brd_str = brd
270 ifa = ipaddress.ip_interface("192.0.2.1/{}".format(plen))
/freebsd/contrib/tcpdump/
H A Dprint-rsvp.c678 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 Dsignature.c119 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 Dprint-pim.c858 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()

1...<<111213141516