Home
last modified time | relevance | path

Searched refs:cipher_data (Results 1 – 13 of 13) sorted by relevance

/third_party/openssl/crypto/engine/
Deng_devcrypto.c76 } 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/
Devp_enc.c30 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 …]
Devp_lib.c225 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()
De_chacha20_poly1305.c31 #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()
Devp_local.h38 void *cipher_data; /* per EVP data */ member
/third_party/mindspore/mindspore/core/utils/
Dcrypto.cc91 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/
Dbftest.c124 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()
Ddestest.c100 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/
Dssl_asn1.c110 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/
De_dasync.c640 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/
DEVP_CIPHER_CTX_get_cipher_data.pod13 void *EVP_CIPHER_CTX_set_cipher_data(EVP_CIPHER_CTX *ctx, void *cipher_data);
/third_party/mindspore/mindspore/train/
Dserialization.py156 cipher_data = bytes(0)
182cipher_data += _encrypt(plain_data[0: max_block_size], max_block_size, enc_key,
188cipher_data += _encrypt(plain_data, len(plain_data), enc_key, len(enc_key), enc_mode)
189 f.write(cipher_data)
/third_party/openssl/include/openssl/
Devp.h489 void *EVP_CIPHER_CTX_set_cipher_data(EVP_CIPHER_CTX *ctx, void *cipher_data);