Home
last modified time | relevance | path

Searched refs:cek (Results 1 - 8 of 8) sorted by relevance

/third_party/libwebsockets/lib/jose/jwe/
H A Djwe-ecdh-es-aeskw.c200 uint8_t *cek) in lws_jwe_encrypt_ecdh()
294 /* generate the actual CEK in cek */ in lws_jwe_encrypt_ecdh()
296 if (lws_get_random(jwe->jws.context, cek, (unsigned int)enc_hlen) != in lws_jwe_encrypt_ecdh()
316 n = lws_genaes_crypt(&aesctx, cek, (unsigned int)enc_hlen, in lws_jwe_encrypt_ecdh()
321 lwsl_err("%s: encrypt cek fail\n", __func__); in lws_jwe_encrypt_ecdh()
331 /* Wrapped CEK is in EKEY. Random CEK is in cek. */ in lws_jwe_encrypt_ecdh()
333 } else /* direct derived CEK is in cek */ in lws_jwe_encrypt_ecdh()
334 memcpy(cek, derived, (unsigned int)enc_hlen); in lws_jwe_encrypt_ecdh()
370 /* cleanse the shared secret (watch out for cek at parent too) */ in lws_jwe_encrypt_ecdh()
382 uint8_t cek[LWS_JWE_LIMIT_KEY_ELEMENT_BYTE in lws_jwe_encrypt_ecdh_cbc_hs() local
199 lws_jwe_encrypt_ecdh(struct lws_jwe *jwe, char *temp, int *temp_len, uint8_t *cek) lws_jwe_encrypt_ecdh() argument
[all...]
H A Djwe-rsa-aesgcm.c70 if (lws_get_random(jwe->jws.context, jwe->cek, (unsigned int)ekbytes) != in lws_jwe_encrypt_rsa_aes_gcm()
80 jwe->cek, (unsigned int)ekbytes, 0)) in lws_jwe_encrypt_rsa_aes_gcm()
105 n = lws_genrsa_public_encrypt(&rsactx, jwe->cek, (unsigned int)ekbytes, in lws_jwe_encrypt_rsa_aes_gcm()
109 lwsl_err("%s: encrypt cek fail: \n", __func__); in lws_jwe_encrypt_rsa_aes_gcm()
160 lwsl_err("%s: decrypt cek fail: \n", __func__); in lws_jwe_auth_and_decrypt_rsa_aes_gcm()
H A Dprivate-lib-jose-jwe.h80 uint8_t *cek, uint8_t *aad, int aad_len);
H A Djwe.c178 lws_explicit_bzero(jwe->cek, sizeof(jwe->cek)); in lws_jwe_destroy()
/third_party/libwebsockets/lib/jose/jwe/enc/
H A Daescbc.c29 lws_jwe_encrypt_cbc_hs(struct lws_jwe *jwe, uint8_t *cek, in lws_jwe_encrypt_cbc_hs() argument
81 el.buf = cek + (hlen / 2); in lws_jwe_encrypt_cbc_hs()
120 cek, (unsigned int)hlen / 2)) in lws_jwe_encrypt_cbc_hs()
235 /* second half of enc cek is the CEK KEY */ in lws_jwe_auth_and_decrypt_cbc_hs()
/third_party/node/deps/openssl/openssl/crypto/cms/
H A Dcms_kari.c258 unsigned char *enckey = NULL, *cek = NULL; in CMS_RecipientInfo_kari_decrypt() local
269 if (!cms_kek_cipher(&cek, &ceklen, enckey, enckeylen, ri->d.kari, 0)) in CMS_RecipientInfo_kari_decrypt()
273 ec->key = cek; in CMS_RecipientInfo_kari_decrypt()
275 cek = NULL; in CMS_RecipientInfo_kari_decrypt()
278 OPENSSL_free(cek); in CMS_RecipientInfo_kari_decrypt()
/third_party/openssl/crypto/cms/
H A Dcms_kari.c258 unsigned char *enckey = NULL, *cek = NULL; in CMS_RecipientInfo_kari_decrypt() local
269 if (!cms_kek_cipher(&cek, &ceklen, enckey, enckeylen, ri->d.kari, 0)) in CMS_RecipientInfo_kari_decrypt()
273 ec->key = cek; in CMS_RecipientInfo_kari_decrypt()
275 cek = NULL; in CMS_RecipientInfo_kari_decrypt()
278 OPENSSL_free(cek); in CMS_RecipientInfo_kari_decrypt()
/third_party/libwebsockets/include/libwebsockets/
H A Dlws-jwe.h54 uint8_t cek[LWS_JWE_LIMIT_KEY_ELEMENT_BYTES]; member

Completed in 5 milliseconds