/third_party/libwebsockets/lib/jose/jwe/ |
D | jwe.c | 217 if (!jwe->jose.enc_alg || !jwe->jose.alg) in lws_jwa_concat_kdf() 238 aid = direct ? jwe->jose.enc_alg->alg : jwe->jose.alg->alg; in lws_jwa_concat_kdf() 271 while (ctr <= (uint32_t)((jwe->jose.enc_alg->keybits_fixed + (hlen - 1)) / hlen)) { in lws_jwa_concat_kdf() 298 be32(jwe->jose.enc_alg->keybits_fixed, &t), in lws_jwa_concat_kdf() 345 valid_aescbc_hmac = jwe->jose.enc_alg && in lws_jwe_auth_and_decrypt() 346 jwe->jose.enc_alg->algtype_crypto == LWS_JOSE_ENCTYPE_AES_CBC && in lws_jwe_auth_and_decrypt() 347 (jwe->jose.enc_alg->hmac_type == LWS_GENHMAC_TYPE_SHA256 || in lws_jwe_auth_and_decrypt() 348 jwe->jose.enc_alg->hmac_type == LWS_GENHMAC_TYPE_SHA384 || in lws_jwe_auth_and_decrypt() 349 jwe->jose.enc_alg->hmac_type == LWS_GENHMAC_TYPE_SHA512); in lws_jwe_auth_and_decrypt() 351 valid_aesgcm = jwe->jose.enc_alg && in lws_jwe_auth_and_decrypt() [all …]
|
D | jwe-ecdh-es-aeskw.c | 206 enc_hlen = (int)lws_genhmac_size(jwe->jose.enc_alg->hmac_type), in lws_jwe_encrypt_ecdh() 342 jwe->jose.alg->alg, jwe->jose.enc_alg->alg); in lws_jwe_encrypt_ecdh() 381 enc_hlen = (int)lws_genhmac_size(jwe->jose.enc_alg->hmac_type); in lws_jwe_encrypt_ecdh_cbc_hs() 432 if (ret || jwe->jose.enc_alg->algtype_crypto == LWS_JOSE_ENCTYPE_NONE) { in lws_jwe_encrypt_ecdh_cbc_hs() 457 int ekbytes = jwe->jose.enc_alg->keybits_fixed / 8, in lws_jwe_auth_and_decrypt_ecdh() 458 enc_hlen = (int)lws_genhmac_size(jwe->jose.enc_alg->hmac_type); in lws_jwe_auth_and_decrypt_ecdh()
|
D | jwe-rsa-aesgcm.c | 34 int ekbytes = jwe->jose.enc_alg->keybits_fixed / 8; in lws_jwe_encrypt_rsa_aes_gcm()
|
D | jwe-rsa-aescbc.c | 49 int n, hlen = (int)lws_genhmac_size(jwe->jose.enc_alg->hmac_type), in lws_jwe_encrypt_rsa_aes_cbc_hs()
|
/third_party/mbedtls/library/ |
D | pem.c | 363 mbedtls_cipher_type_t enc_alg = MBEDTLS_CIPHER_NONE; in mbedtls_pem_read_buffer() local 430 enc_alg = MBEDTLS_CIPHER_DES_EDE3_CBC; in mbedtls_pem_read_buffer() 439 enc_alg = MBEDTLS_CIPHER_DES_CBC; in mbedtls_pem_read_buffer() 455 enc_alg = MBEDTLS_CIPHER_AES_128_CBC; in mbedtls_pem_read_buffer() 457 enc_alg = MBEDTLS_CIPHER_AES_192_CBC; in mbedtls_pem_read_buffer() 459 enc_alg = MBEDTLS_CIPHER_AES_256_CBC; in mbedtls_pem_read_buffer() 473 if (enc_alg == MBEDTLS_CIPHER_NONE) { in mbedtls_pem_read_buffer() 521 if (enc_alg == MBEDTLS_CIPHER_DES_EDE3_CBC) { in mbedtls_pem_read_buffer() 523 } else if (enc_alg == MBEDTLS_CIPHER_DES_CBC) { in mbedtls_pem_read_buffer() 529 if (enc_alg == MBEDTLS_CIPHER_AES_128_CBC) { in mbedtls_pem_read_buffer() [all …]
|
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/src/tls/ |
D | pkcs5.c | 32 } enc_alg; member 233 params->enc_alg = PBES2_ENC_ALG_DES_EDE3_CBC; in pkcs5_get_params_pbes2() 261 static int pkcs5_get_params(const u8 *enc_alg, size_t enc_alg_len, in pkcs5_get_params() argument 271 enc_alg_end = enc_alg + enc_alg_len; in pkcs5_get_params() 275 if (asn1_get_oid(enc_alg, enc_alg_end - enc_alg, &oid, &pos)) { in pkcs5_get_params() 366 if (params->enc_alg != PBES2_ENC_ALG_DES_EDE3_CBC || in pkcs5_crypto_init_pbes2() 566 u8 * pkcs5_decrypt(const u8 *enc_alg, size_t enc_alg_len, in pkcs5_decrypt() argument 575 if (pkcs5_get_params(enc_alg, enc_alg_len, ¶ms) < 0) { in pkcs5_decrypt()
|
D | pkcs8.c | 114 const u8 *pos, *end, *enc_alg; in pkcs8_enc_key_import() local 146 enc_alg = hdr.payload; in pkcs8_enc_key_import() 158 data = pkcs5_decrypt(enc_alg, enc_alg_len, hdr.payload, hdr.length, in pkcs8_enc_key_import()
|
D | pkcs5.h | 12 u8 * pkcs5_decrypt(const u8 *enc_alg, size_t enc_alg_len,
|
D | tlsv1_cred.c | 744 const u8 *enc_alg; in pkcs12_parse_content_enc_data() local 817 enc_alg = hdr.payload; in pkcs12_parse_content_enc_data() 829 data = pkcs5_decrypt(enc_alg, enc_alg_len, hdr.payload, hdr.length, in pkcs12_parse_content_enc_data()
|
/third_party/wpa_supplicant/wpa_supplicant-2.9/src/tls/ |
D | pkcs5.c | 32 } enc_alg; member 246 params->enc_alg = PBES2_ENC_ALG_DES_EDE3_CBC; in pkcs5_get_params_pbes2() 277 static int pkcs5_get_params(const u8 *enc_alg, size_t enc_alg_len, in pkcs5_get_params() argument 287 enc_alg_end = enc_alg + enc_alg_len; in pkcs5_get_params() 291 if (asn1_get_oid(enc_alg, enc_alg_end - enc_alg, &oid, &pos)) { in pkcs5_get_params() 388 if (params->enc_alg != PBES2_ENC_ALG_DES_EDE3_CBC || in pkcs5_crypto_init_pbes2() 588 u8 * pkcs5_decrypt(const u8 *enc_alg, size_t enc_alg_len, in pkcs5_decrypt() argument 597 if (pkcs5_get_params(enc_alg, enc_alg_len, ¶ms) < 0) { in pkcs5_decrypt()
|
D | pkcs8.c | 125 const u8 *pos, *end, *enc_alg; in pkcs8_enc_key_import() local 163 enc_alg = hdr.payload; in pkcs8_enc_key_import() 177 data = pkcs5_decrypt(enc_alg, enc_alg_len, hdr.payload, hdr.length, in pkcs8_enc_key_import()
|
D | pkcs5.h | 12 u8 * pkcs5_decrypt(const u8 *enc_alg, size_t enc_alg_len,
|
D | tlsv1_cred.c | 774 const u8 *enc_alg; in pkcs12_parse_content_enc_data() local 854 enc_alg = hdr.payload; in pkcs12_parse_content_enc_data() 868 data = pkcs5_decrypt(enc_alg, enc_alg_len, hdr.payload, hdr.length, in pkcs12_parse_content_enc_data()
|
/third_party/libwebsockets/lib/jose/jwe/enc/ |
D | aescbc.c | 32 int n, hlen = (int)lws_genhmac_size(jwe->jose.enc_alg->hmac_type); in lws_jwe_encrypt_cbc_hs() 119 if (lws_genhmac_init(&hmacctx, jwe->jose.enc_alg->hmac_type, in lws_jwe_encrypt_cbc_hs() 165 int n, hlen = (int)lws_genhmac_size(jwe->jose.enc_alg->hmac_type); in lws_jwe_auth_and_decrypt_cbc_hs() 203 if (lws_genhmac_init(&hmacctx, jwe->jose.enc_alg->hmac_type, enc_cek, in lws_jwe_auth_and_decrypt_cbc_hs()
|
D | aeskw.c | 44 int n, m, hlen = (int)lws_genhmac_size(jwe->jose.enc_alg->hmac_type), in lws_jwe_encrypt_aeskw_cbc_hs() 98 jwe->jose.enc_alg->keybits_fixed)); in lws_jwe_encrypt_aeskw_cbc_hs() 152 jwe->jose.enc_alg->keybits_fixed)); in lws_jwe_auth_and_decrypt_aeskw_cbc_hs()
|
D | aesgcm.c | 78 el.len = jwe->jose.enc_alg->keybits_fixed / 8; in lws_jwe_encrypt_gcm() 143 el.len = jwe->jose.enc_alg->keybits_fixed / 8; in lws_jwe_auth_and_decrypt_gcm()
|
/third_party/libwebsockets/minimal-examples/crypto/minimal-crypto-jwe/ |
D | main.c | 130 if (lws_gencrypto_jwe_enc_to_definition(sp + 1, &jwe.jose.enc_alg)) { in main() 189 n = lws_gencrypto_bits_to_bytes(jwe.jose.enc_alg->keybits_fixed); in main()
|
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/src/common/ |
D | dpp_backup.c | 374 *enc_alg; in dpp_build_enc_cont_info() local 395 enc_alg = asn1_build_alg_id(oid, NULL); in dpp_build_enc_cont_info() 396 if (!key_pkg || !enc_alg) in dpp_build_enc_cont_info() 411 enc_cont_info = wpabuf_alloc(100 + wpabuf_len(enc_alg) + in dpp_build_enc_cont_info() 420 wpabuf_put_buf(enc_cont_info, enc_alg); in dpp_build_enc_cont_info() 431 wpabuf_free(enc_alg); in dpp_build_enc_cont_info()
|
/third_party/node/deps/openssl/openssl/crypto/pkcs7/ |
D | pk7_doit.c | 406 X509_ALGOR *enc_alg = NULL; in PKCS7_dataDecode() local 454 enc_alg = p7->d.signed_and_enveloped->enc_data->algorithm; in PKCS7_dataDecode() 456 OBJ_obj2txt(name, sizeof(name), enc_alg->algorithm, 0); in PKCS7_dataDecode() 474 enc_alg = p7->d.enveloped->enc_data->algorithm; in PKCS7_dataDecode() 477 OBJ_obj2txt(name, sizeof(name), enc_alg->algorithm, 0); in PKCS7_dataDecode() 599 if (EVP_CIPHER_asn1_to_param(evp_ctx, enc_alg->parameter) <= 0) in PKCS7_dataDecode()
|
/third_party/openssl/crypto/pkcs7/ |
D | pk7_doit.c | 406 X509_ALGOR *enc_alg = NULL; in PKCS7_dataDecode() local 454 enc_alg = p7->d.signed_and_enveloped->enc_data->algorithm; in PKCS7_dataDecode() 456 OBJ_obj2txt(name, sizeof(name), enc_alg->algorithm, 0); in PKCS7_dataDecode() 474 enc_alg = p7->d.enveloped->enc_data->algorithm; in PKCS7_dataDecode() 477 OBJ_obj2txt(name, sizeof(name), enc_alg->algorithm, 0); in PKCS7_dataDecode() 599 if (EVP_CIPHER_asn1_to_param(evp_ctx, enc_alg->parameter) <= 0) in PKCS7_dataDecode()
|
/third_party/libwebsockets/minimal-examples/api-tests/api-test-jose/ |
D | jwe.c | 129 if (lws_gencrypto_jwe_enc_to_definition("A256GCM", &jwe.jose.enc_alg)) { in test_jwe_a1() 155 n = lws_gencrypto_bits_to_bytes(jwe.jose.enc_alg->keybits_fixed); in test_jwe_a1() 1399 &jwe.jose.enc_alg)) in test_jwa_b2() 1555 &jwe.jose.enc_alg)) in test_jwa_b3() 2037 if (lws_gencrypto_jwe_enc_to_definition(enc, &jwe.jose.enc_alg)) { in test_akw_encrypt() 2065 n = lws_gencrypto_bits_to_bytes(jwe.jose.enc_alg->keybits_fixed); in test_akw_encrypt()
|
/third_party/libwebsockets/include/libwebsockets/ |
D | lws-jose.h | 126 const struct lws_jose_jwe_alg *enc_alg; member
|
/third_party/libwebsockets/lib/jose/jws/ |
D | jose.c | 288 &args->jose->enc_alg)) { in lws_jws_jose_cb()
|