/third_party/node/deps/openssl/openssl/crypto/evp/ |
H A D | cmeth_lib.c | 25 EVP_CIPHER *cipher = evp_cipher_new(); in EVP_CIPHER_meth_new() local 27 if (cipher != NULL) { in EVP_CIPHER_meth_new() 28 cipher->nid = cipher_type; in EVP_CIPHER_meth_new() 29 cipher->block_size = block_size; in EVP_CIPHER_meth_new() 30 cipher->key_len = key_len; in EVP_CIPHER_meth_new() 31 cipher->origin = EVP_ORIG_METH; in EVP_CIPHER_meth_new() 33 return cipher; in EVP_CIPHER_meth_new() 36 EVP_CIPHER *EVP_CIPHER_meth_dup(const EVP_CIPHER *cipher) in EVP_CIPHER_meth_dup() argument 44 if (cipher->prov != NULL) in EVP_CIPHER_meth_dup() 47 if ((to = EVP_CIPHER_meth_new(cipher in EVP_CIPHER_meth_dup() 58 EVP_CIPHER_meth_free(EVP_CIPHER *cipher) EVP_CIPHER_meth_free() argument 66 EVP_CIPHER_meth_set_iv_length(EVP_CIPHER *cipher, int iv_len) EVP_CIPHER_meth_set_iv_length() argument 75 EVP_CIPHER_meth_set_flags(EVP_CIPHER *cipher, unsigned long flags) EVP_CIPHER_meth_set_flags() argument 84 EVP_CIPHER_meth_set_impl_ctx_size(EVP_CIPHER *cipher, int ctx_size) EVP_CIPHER_meth_set_impl_ctx_size() argument 93 EVP_CIPHER_meth_set_init(EVP_CIPHER *cipher, int (*init) (EVP_CIPHER_CTX *ctx, const unsigned char *key, const unsigned char *iv, int enc)) EVP_CIPHER_meth_set_init() argument 106 EVP_CIPHER_meth_set_do_cipher(EVP_CIPHER *cipher, int (*do_cipher) (EVP_CIPHER_CTX *ctx, unsigned char *out, const unsigned char *in, size_t inl)) EVP_CIPHER_meth_set_do_cipher() argument 119 EVP_CIPHER_meth_set_cleanup(EVP_CIPHER *cipher, int (*cleanup) (EVP_CIPHER_CTX *)) EVP_CIPHER_meth_set_cleanup() argument 129 EVP_CIPHER_meth_set_set_asn1_params(EVP_CIPHER *cipher, int (*set_asn1_parameters) (EVP_CIPHER_CTX *, ASN1_TYPE *)) EVP_CIPHER_meth_set_set_asn1_params() argument 140 EVP_CIPHER_meth_set_get_asn1_params(EVP_CIPHER *cipher, int (*get_asn1_parameters) (EVP_CIPHER_CTX *, ASN1_TYPE *)) EVP_CIPHER_meth_set_get_asn1_params() argument 151 EVP_CIPHER_meth_set_ctrl(EVP_CIPHER *cipher, int (*ctrl) (EVP_CIPHER_CTX *, int type, int arg, void *ptr)) EVP_CIPHER_meth_set_ctrl() argument 163 EVP_CIPHER_meth_get_init(const EVP_CIPHER *cipher) EVP_CIPHER_meth_get_init() argument 170 EVP_CIPHER_meth_get_do_cipher(const EVP_CIPHER *cipher) EVP_CIPHER_meth_get_do_cipher() argument 178 EVP_CIPHER_meth_get_cleanup(const EVP_CIPHER *cipher) EVP_CIPHER_meth_get_cleanup() argument 183 EVP_CIPHER_meth_get_set_asn1_params(const EVP_CIPHER *cipher) EVP_CIPHER_meth_get_set_asn1_params() argument 189 EVP_CIPHER_meth_get_get_asn1_params(const EVP_CIPHER *cipher) EVP_CIPHER_meth_get_get_asn1_params() argument 195 EVP_CIPHER_meth_get_ctrl(const EVP_CIPHER *cipher) EVP_CIPHER_meth_get_ctrl() argument [all...] |
H A D | evp_enc.c | 35 if (ctx->cipher == NULL || ctx->cipher->prov == NULL) in EVP_CIPHER_CTX_reset() 39 if (ctx->cipher->freectx != NULL) in EVP_CIPHER_CTX_reset() 40 ctx->cipher->freectx(ctx->algctx); in EVP_CIPHER_CTX_reset() 53 if (ctx->cipher != NULL) { in EVP_CIPHER_CTX_reset() 54 if (ctx->cipher->cleanup && !ctx->cipher->cleanup(ctx)) in EVP_CIPHER_CTX_reset() 56 /* Cleanse cipher context data */ in EVP_CIPHER_CTX_reset() 57 if (ctx->cipher_data && ctx->cipher->ctx_size) in EVP_CIPHER_CTX_reset() 58 OPENSSL_cleanse(ctx->cipher_data, ctx->cipher in EVP_CIPHER_CTX_reset() 82 evp_cipher_init_internal(EVP_CIPHER_CTX *ctx, const EVP_CIPHER *cipher, ENGINE *impl, const unsigned char *key, const unsigned char *iv, int enc, const OSSL_PARAM params[]) evp_cipher_init_internal() argument 434 EVP_CipherInit_ex2(EVP_CIPHER_CTX *ctx, const EVP_CIPHER *cipher, const unsigned char *key, const unsigned char *iv, int enc, const OSSL_PARAM params[]) EVP_CipherInit_ex2() argument 441 EVP_CipherInit(EVP_CIPHER_CTX *ctx, const EVP_CIPHER *cipher, const unsigned char *key, const unsigned char *iv, int enc) EVP_CipherInit() argument 449 EVP_CipherInit_ex(EVP_CIPHER_CTX *ctx, const EVP_CIPHER *cipher, ENGINE *impl, const unsigned char *key, const unsigned char *iv, int enc) EVP_CipherInit_ex() argument 481 EVP_EncryptInit(EVP_CIPHER_CTX *ctx, const EVP_CIPHER *cipher, const unsigned char *key, const unsigned char *iv) EVP_EncryptInit() argument 487 EVP_EncryptInit_ex(EVP_CIPHER_CTX *ctx, const EVP_CIPHER *cipher, ENGINE *impl, const unsigned char *key, const unsigned char *iv) EVP_EncryptInit_ex() argument 494 EVP_EncryptInit_ex2(EVP_CIPHER_CTX *ctx, const EVP_CIPHER *cipher, const unsigned char *key, const unsigned char *iv, const OSSL_PARAM params[]) EVP_EncryptInit_ex2() argument 501 EVP_DecryptInit(EVP_CIPHER_CTX *ctx, const EVP_CIPHER *cipher, const unsigned char *key, const unsigned char *iv) EVP_DecryptInit() argument 507 EVP_DecryptInit_ex(EVP_CIPHER_CTX *ctx, const EVP_CIPHER *cipher, ENGINE *impl, const unsigned char *key, const unsigned char *iv) EVP_DecryptInit_ex() argument 514 EVP_DecryptInit_ex2(EVP_CIPHER_CTX *ctx, const EVP_CIPHER *cipher, const unsigned char *key, const unsigned char *iv, const OSSL_PARAM params[]) EVP_DecryptInit_ex2() argument 1300 EVP_CIPHER_get_params(EVP_CIPHER *cipher, OSSL_PARAM params[]) EVP_CIPHER_get_params() argument 1323 EVP_CIPHER_gettable_params(const EVP_CIPHER *cipher) EVP_CIPHER_gettable_params() argument 1331 EVP_CIPHER_settable_ctx_params(const EVP_CIPHER *cipher) EVP_CIPHER_settable_ctx_params() argument 1342 EVP_CIPHER_gettable_ctx_params(const EVP_CIPHER *cipher) EVP_CIPHER_gettable_ctx_params() argument 1378 const EVP_CIPHER *cipher = ctx->cipher; EVP_CIPHER_CTX_get_libctx() local 1477 EVP_CIPHER *cipher = OPENSSL_zalloc(sizeof(EVP_CIPHER)); evp_cipher_new() local 1526 EVP_CIPHER *cipher = NULL; evp_cipher_from_algorithm() local 1659 evp_cipher_up_ref(void *cipher) evp_cipher_up_ref() argument 1664 evp_cipher_free(void *cipher) evp_cipher_free() argument 1672 EVP_CIPHER *cipher = EVP_CIPHER_fetch() local 1680 EVP_CIPHER_up_ref(EVP_CIPHER *cipher) EVP_CIPHER_up_ref() argument 1689 evp_cipher_free_int(EVP_CIPHER *cipher) evp_cipher_free_int() argument 1697 EVP_CIPHER_free(EVP_CIPHER *cipher) EVP_CIPHER_free() argument [all...] |
H A D | asymcipher.c | 25 EVP_ASYM_CIPHER *cipher = NULL; in evp_pkey_asym_cipher_init() local 51 * Try to derive the supported asym cipher from |ctx->keymgmt|. in evp_pkey_asym_cipher_init() 71 * 1. Do the normal asym cipher fetch, using the fetching data given by in evp_pkey_asym_cipher_init() 73 * 2. Do the provider specific asym cipher fetch, from the same provider in evp_pkey_asym_cipher_init() 77 * asym cipher, and try to export |ctx->pkey| to that keymgmt (when in evp_pkey_asym_cipher_init() 93 EVP_ASYM_CIPHER_free(cipher); in evp_pkey_asym_cipher_init() 98 cipher = EVP_ASYM_CIPHER_fetch(ctx->libctx, supported_ciph, in evp_pkey_asym_cipher_init() 100 if (cipher != NULL) in evp_pkey_asym_cipher_init() 101 tmp_prov = EVP_ASYM_CIPHER_get0_provider(cipher); in evp_pkey_asym_cipher_init() 105 cipher in evp_pkey_asym_cipher_init() 304 EVP_ASYM_CIPHER *cipher = OPENSSL_zalloc(sizeof(EVP_ASYM_CIPHER)); evp_asym_cipher_new() local 329 EVP_ASYM_CIPHER *cipher = NULL; evp_asym_cipher_from_algorithm() local 441 EVP_ASYM_CIPHER_free(EVP_ASYM_CIPHER *cipher) EVP_ASYM_CIPHER_free() argument 456 EVP_ASYM_CIPHER_up_ref(EVP_ASYM_CIPHER *cipher) EVP_ASYM_CIPHER_up_ref() argument 464 EVP_ASYM_CIPHER_get0_provider(const EVP_ASYM_CIPHER *cipher) EVP_ASYM_CIPHER_get0_provider() argument 489 EVP_ASYM_CIPHER_is_a(const EVP_ASYM_CIPHER *cipher, const char *name) EVP_ASYM_CIPHER_is_a() argument 494 evp_asym_cipher_get_number(const EVP_ASYM_CIPHER *cipher) evp_asym_cipher_get_number() argument 499 EVP_ASYM_CIPHER_get0_name(const EVP_ASYM_CIPHER *cipher) EVP_ASYM_CIPHER_get0_name() argument 504 EVP_ASYM_CIPHER_get0_description(const EVP_ASYM_CIPHER *cipher) EVP_ASYM_CIPHER_get0_description() argument 509 EVP_ASYM_CIPHER_do_all_provided(OSSL_LIB_CTX *libctx, void (*fn)(EVP_ASYM_CIPHER *cipher, void *arg), void *arg) EVP_ASYM_CIPHER_do_all_provided() argument 522 EVP_ASYM_CIPHER_names_do_all(const EVP_ASYM_CIPHER *cipher, void (*fn)(const char *name, void *data), void *data) EVP_ASYM_CIPHER_names_do_all() argument [all...] |
H A D | evp_lib.c | 84 const EVP_CIPHER *cipher = c->cipher; in evp_cipher_param_to_asn1_ex() local 89 * cipher->set_asn1_parameters is set. We know that this pointer in evp_cipher_param_to_asn1_ex() 102 if (cipher->set_asn1_parameters != NULL) { in evp_cipher_param_to_asn1_ex() 103 ret = cipher->set_asn1_parameters(c, type); in evp_cipher_param_to_asn1_ex() 104 } else if ((EVP_CIPHER_get_flags(cipher) & EVP_CIPH_FLAG_CUSTOM_ASN1) == 0) { in evp_cipher_param_to_asn1_ex() 105 switch (EVP_CIPHER_get_mode(cipher)) { in evp_cipher_param_to_asn1_ex() 107 if (EVP_CIPHER_is_a(cipher, SN_id_smime_alg_CMS3DESwrap)) in evp_cipher_param_to_asn1_ex() 125 } else if (cipher->prov != NULL) { in evp_cipher_param_to_asn1_ex() 175 const EVP_CIPHER *cipher in evp_cipher_asn1_to_param_ex() local 276 EVP_CIPHER_get_type(const EVP_CIPHER *cipher) EVP_CIPHER_get_type() argument 341 evp_cipher_cache_constants(EVP_CIPHER *cipher) evp_cipher_cache_constants() argument 388 EVP_CIPHER_get_block_size(const EVP_CIPHER *cipher) EVP_CIPHER_get_block_size() argument 455 EVP_CIPHER *cipher; EVP_CIPHER_CTX_get1_cipher() local 470 EVP_CIPHER_get_flags(const EVP_CIPHER *cipher) EVP_CIPHER_get_flags() argument 500 EVP_CIPHER_get_iv_length(const EVP_CIPHER *cipher) EVP_CIPHER_get_iv_length() argument 648 EVP_CIPHER_get_key_length(const EVP_CIPHER *cipher) EVP_CIPHER_get_key_length() argument 665 EVP_CIPHER_get_nid(const EVP_CIPHER *cipher) EVP_CIPHER_get_nid() argument 675 EVP_CIPHER_is_a(const EVP_CIPHER *cipher, const char *name) EVP_CIPHER_is_a() argument 684 evp_cipher_get_number(const EVP_CIPHER *cipher) evp_cipher_get_number() argument 689 EVP_CIPHER_get0_name(const EVP_CIPHER *cipher) EVP_CIPHER_get0_name() argument 700 EVP_CIPHER_get0_description(const EVP_CIPHER *cipher) EVP_CIPHER_get0_description() argument 711 EVP_CIPHER_names_do_all(const EVP_CIPHER *cipher, void (*fn)(const char *name, void *data), void *data) EVP_CIPHER_names_do_all() argument 721 EVP_CIPHER_get0_provider(const EVP_CIPHER *cipher) EVP_CIPHER_get0_provider() argument 726 EVP_CIPHER_get_mode(const EVP_CIPHER *cipher) EVP_CIPHER_get_mode() argument [all...] |
/third_party/openssl/crypto/evp/ |
H A D | cmeth_lib.c | 25 EVP_CIPHER *cipher = evp_cipher_new(); in EVP_CIPHER_meth_new() local 27 if (cipher != NULL) { in EVP_CIPHER_meth_new() 28 cipher->nid = cipher_type; in EVP_CIPHER_meth_new() 29 cipher->block_size = block_size; in EVP_CIPHER_meth_new() 30 cipher->key_len = key_len; in EVP_CIPHER_meth_new() 31 cipher->origin = EVP_ORIG_METH; in EVP_CIPHER_meth_new() 33 return cipher; in EVP_CIPHER_meth_new() 36 EVP_CIPHER *EVP_CIPHER_meth_dup(const EVP_CIPHER *cipher) in EVP_CIPHER_meth_dup() argument 44 if (cipher->prov != NULL) in EVP_CIPHER_meth_dup() 47 if ((to = EVP_CIPHER_meth_new(cipher in EVP_CIPHER_meth_dup() 58 EVP_CIPHER_meth_free(EVP_CIPHER *cipher) EVP_CIPHER_meth_free() argument 66 EVP_CIPHER_meth_set_iv_length(EVP_CIPHER *cipher, int iv_len) EVP_CIPHER_meth_set_iv_length() argument 75 EVP_CIPHER_meth_set_flags(EVP_CIPHER *cipher, unsigned long flags) EVP_CIPHER_meth_set_flags() argument 84 EVP_CIPHER_meth_set_impl_ctx_size(EVP_CIPHER *cipher, int ctx_size) EVP_CIPHER_meth_set_impl_ctx_size() argument 93 EVP_CIPHER_meth_set_init(EVP_CIPHER *cipher, int (*init) (EVP_CIPHER_CTX *ctx, const unsigned char *key, const unsigned char *iv, int enc)) EVP_CIPHER_meth_set_init() argument 106 EVP_CIPHER_meth_set_do_cipher(EVP_CIPHER *cipher, int (*do_cipher) (EVP_CIPHER_CTX *ctx, unsigned char *out, const unsigned char *in, size_t inl)) EVP_CIPHER_meth_set_do_cipher() argument 119 EVP_CIPHER_meth_set_cleanup(EVP_CIPHER *cipher, int (*cleanup) (EVP_CIPHER_CTX *)) EVP_CIPHER_meth_set_cleanup() argument 129 EVP_CIPHER_meth_set_set_asn1_params(EVP_CIPHER *cipher, int (*set_asn1_parameters) (EVP_CIPHER_CTX *, ASN1_TYPE *)) EVP_CIPHER_meth_set_set_asn1_params() argument 140 EVP_CIPHER_meth_set_get_asn1_params(EVP_CIPHER *cipher, int (*get_asn1_parameters) (EVP_CIPHER_CTX *, ASN1_TYPE *)) EVP_CIPHER_meth_set_get_asn1_params() argument 151 EVP_CIPHER_meth_set_ctrl(EVP_CIPHER *cipher, int (*ctrl) (EVP_CIPHER_CTX *, int type, int arg, void *ptr)) EVP_CIPHER_meth_set_ctrl() argument 163 EVP_CIPHER_meth_get_init(const EVP_CIPHER *cipher) EVP_CIPHER_meth_get_init() argument 170 EVP_CIPHER_meth_get_do_cipher(const EVP_CIPHER *cipher) EVP_CIPHER_meth_get_do_cipher() argument 178 EVP_CIPHER_meth_get_cleanup(const EVP_CIPHER *cipher) EVP_CIPHER_meth_get_cleanup() argument 183 EVP_CIPHER_meth_get_set_asn1_params(const EVP_CIPHER *cipher) EVP_CIPHER_meth_get_set_asn1_params() argument 189 EVP_CIPHER_meth_get_get_asn1_params(const EVP_CIPHER *cipher) EVP_CIPHER_meth_get_get_asn1_params() argument 195 EVP_CIPHER_meth_get_ctrl(const EVP_CIPHER *cipher) EVP_CIPHER_meth_get_ctrl() argument [all...] |
H A D | evp_enc.c | 35 if (ctx->cipher == NULL || ctx->cipher->prov == NULL) in EVP_CIPHER_CTX_reset() 39 if (ctx->cipher->freectx != NULL) in EVP_CIPHER_CTX_reset() 40 ctx->cipher->freectx(ctx->algctx); in EVP_CIPHER_CTX_reset() 53 if (ctx->cipher != NULL) { in EVP_CIPHER_CTX_reset() 54 if (ctx->cipher->cleanup && !ctx->cipher->cleanup(ctx)) in EVP_CIPHER_CTX_reset() 56 /* Cleanse cipher context data */ in EVP_CIPHER_CTX_reset() 57 if (ctx->cipher_data && ctx->cipher->ctx_size) in EVP_CIPHER_CTX_reset() 58 OPENSSL_cleanse(ctx->cipher_data, ctx->cipher in EVP_CIPHER_CTX_reset() 82 evp_cipher_init_internal(EVP_CIPHER_CTX *ctx, const EVP_CIPHER *cipher, ENGINE *impl, const unsigned char *key, const unsigned char *iv, int enc, const OSSL_PARAM params[]) evp_cipher_init_internal() argument 429 EVP_CipherInit_ex2(EVP_CIPHER_CTX *ctx, const EVP_CIPHER *cipher, const unsigned char *key, const unsigned char *iv, int enc, const OSSL_PARAM params[]) EVP_CipherInit_ex2() argument 436 EVP_CipherInit(EVP_CIPHER_CTX *ctx, const EVP_CIPHER *cipher, const unsigned char *key, const unsigned char *iv, int enc) EVP_CipherInit() argument 444 EVP_CipherInit_ex(EVP_CIPHER_CTX *ctx, const EVP_CIPHER *cipher, ENGINE *impl, const unsigned char *key, const unsigned char *iv, int enc) EVP_CipherInit_ex() argument 476 EVP_EncryptInit(EVP_CIPHER_CTX *ctx, const EVP_CIPHER *cipher, const unsigned char *key, const unsigned char *iv) EVP_EncryptInit() argument 482 EVP_EncryptInit_ex(EVP_CIPHER_CTX *ctx, const EVP_CIPHER *cipher, ENGINE *impl, const unsigned char *key, const unsigned char *iv) EVP_EncryptInit_ex() argument 489 EVP_EncryptInit_ex2(EVP_CIPHER_CTX *ctx, const EVP_CIPHER *cipher, const unsigned char *key, const unsigned char *iv, const OSSL_PARAM params[]) EVP_EncryptInit_ex2() argument 496 EVP_DecryptInit(EVP_CIPHER_CTX *ctx, const EVP_CIPHER *cipher, const unsigned char *key, const unsigned char *iv) EVP_DecryptInit() argument 502 EVP_DecryptInit_ex(EVP_CIPHER_CTX *ctx, const EVP_CIPHER *cipher, ENGINE *impl, const unsigned char *key, const unsigned char *iv) EVP_DecryptInit_ex() argument 509 EVP_DecryptInit_ex2(EVP_CIPHER_CTX *ctx, const EVP_CIPHER *cipher, const unsigned char *key, const unsigned char *iv, const OSSL_PARAM params[]) EVP_DecryptInit_ex2() argument 1295 EVP_CIPHER_get_params(EVP_CIPHER *cipher, OSSL_PARAM params[]) EVP_CIPHER_get_params() argument 1318 EVP_CIPHER_gettable_params(const EVP_CIPHER *cipher) EVP_CIPHER_gettable_params() argument 1326 EVP_CIPHER_settable_ctx_params(const EVP_CIPHER *cipher) EVP_CIPHER_settable_ctx_params() argument 1337 EVP_CIPHER_gettable_ctx_params(const EVP_CIPHER *cipher) EVP_CIPHER_gettable_ctx_params() argument 1373 const EVP_CIPHER *cipher = ctx->cipher; EVP_CIPHER_CTX_get_libctx() local 1472 EVP_CIPHER *cipher = OPENSSL_zalloc(sizeof(EVP_CIPHER)); evp_cipher_new() local 1521 EVP_CIPHER *cipher = NULL; evp_cipher_from_algorithm() local 1654 evp_cipher_up_ref(void *cipher) evp_cipher_up_ref() argument 1659 evp_cipher_free(void *cipher) evp_cipher_free() argument 1667 EVP_CIPHER *cipher = EVP_CIPHER_fetch() local 1675 EVP_CIPHER_up_ref(EVP_CIPHER *cipher) EVP_CIPHER_up_ref() argument 1684 evp_cipher_free_int(EVP_CIPHER *cipher) evp_cipher_free_int() argument 1692 EVP_CIPHER_free(EVP_CIPHER *cipher) EVP_CIPHER_free() argument [all...] |
H A D | asymcipher.c | 25 EVP_ASYM_CIPHER *cipher = NULL; in evp_pkey_asym_cipher_init() local 51 * Try to derive the supported asym cipher from |ctx->keymgmt|. in evp_pkey_asym_cipher_init() 71 * 1. Do the normal asym cipher fetch, using the fetching data given by in evp_pkey_asym_cipher_init() 73 * 2. Do the provider specific asym cipher fetch, from the same provider in evp_pkey_asym_cipher_init() 77 * asym cipher, and try to export |ctx->pkey| to that keymgmt (when in evp_pkey_asym_cipher_init() 93 EVP_ASYM_CIPHER_free(cipher); in evp_pkey_asym_cipher_init() 98 cipher = EVP_ASYM_CIPHER_fetch(ctx->libctx, supported_ciph, in evp_pkey_asym_cipher_init() 100 if (cipher != NULL) in evp_pkey_asym_cipher_init() 101 tmp_prov = EVP_ASYM_CIPHER_get0_provider(cipher); in evp_pkey_asym_cipher_init() 105 cipher in evp_pkey_asym_cipher_init() 304 EVP_ASYM_CIPHER *cipher = OPENSSL_zalloc(sizeof(EVP_ASYM_CIPHER)); evp_asym_cipher_new() local 329 EVP_ASYM_CIPHER *cipher = NULL; evp_asym_cipher_from_algorithm() local 441 EVP_ASYM_CIPHER_free(EVP_ASYM_CIPHER *cipher) EVP_ASYM_CIPHER_free() argument 456 EVP_ASYM_CIPHER_up_ref(EVP_ASYM_CIPHER *cipher) EVP_ASYM_CIPHER_up_ref() argument 464 EVP_ASYM_CIPHER_get0_provider(const EVP_ASYM_CIPHER *cipher) EVP_ASYM_CIPHER_get0_provider() argument 489 EVP_ASYM_CIPHER_is_a(const EVP_ASYM_CIPHER *cipher, const char *name) EVP_ASYM_CIPHER_is_a() argument 494 evp_asym_cipher_get_number(const EVP_ASYM_CIPHER *cipher) evp_asym_cipher_get_number() argument 499 EVP_ASYM_CIPHER_get0_name(const EVP_ASYM_CIPHER *cipher) EVP_ASYM_CIPHER_get0_name() argument 504 EVP_ASYM_CIPHER_get0_description(const EVP_ASYM_CIPHER *cipher) EVP_ASYM_CIPHER_get0_description() argument 509 EVP_ASYM_CIPHER_do_all_provided(OSSL_LIB_CTX *libctx, void (*fn)(EVP_ASYM_CIPHER *cipher, void *arg), void *arg) EVP_ASYM_CIPHER_do_all_provided() argument 522 EVP_ASYM_CIPHER_names_do_all(const EVP_ASYM_CIPHER *cipher, void (*fn)(const char *name, void *data), void *data) EVP_ASYM_CIPHER_names_do_all() argument [all...] |
H A D | evp_lib.c | 84 const EVP_CIPHER *cipher = c->cipher; in evp_cipher_param_to_asn1_ex() local 89 * cipher->set_asn1_parameters is set. We know that this pointer in evp_cipher_param_to_asn1_ex() 102 if (cipher->set_asn1_parameters != NULL) { in evp_cipher_param_to_asn1_ex() 103 ret = cipher->set_asn1_parameters(c, type); in evp_cipher_param_to_asn1_ex() 104 } else if ((EVP_CIPHER_get_flags(cipher) & EVP_CIPH_FLAG_CUSTOM_ASN1) == 0) { in evp_cipher_param_to_asn1_ex() 105 switch (EVP_CIPHER_get_mode(cipher)) { in evp_cipher_param_to_asn1_ex() 107 if (EVP_CIPHER_is_a(cipher, SN_id_smime_alg_CMS3DESwrap)) in evp_cipher_param_to_asn1_ex() 125 } else if (cipher->prov != NULL) { in evp_cipher_param_to_asn1_ex() 175 const EVP_CIPHER *cipher in evp_cipher_asn1_to_param_ex() local 276 EVP_CIPHER_get_type(const EVP_CIPHER *cipher) EVP_CIPHER_get_type() argument 341 evp_cipher_cache_constants(EVP_CIPHER *cipher) evp_cipher_cache_constants() argument 388 EVP_CIPHER_get_block_size(const EVP_CIPHER *cipher) EVP_CIPHER_get_block_size() argument 455 EVP_CIPHER *cipher; EVP_CIPHER_CTX_get1_cipher() local 470 EVP_CIPHER_get_flags(const EVP_CIPHER *cipher) EVP_CIPHER_get_flags() argument 500 EVP_CIPHER_get_iv_length(const EVP_CIPHER *cipher) EVP_CIPHER_get_iv_length() argument 648 EVP_CIPHER_get_key_length(const EVP_CIPHER *cipher) EVP_CIPHER_get_key_length() argument 665 EVP_CIPHER_get_nid(const EVP_CIPHER *cipher) EVP_CIPHER_get_nid() argument 675 EVP_CIPHER_is_a(const EVP_CIPHER *cipher, const char *name) EVP_CIPHER_is_a() argument 684 evp_cipher_get_number(const EVP_CIPHER *cipher) evp_cipher_get_number() argument 689 EVP_CIPHER_get0_name(const EVP_CIPHER *cipher) EVP_CIPHER_get0_name() argument 700 EVP_CIPHER_get0_description(const EVP_CIPHER *cipher) EVP_CIPHER_get0_description() argument 711 EVP_CIPHER_names_do_all(const EVP_CIPHER *cipher, void (*fn)(const char *name, void *data), void *data) EVP_CIPHER_names_do_all() argument 721 EVP_CIPHER_get0_provider(const EVP_CIPHER *cipher) EVP_CIPHER_get0_provider() argument 726 EVP_CIPHER_get_mode(const EVP_CIPHER *cipher) EVP_CIPHER_get_mode() argument [all...] |
/third_party/libwebsockets/lib/tls/openssl/ |
H A D | lws-genaes.c | 62 ctx->cipher = EVP_aes_128_wrap(); in lws_genaes_create() 70 ctx->cipher = EVP_aes_128_cbc(); in lws_genaes_create() 74 ctx->cipher = EVP_aes_128_cfb128(); in lws_genaes_create() 79 ctx->cipher = EVP_aes_128_cfb8(); in lws_genaes_create() 84 ctx->cipher = EVP_aes_128_ctr(); in lws_genaes_create() 89 ctx->cipher = EVP_aes_128_ecb(); in lws_genaes_create() 94 ctx->cipher = EVP_aes_128_ofb(); in lws_genaes_create() 104 ctx->cipher = EVP_aes_128_gcm(); in lws_genaes_create() 117 ctx->cipher = EVP_aes_192_wrap(); in lws_genaes_create() 125 ctx->cipher in lws_genaes_create() [all...] |
/third_party/FreeBSD/sys/crypto/rijndael/ |
H A D | rijndael-api-fst.c | 70 int rijndael_cipherInit(cipherInstance *cipher, BYTE mode, char *IV) { in rijndael_cipherInit() argument 72 cipher->mode = mode; in rijndael_cipherInit() 77 memcpy(cipher->IV, IV, RIJNDAEL_MAX_IV_SIZE); in rijndael_cipherInit() 79 memset(cipher->IV, 0, RIJNDAEL_MAX_IV_SIZE); in rijndael_cipherInit() 84 int rijndael_blockEncrypt(cipherInstance *cipher, keyInstance *key, in rijndael_blockEncrypt() argument 89 if (cipher == NULL || in rijndael_blockEncrypt() 100 switch (cipher->mode) { in rijndael_blockEncrypt() 111 memcpy(block, cipher->IV, 16); in rijndael_blockEncrypt() 118 ((uint32_t*)block)[0] = ((uint32_t*)cipher->IV)[0] ^ ((uint32_t*)input)[0]; in rijndael_blockEncrypt() 119 ((uint32_t*)block)[1] = ((uint32_t*)cipher in rijndael_blockEncrypt() 200 rijndael_padEncrypt(cipherInstance *cipher, keyInstance *key, const BYTE *input, int inputOctets, BYTE *outBuffer) rijndael_padEncrypt() argument 264 rijndael_blockDecrypt(cipherInstance *cipher, keyInstance *key, const BYTE *input, int inputLen, BYTE *outBuffer) rijndael_blockDecrypt() argument 364 rijndael_padDecrypt(cipherInstance *cipher, keyInstance *key, const BYTE *input, int inputOctets, BYTE *outBuffer) rijndael_padDecrypt() argument [all...] |
/third_party/node/src/crypto/ |
H A D | crypto_cipher.cc | 30 bool IsSupportedAuthenticatedMode(const EVP_CIPHER* cipher) { in IsSupportedAuthenticatedMode() argument 31 switch (EVP_CIPHER_mode(cipher)) { in IsSupportedAuthenticatedMode() 39 return EVP_CIPHER_nid(cipher) == NID_chacha20_poly1305; in IsSupportedAuthenticatedMode() 46 const EVP_CIPHER* cipher = EVP_CIPHER_CTX_cipher(ctx); in IsSupportedAuthenticatedMode() local 47 return IsSupportedAuthenticatedMode(cipher); in IsSupportedAuthenticatedMode() 54 // Collects and returns information on the given cipher 62 const EVP_CIPHER* cipher; in GetCipherInfo() local 65 cipher = EVP_get_cipherbyname(*name); in GetCipherInfo() 68 cipher = EVP_get_cipherbynid(nid); in GetCipherInfo() 71 if (cipher in GetCipherInfo() 229 const SSL_CIPHER* cipher = sk_SSL_CIPHER_value(ciphers, i); GetSSLCiphers() local 367 CommonInit(const char* cipher_type, const EVP_CIPHER* cipher, const unsigned char* key, int key_len, const unsigned char* iv, int iv_len, unsigned int auth_tag_len) CommonInit() argument 419 const EVP_CIPHER* const cipher = EVP_get_cipherbyname(cipher_type); Init() local 452 CipherBase* cipher; Init() local 483 const EVP_CIPHER* const cipher = EVP_get_cipherbyname(cipher_type); Init() local 524 CipherBase* cipher; Init() local 659 CipherBase* cipher; Init() local 675 CipherBase* cipher; Init() local 775 CipherBase* cipher; Init() local 883 CipherBase* cipher; Init() local 955 CipherBase* cipher; Init() local [all...] |
/third_party/node/test/parallel/ |
H A D | test-tls-getcipher.js | 54 const cipher = this.getCipher(); 55 assert.strictEqual(cipher.name, 'AES128-SHA256'); 56 assert.strictEqual(cipher.standardName, 'TLS_RSA_WITH_AES_128_CBC_SHA256'); 57 assert.strictEqual(cipher.version, 'TLSv1.2'); 69 const cipher = this.getCipher(); 70 assert.strictEqual(cipher.name, 'ECDHE-RSA-AES128-GCM-SHA256'); 71 assert.strictEqual(cipher.standardName, 73 assert.strictEqual(cipher.version, 'TLSv1.2'); 92 const cipher = client.getCipher(); 93 assert.strictEqual(cipher [all...] |
H A D | test-crypto-authenticated.js | 213 // Trying to create cipher with incorrect IV length 281 const cipher = crypto.createCipheriv('aes-256-gcm', 286 cipher.setAAD(Buffer.from('abcd')); 287 cipher.update('01234567', 'hex'); 288 cipher.final(); 289 const tag = cipher.getAuthTag(); 444 const cipher = crypto.createCipheriv('aes-256-ccm', 453 cipher.setAAD(Buffer.from('0123456789', 'hex'), { plaintextLength }); 468 const cipher = () => crypto.createCipheriv('aes-256-ccm', key, 475 cipher() [all...] |
/third_party/node/deps/openssl/openssl/crypto/cms/ |
H A D | cms_enc.c | 31 const EVP_CIPHER *cipher = NULL; in ossl_cms_EncryptedContent_init_bio() local 44 enc = ec->cipher ? 1 : 0; in ossl_cms_EncryptedContent_init_bio() 56 cipher = ec->cipher; in ossl_cms_EncryptedContent_init_bio() 58 * If not keeping key set cipher to NULL so subsequent calls decrypt. in ossl_cms_EncryptedContent_init_bio() 61 ec->cipher = NULL; in ossl_cms_EncryptedContent_init_bio() 63 cipher = EVP_get_cipherbyobj(calg->algorithm); in ossl_cms_EncryptedContent_init_bio() 65 if (cipher != NULL) { in ossl_cms_EncryptedContent_init_bio() 66 fetched_ciph = EVP_CIPHER_fetch(libctx, EVP_CIPHER_get0_name(cipher), in ossl_cms_EncryptedContent_init_bio() 69 cipher in ossl_cms_EncryptedContent_init_bio() 207 ossl_cms_EncryptedContent_init(CMS_EncryptedContentInfo *ec, const EVP_CIPHER *cipher, const unsigned char *key, size_t keylen, const CMS_CTX *cms_ctx) ossl_cms_EncryptedContent_init() argument [all...] |
/third_party/openssl/crypto/cms/ |
H A D | cms_enc.c | 30 const EVP_CIPHER *cipher = NULL; in ossl_cms_EncryptedContent_init_bio() local 43 enc = ec->cipher ? 1 : 0; in ossl_cms_EncryptedContent_init_bio() 55 cipher = ec->cipher; in ossl_cms_EncryptedContent_init_bio() 57 * If not keeping key set cipher to NULL so subsequent calls decrypt. in ossl_cms_EncryptedContent_init_bio() 60 ec->cipher = NULL; in ossl_cms_EncryptedContent_init_bio() 62 cipher = EVP_get_cipherbyobj(calg->algorithm); in ossl_cms_EncryptedContent_init_bio() 64 if (cipher != NULL) { in ossl_cms_EncryptedContent_init_bio() 65 fetched_ciph = EVP_CIPHER_fetch(libctx, EVP_CIPHER_get0_name(cipher), in ossl_cms_EncryptedContent_init_bio() 68 cipher in ossl_cms_EncryptedContent_init_bio() 206 ossl_cms_EncryptedContent_init(CMS_EncryptedContentInfo *ec, const EVP_CIPHER *cipher, const unsigned char *key, size_t keylen, const CMS_CTX *cms_ctx) ossl_cms_EncryptedContent_init() argument [all...] |
/third_party/node/deps/openssl/openssl/crypto/engine/ |
H A D | eng_openssl.c | 67 static int openssl_ciphers(ENGINE *e, const EVP_CIPHER **cipher, 193 * we're asked for a cipher we don't support (should not happen). 196 * TEST_ENG_OPENSSL_RC4_P_CIPHER - ditto for the "cipher" handler. 234 EVP_CIPHER *cipher; in test_r4_cipher() local 236 if ((cipher = EVP_CIPHER_meth_new(NID_rc4, 1, TEST_RC4_KEY_SIZE)) == NULL in test_r4_cipher() 237 || !EVP_CIPHER_meth_set_iv_length(cipher, 0) in test_r4_cipher() 238 || !EVP_CIPHER_meth_set_flags(cipher, EVP_CIPH_VARIABLE_LENGTH) in test_r4_cipher() 239 || !EVP_CIPHER_meth_set_init(cipher, test_rc4_init_key) in test_r4_cipher() 240 || !EVP_CIPHER_meth_set_do_cipher(cipher, test_rc4_cipher) in test_r4_cipher() 241 || !EVP_CIPHER_meth_set_impl_ctx_size(cipher, sizeo in test_r4_cipher() 259 EVP_CIPHER *cipher; test_r4_40_cipher() local 286 const EVP_CIPHER *cipher; test_cipher_nids() local 298 openssl_ciphers(ENGINE *e, const EVP_CIPHER **cipher, const int **nids, int nid) openssl_ciphers() argument [all...] |
/third_party/openssl/crypto/engine/ |
H A D | eng_openssl.c | 67 static int openssl_ciphers(ENGINE *e, const EVP_CIPHER **cipher, 193 * we're asked for a cipher we don't support (should not happen). 196 * TEST_ENG_OPENSSL_RC4_P_CIPHER - ditto for the "cipher" handler. 234 EVP_CIPHER *cipher; in test_r4_cipher() local 236 if ((cipher = EVP_CIPHER_meth_new(NID_rc4, 1, TEST_RC4_KEY_SIZE)) == NULL in test_r4_cipher() 237 || !EVP_CIPHER_meth_set_iv_length(cipher, 0) in test_r4_cipher() 238 || !EVP_CIPHER_meth_set_flags(cipher, EVP_CIPH_VARIABLE_LENGTH) in test_r4_cipher() 239 || !EVP_CIPHER_meth_set_init(cipher, test_rc4_init_key) in test_r4_cipher() 240 || !EVP_CIPHER_meth_set_do_cipher(cipher, test_rc4_cipher) in test_r4_cipher() 241 || !EVP_CIPHER_meth_set_impl_ctx_size(cipher, sizeo in test_r4_cipher() 259 EVP_CIPHER *cipher; test_r4_40_cipher() local 286 const EVP_CIPHER *cipher; test_cipher_nids() local 298 openssl_ciphers(ENGINE *e, const EVP_CIPHER **cipher, const int **nids, int nid) openssl_ciphers() argument [all...] |
/third_party/node/deps/openssl/openssl/providers/implementations/kdfs/ |
H A D | krb5kdf.c | 45 static int KRB5KDF(const EVP_CIPHER *cipher, ENGINE *engine, 52 PROV_CIPHER cipher; member 89 ossl_prov_cipher_reset(&ctx->cipher); in krb5kdf_reset() 109 const EVP_CIPHER *cipher; in krb5kdf_derive() local 115 cipher = ossl_prov_cipher_cipher(&ctx->cipher); in krb5kdf_derive() 116 if (cipher == NULL) { in krb5kdf_derive() 128 engine = ossl_prov_cipher_engine(&ctx->cipher); in krb5kdf_derive() 129 return KRB5KDF(cipher, engine, ctx->key, ctx->key_len, in krb5kdf_derive() 143 if (!ossl_prov_cipher_load_from_params(&ctx->cipher, param in krb5kdf_set_ctx_params() 174 const EVP_CIPHER *cipher; krb5kdf_get_ctx_params() local 326 cipher_init(EVP_CIPHER_CTX *ctx, const EVP_CIPHER *cipher, ENGINE *engine, const unsigned char *key, size_t key_len) cipher_init() argument 355 KRB5KDF(const EVP_CIPHER *cipher, ENGINE *engine, const unsigned char *key, size_t key_len, const unsigned char *constant, size_t constant_len, unsigned char *okey, size_t okey_len) KRB5KDF() argument [all...] |
/third_party/openssl/providers/implementations/kdfs/ |
H A D | krb5kdf.c | 45 static int KRB5KDF(const EVP_CIPHER *cipher, ENGINE *engine, 52 PROV_CIPHER cipher; member 89 ossl_prov_cipher_reset(&ctx->cipher); in krb5kdf_reset() 109 const EVP_CIPHER *cipher; in krb5kdf_derive() local 115 cipher = ossl_prov_cipher_cipher(&ctx->cipher); in krb5kdf_derive() 116 if (cipher == NULL) { in krb5kdf_derive() 128 engine = ossl_prov_cipher_engine(&ctx->cipher); in krb5kdf_derive() 129 return KRB5KDF(cipher, engine, ctx->key, ctx->key_len, in krb5kdf_derive() 143 if (!ossl_prov_cipher_load_from_params(&ctx->cipher, param in krb5kdf_set_ctx_params() 174 const EVP_CIPHER *cipher; krb5kdf_get_ctx_params() local 326 cipher_init(EVP_CIPHER_CTX *ctx, const EVP_CIPHER *cipher, ENGINE *engine, const unsigned char *key, size_t key_len) cipher_init() argument 355 KRB5KDF(const EVP_CIPHER *cipher, ENGINE *engine, const unsigned char *key, size_t key_len, const unsigned char *constant, size_t constant_len, unsigned char *okey, size_t okey_len) KRB5KDF() argument [all...] |
/third_party/node/lib/internal/crypto/ |
H A D | cipher.js | 116 function createCipherBase(cipher, credential, options, decipher, iv) { 120 this[kHandle].init(cipher, credential, authTagLength); 122 this[kHandle].initiv(cipher, credential, iv, authTagLength); 129 function createCipher(cipher, password, options, decipher) { 130 validateString(cipher, 'cipher'); 133 ReflectApply(createCipherBase, this, [cipher, password, options, decipher]); 136 function createCipherWithIV(cipher, key, options, decipher, iv) { 137 validateString(cipher, 'cipher'); [all...] |
/third_party/node/deps/openssl/openssl/providers/implementations/keymgmt/ |
H A D | mac_legacy_kmgmt.c | 61 PROV_CIPHER cipher; member 100 ossl_prov_cipher_reset(&mackey->cipher); in ossl_mac_key_free() 170 || (key1->cipher.cipher == NULL && key2->cipher.cipher != NULL) in mac_match() 171 || (key1->cipher.cipher != NULL && key2->cipher.cipher in mac_match() [all...] |
/third_party/openssl/providers/implementations/keymgmt/ |
H A D | mac_legacy_kmgmt.c | 61 PROV_CIPHER cipher; member 100 ossl_prov_cipher_reset(&mackey->cipher); in ossl_mac_key_free() 170 || (key1->cipher.cipher == NULL && key2->cipher.cipher != NULL) in mac_match() 171 || (key1->cipher.cipher != NULL && key2->cipher.cipher in mac_match() [all...] |
/third_party/openssl/test/ |
H A D | afalgtest.c | 31 const EVP_CIPHER *cipher; in test_afalg_aes_cbc() local 68 cipher = EVP_aes_128_cbc(); in test_afalg_aes_cbc() 72 cipher = EVP_aes_192_cbc(); in test_afalg_aes_cbc() 76 cipher = EVP_aes_256_cbc(); in test_afalg_aes_cbc() 80 cipher = NULL; in test_afalg_aes_cbc() 85 if (!TEST_true(EVP_CipherInit_ex(ctx, cipher, e, key, iv, 1)) in test_afalg_aes_cbc() 95 || !TEST_true(EVP_CipherInit_ex(ctx, cipher, e, key, iv, 0)) in test_afalg_aes_cbc() 115 const EVP_CIPHER * cipher; in test_pr16743() local 120 cipher = ENGINE_get_cipher(e, NID_aes_128_cbc); in test_pr16743() 122 if (cipher ! in test_pr16743() [all...] |
/third_party/node/deps/openssl/openssl/apps/ |
H A D | enc.c | 106 {"", OPT_CIPHER, '-', "Any supported cipher"}, 121 EVP_CIPHER *cipher = NULL; in enc_main() local 287 cipher = NULL; in enc_main() 307 /* Get the cipher name, either from progname (if set) or flag. */ in enc_main() 309 if (!opt_cipher(ciphername, &cipher)) in enc_main() 357 if ((str == NULL) && (cipher != NULL) && (hkey == NULL)) { in enc_main() 364 EVP_CIPHER_get0_name(cipher), in enc_main() 432 if (cipher != NULL) { in enc_main() 496 int iklen = EVP_CIPHER_get_key_length(cipher); in enc_main() 497 int ivlen = EVP_CIPHER_get_iv_length(cipher); in enc_main() 660 const EVP_CIPHER *cipher; show_ciphers() local [all...] |
/third_party/openssl/apps/ |
H A D | enc.c | 106 {"", OPT_CIPHER, '-', "Any supported cipher"}, 121 EVP_CIPHER *cipher = NULL; in enc_main() local 287 cipher = NULL; in enc_main() 307 /* Get the cipher name, either from progname (if set) or flag. */ in enc_main() 309 if (!opt_cipher(ciphername, &cipher)) in enc_main() 357 if ((str == NULL) && (cipher != NULL) && (hkey == NULL)) { in enc_main() 364 EVP_CIPHER_get0_name(cipher), in enc_main() 432 if (cipher != NULL) { in enc_main() 496 int iklen = EVP_CIPHER_get_key_length(cipher); in enc_main() 497 int ivlen = EVP_CIPHER_get_iv_length(cipher); in enc_main() 657 const EVP_CIPHER *cipher; show_ciphers() local [all...] |