Home
last modified time | relevance | path

Searched refs:publen (Results 1 – 12 of 12) sorted by relevance

/openssl/test/
H A Dhpke_test.c76 const unsigned char *pub, size_t publen) in cmpkey() argument
82 if (!TEST_true(publen <= sizeof(pubbuf))) in cmpkey()
108 size_t publen = sizeof(pub); in do_testhpke() local
996 size_t publen = OSSL_HPKE_TSTSIZE; in test_hpke_modes_suites() local
1124 size_t publen = sizeof(pub); in test_hpke_export() local
1313 size_t publen = sizeof(pub); in test_hpke_oddcalls() local
1389 publen = 10; in test_hpke_oddcalls()
1393 publen = sizeof(pub); in test_hpke_oddcalls()
1750 if (!TEST_mem_eq(pub, publen, lpub, lpublen)) in test_hpke_one_ikm_gen()
1801 size_t publen = sizeof(pub); in test_hpke_compressed() local
[all …]
H A Ddhkem_test.inc17 size_t publen;
552 const unsigned char *pub, size_t publen)
590 (char *)pub, publen))
615 const unsigned char *pub, size_t publen)
634 (char *)pub, publen);
H A Devp_pkey_dhkem_test.c495 && TEST_mem_eq(pubkey, pubkeylen, t->pub, t->publen); in test_ec_dhkem_derivekey()
746 && TEST_mem_eq(t->pub, t->publen, pubkey, pubkeylen) in test_ecx_dhkem_derivekey()
/openssl/include/openssl/
H A Dhpke.h114 const unsigned char *pub, size_t publen,
122 unsigned char *pub, size_t *publen, EVP_PKEY **priv,
143 size_t publen);
H A Devp.h1462 const unsigned char *pub, size_t publen);
/openssl/crypto/hpke/
H A Dhpke.c448 const unsigned char *pub, size_t publen) in hpke_encap() argument
458 || pub == NULL || publen == 0) { in hpke_encap()
475 pub, publen); in hpke_encap()
969 if (ctx == NULL || pub == NULL || publen == 0) { in OSSL_HPKE_CTX_set1_authpub()
989 pub, publen); in OSSL_HPKE_CTX_set1_authpub()
994 pub, publen); in OSSL_HPKE_CTX_set1_authpub()
1058 const unsigned char *pub, size_t publen, in OSSL_HPKE_encap() argument
1065 || pub == NULL || publen == 0) { in OSSL_HPKE_encap()
1091 if (hpke_encap(ctx, enc, enclen, pub, publen) != 1) { in OSSL_HPKE_encap()
1302 if (pub == NULL || publen == NULL || *publen == 0 || priv == NULL) { in OSSL_HPKE_keygen()
[all …]
/openssl/crypto/ec/
H A Dec_ameth.c287 size_t privlen = 0, publen = 0; in do_EC_KEY_print() local
297 publen = EC_KEY_key2buf(x, EC_KEY_get_conv_form(x), &pub, NULL); in do_EC_KEY_print()
298 if (publen == 0) in do_EC_KEY_print()
328 if (publen != 0) { in do_EC_KEY_print()
331 if (ASN1_buf_print(bp, pub, publen, off + 4) == 0) in do_EC_KEY_print()
H A Dec_asn1.c1021 size_t privlen = 0, publen = 0; in i2d_ECPrivateKey() local
1064 publen = EC_KEY_key2buf(a, a->conv_form, &pub, NULL); in i2d_ECPrivateKey()
1066 if (publen == 0) { in i2d_ECPrivateKey()
1072 ASN1_STRING_set0(priv_key->publicKey, pub, publen); in i2d_ECPrivateKey()
/openssl/doc/man3/
H A DOSSL_HPKE_CTX_new.pod33 const unsigned char *pub, size_t publen,
41 unsigned char *pub, size_t *publen, EVP_PKEY **priv,
59 unsigned char *pub, size_t publen);
257 I<pub> of size I<publen>, and an optional I<info> parameter of size I<infolen>,
299 for the private value I<priv> and a encoded public key I<pub> of size I<publen>.
300 On input I<publen> should contain the maximum size of the I<pub> buffer, and
301 returns the output size. An error will occur if the input I<publen> is too small.
363 encoded pub key I<pub> of size I<publen> into the B<OSSL_HPKE_CTX> I<ctx> before
497 size_t publen = sizeof(pub);
515 if (OSSL_HPKE_keygen(hpke_suite, pub, &publen, &priv,
[all …]
H A DEVP_PKEY_set1_encoded_public_key.pod14 const unsigned char *pub, size_t publen);
44 key is pointed to be B<pub>. The length of the buffer is supplied in B<publen>.
/openssl/crypto/x509/
H A Dx_pubkey.c137 size_t publen; in x509_pubkey_ex_d2i_ex() local
156 publen = *in - in_saved; in x509_pubkey_ex_d2i_ex()
157 if (!ossl_assert(publen > 0)) { in x509_pubkey_ex_d2i_ex()
187 size_t slen = publen; in x509_pubkey_ex_d2i_ex()
194 tmpbuf = OPENSSL_memdup(in_saved, publen); in x509_pubkey_ex_d2i_ex()
/openssl/crypto/evp/
H A Dp_lib.c1388 size_t publen) in EVP_PKEY_set1_encoded_public_key() argument
1396 (unsigned char *)pub, publen); in EVP_PKEY_set1_encoded_public_key()
1398 if (publen > INT_MAX) in EVP_PKEY_set1_encoded_public_key()
1401 if (evp_pkey_asn1_ctrl(pkey, ASN1_PKEY_CTRL_SET1_TLS_ENCPT, publen, in EVP_PKEY_set1_encoded_public_key()

Completed in 81 milliseconds