Home
last modified time | relevance | path

Searched refs:pckm (Results 1 – 2 of 2) sorted by relevance

/third_party/node/deps/ngtcp2/ngtcp2/lib/
Dngtcp2_crypto.c35 int ngtcp2_crypto_km_new(ngtcp2_crypto_km **pckm, const uint8_t *secret, in ngtcp2_crypto_km_new() argument
40 int rv = ngtcp2_crypto_km_nocopy_new(pckm, secretlen, ivlen, mem); in ngtcp2_crypto_km_new()
46 memcpy((*pckm)->secret.base, secret, secretlen); in ngtcp2_crypto_km_new()
49 (*pckm)->aead_ctx = *aead_ctx; in ngtcp2_crypto_km_new()
51 memcpy((*pckm)->iv.base, iv, ivlen); in ngtcp2_crypto_km_new()
56 int ngtcp2_crypto_km_nocopy_new(ngtcp2_crypto_km **pckm, size_t secretlen, in ngtcp2_crypto_km_nocopy_new() argument
63 *pckm = ngtcp2_mem_malloc(mem, len); in ngtcp2_crypto_km_nocopy_new()
64 if (*pckm == NULL) { in ngtcp2_crypto_km_nocopy_new()
68 p = (uint8_t *)(*pckm) + sizeof(ngtcp2_crypto_km); in ngtcp2_crypto_km_nocopy_new()
69 (*pckm)->secret.base = p; in ngtcp2_crypto_km_nocopy_new()
[all …]
Dngtcp2_crypto.h102 int ngtcp2_crypto_km_new(ngtcp2_crypto_km **pckm, const uint8_t *secret,
112 int ngtcp2_crypto_km_nocopy_new(ngtcp2_crypto_km **pckm, size_t secretlen,