/third_party/openssl/crypto/engine/ |
D | eng_devcrypto.c | 76 } cipher_data[] = { variable 126 for (i = 0; i < OSSL_NELEM(cipher_data); i++) in get_cipher_data_index() 127 if (nid == cipher_data[i].nid) in get_cipher_data_index() 141 return &cipher_data[get_cipher_data_index(nid)]; in get_cipher_data() 340 static int known_cipher_nids[OSSL_NELEM(cipher_data)]; 342 static EVP_CIPHER *known_cipher_methods[OSSL_NELEM(cipher_data)] = { NULL, }; 354 i < OSSL_NELEM(cipher_data); i++) { in prepare_cipher_methods() 360 sess.cipher = cipher_data[i].devcryptoid; in prepare_cipher_methods() 361 sess.keylen = cipher_data[i].keylen; in prepare_cipher_methods() 366 cipher_mode = cipher_data[i].flags & EVP_CIPH_MODE; in prepare_cipher_methods() [all …]
|
/third_party/openssl/crypto/evp/ |
D | evp_enc.c | 30 if (c->cipher_data && c->cipher->ctx_size) in EVP_CIPHER_CTX_reset() 31 OPENSSL_cleanse(c->cipher_data, c->cipher->ctx_size); in EVP_CIPHER_CTX_reset() 33 OPENSSL_free(c->cipher_data); in EVP_CIPHER_CTX_reset() 92 || ctx->cipher_data) { in EVP_CipherInit_ex() 129 ctx->cipher_data = OPENSSL_zalloc(ctx->cipher->ctx_size); in EVP_CipherInit_ex() 130 if (ctx->cipher_data == NULL) { in EVP_CipherInit_ex() 136 ctx->cipher_data = NULL; in EVP_CipherInit_ex() 700 if (in->cipher_data && in->cipher->ctx_size) { in EVP_CIPHER_CTX_copy() 701 out->cipher_data = OPENSSL_malloc(in->cipher->ctx_size); in EVP_CIPHER_CTX_copy() 702 if (out->cipher_data == NULL) { in EVP_CIPHER_CTX_copy() [all …]
|
D | evp_lib.c | 225 return ctx->cipher_data; in EVP_CIPHER_CTX_get_cipher_data() 228 void *EVP_CIPHER_CTX_set_cipher_data(EVP_CIPHER_CTX *ctx, void *cipher_data) in EVP_CIPHER_CTX_set_cipher_data() argument 232 old_cipher_data = ctx->cipher_data; in EVP_CIPHER_CTX_set_cipher_data() 233 ctx->cipher_data = cipher_data; in EVP_CIPHER_CTX_set_cipher_data()
|
D | e_chacha20_poly1305.c | 31 #define data(ctx) ((EVP_CHACHA_KEY *)(ctx)->cipher_data) 162 # define aead_data(ctx) ((EVP_CHACHA_AEAD_CTX *)(ctx)->cipher_data) 496 OPENSSL_cleanse(ctx->cipher_data, sizeof(*actx) + Poly1305_ctx_size()); in chacha20_poly1305_cleanup() 508 actx = ctx->cipher_data in chacha20_poly1305_ctrl() 528 dst->cipher_data = in chacha20_poly1305_ctrl() 530 if (dst->cipher_data == NULL) { in chacha20_poly1305_ctrl()
|
D | evp_local.h | 38 void *cipher_data; /* per EVP data */ member
|
/third_party/mindspore/mindspore/core/utils/ |
D | crypto.cc | 91 std::vector<Byte> *cipher_data) { in ParseEncryptData() argument 107 (*cipher_data) in ParseEncryptData() 279 std::vector<Byte> cipher_data; in BlockDecrypt() local 280 if (!ParseEncryptData(encrypt_data, encrypt_len, &iv, &cipher_data)) { in BlockDecrypt() 289 …EVP_DecryptUpdate(ctx, plain_data, plain_len, cipher_data.data(), static_cast<int32_t>(cipher_data… in BlockDecrypt()
|
/third_party/openssl/test/ |
D | bftest.c | 124 static unsigned char cipher_data[NUM_TESTS][8] = { variable 241 printf("%02X", cipher_data[i][j]); in print_test_data() 322 if (!TEST_mem_eq(&(cipher_data[n][0]), BF_BLOCK, out, BF_BLOCK)) in test_bf_ecb()
|
D | destest.c | 100 static unsigned char cipher_data[NUM_TESTS][8] = { variable 314 if (!TEST_mem_eq(out, 8, cipher_data[i], 8)) { in test_des_ecb()
|
/third_party/openssl/ssl/ |
D | ssl_asn1.c | 110 unsigned char cipher_data[2]; in i2d_SSL_SESSION() local 141 cipher_data[0] = ((unsigned char)(l >> 8L)) & 0xff; in i2d_SSL_SESSION() 142 cipher_data[1] = ((unsigned char)(l)) & 0xff; in i2d_SSL_SESSION() 144 ssl_session_oinit(&as.cipher, &cipher, cipher_data, 2); in i2d_SSL_SESSION()
|
/third_party/openssl/engines/ |
D | e_dasync.c | 640 void *cipher_data = OPENSSL_malloc(data_size); in dasync_cipher_ctrl_helper() local 642 if (cipher_data == NULL) in dasync_cipher_ctrl_helper() 644 memcpy(cipher_data, pipe_ctx->inner_cipher_data, data_size); in dasync_cipher_ctrl_helper() 645 pipe_ctx->inner_cipher_data = cipher_data; in dasync_cipher_ctrl_helper()
|
/third_party/openssl/doc/man3/ |
D | EVP_CIPHER_CTX_get_cipher_data.pod | 13 void *EVP_CIPHER_CTX_set_cipher_data(EVP_CIPHER_CTX *ctx, void *cipher_data);
|
/third_party/mindspore/mindspore/train/ |
D | serialization.py | 156 cipher_data = bytes(0) 182 … cipher_data += _encrypt(plain_data[0: max_block_size], max_block_size, enc_key, 188 … cipher_data += _encrypt(plain_data, len(plain_data), enc_key, len(enc_key), enc_mode) 189 f.write(cipher_data)
|
/third_party/openssl/include/openssl/ |
D | evp.h | 489 void *EVP_CIPHER_CTX_set_cipher_data(EVP_CIPHER_CTX *ctx, void *cipher_data);
|