Home
last modified time | relevance | path

Searched refs:dec_mode (Results 1 – 18 of 18) sorted by relevance

/third_party/mindspore/include/api/
Dserialization.h44 const Key &dec_key = {}, const std::string &dec_mode = kDecModeAesGcm);
56 const std::string &dec_mode = kDecModeAesGcm);
68 const Key &dec_key = {}, const std::string &dec_mode = kDecModeAesGcm);
77 const std::vector<char> &dec_mode);
80 const std::vector<char> &dec_mode);
82 const Key &dec_key, const std::vector<char> &dec_mode);
86 const Key &dec_key, const std::string &dec_mode) { in Load() argument
87 return Load(model_data, data_size, model_type, graph, dec_key, StringToChar(dec_mode)); in Load()
91 const std::string &dec_mode) { in Load() argument
92 return Load(StringToChar(file), model_type, graph, dec_key, StringToChar(dec_mode)); in Load()
[all …]
Dmodel.h194 const std::string &dec_mode = kDecModeAesGcm);
208 const std::string &dec_mode = kDecModeAesGcm);
/third_party/mindspore/mindspore/core/load_mindir/
Dload_model.cc130 const size_t key_len, const std::string &dec_mode) { in ParseModelProto() argument
133 auto plain_data = Decrypt(&plain_len, path, dec_key, key_len, dec_mode); in ParseModelProto()
153 const size_t key_len, const std::string &dec_mode) { in ParseGraphProto() argument
156 auto plain_data = Decrypt(&plain_len, path, dec_key, key_len, dec_mode); in ParseGraphProto()
204 const std::string &dec_mode) { in LoadMindIRs() argument
208 funcgraph_vec.push_back(LoadMindIR(file_name, is_lite, dec_key, key_len, dec_mode, true)); in LoadMindIRs()
214 … const size_t key_len, const std::string &dec_mode, bool inc_load) { in LoadMindIR() argument
231 if (!ParseModelProto(&origin_model, std::string(abs_path_buff), dec_key, key_len, dec_mode)) { in LoadMindIR()
259 if (!ParseGraphProto(&param_graph, files[file_index], dec_key, key_len, dec_mode)) { in LoadMindIR()
Dload_model.h28 … const std::string &dec_mode = std::string("AES-GCM"), bool inc_load = false);
31 … const std::string &dec_mode = std::string("AES-GCM"));
/third_party/mindspore/mindspore/lite/src/cxx_api/
Dserialization.cc41 const Key &dec_key, const std::vector<char> &dec_mode) { in Load() argument
42 if (dec_key.len != 0 || CharToString(dec_mode) != kDecModeAesGcm) { in Load()
75 const std::vector<char> &dec_mode) { in Load() argument
76 if (dec_key.len != 0 || CharToString(dec_mode) != kDecModeAesGcm) { in Load()
110 … std::vector<Graph> *graphs, const Key &dec_key, const std::vector<char> &dec_mode) { in Load() argument
/third_party/mindspore/mindspore/ccsrc/cxx_api/
Dserialization.cc104 const Key &dec_key, const std::vector<char> &dec_mode) { in Load() argument
130 … data_size, dec_key.key, dec_key.len, CharToString(dec_mode)); in Load()
161 const std::vector<char> &dec_mode) { in Load() argument
187 …R(file_path, false, dec_key.len == 0 ? nullptr : dec_key.key, dec_key.len, CharToString(dec_mode)); in Load()
240 … std::vector<Graph> *graphs, const Key &dec_key, const std::vector<char> &dec_mode) { in Load() argument
249 auto ret = Load(files[0], model_type, &result[0], dec_key, dec_mode); in Load()
272 …(files_path, false, dec_key.len == 0 ? nullptr : dec_key.key, dec_key.len, CharToString(dec_mode)); in Load()
/third_party/mindspore/mindspore/core/utils/
Dcrypto.h32 size_t key_len, const std::string &dec_mode);
34 size_t key_len, const std::string &dec_mode);
Dcrypto.cc77 size_t key_len, const std::string &dec_mode) { in Decrypt() argument
84 size_t key_len, const std::string &dec_mode) { in Decrypt() argument
272 int32_t key_len, const std::string &dec_mode) { in BlockDecrypt() argument
275 if (!ParseMode(dec_mode, &alg_mode, &work_mode)) { in BlockDecrypt()
350 size_t key_len, const std::string &dec_mode) { in Decrypt() argument
385 … static_cast<size_t>(block_size), key, static_cast<int32_t>(key_len), dec_mode))) { in Decrypt()
402 size_t key_len, const std::string &dec_mode) { in Decrypt() argument
433 block_buf.size(), key, static_cast<int32_t>(key_len), dec_mode))) { in Decrypt()
/third_party/mindspore/mindspore/train/
Dserialization.py361 dec_mode = 'AES-GCM'
363 dec_mode = Validator.check_isinstance('dec_mode', kwargs['dec_mode'], str)
364 graph = load_mindir(file_name, dec_key=dec_key, key_len=len(dec_key), dec_mode=dec_mode)
376 …ckpt_file_name, net=None, strict_load=False, filter_prefix=None, dec_key=None, dec_mode="AES-GCM"): argument
410 dec_mode = Validator.check_isinstance('dec_mode', dec_mode, str)
419 pb_content = _decrypt(ckpt_file_name, dec_key, len(dec_key), dec_mode)
1309 … train_strategy_filename=None, strict_load=False, dec_key=None, dec_mode='AES-GCM'): argument
1341 dec_mode = Validator.check_isinstance('dec_mode', dec_mode, str)
1361 ckpt_dict = load_checkpoint(file_name, dec_key=dec_key, dec_mode=dec_mode)
/third_party/ffmpeg/libavcodec/
Dlibopencore-amr.c103 enum Mode dec_mode; in amr_nb_decode_frame() local
114 dec_mode = (buf[0] >> 3) & 0x000F; in amr_nb_decode_frame()
115 packet_size = block_size[dec_mode] + 1; in amr_nb_decode_frame()
Dg723_1dec.c934 int dec_mode = buf[0] & 3; in g723_1_decode_frame() local
943 if (buf_size < frame_size[dec_mode] * avctx->channels) { in g723_1_decode_frame()
947 frame_size[dec_mode], buf_size); in g723_1_decode_frame()
1093 return frame_size[dec_mode] * avctx->channels; in g723_1_decode_frame()
/third_party/mindspore/mindspore/ccsrc/pipeline/jit/
Dpipeline.h163 …IR(const std::string &file_name, char *dec_key, const size_t key_len, const std::string &dec_mode);
178 …rypt(const std::string &encrypt_data_path, char *key, size_t key_len, const std::string &dec_mode);
Dpipeline.cc1359 const std::string &dec_mode) { in LoadMindIR() argument
1361 …spore::LoadMindIR(file_name, false, reinterpret_cast<unsigned char *>(dec_key), key_len, dec_mode); in LoadMindIR()
1496 …ypt(const std::string &encrypt_data_path, char *key, size_t key_len, const std::string &dec_mode) { in PyDecrypt() argument
1499 …dspore::Decrypt(&decrypt_len, encrypt_data_path, reinterpret_cast<Byte *>(key), key_len, dec_mode); in PyDecrypt()
/third_party/mindspore/mindspore/lite/src/cxx_api/model/
Dmodel.cc32 … const std::shared_ptr<Context> &model_context, const Key &dec_key, const std::string &dec_mode) { in Build() argument
50 const Key &dec_key, const std::string &dec_mode) { in Build() argument
/third_party/mindspore/mindspore/lite/tools/converter/
Dconverter_flags.h89 std::string dec_mode = "AES-GCM"; variable
Dconverter_flags.cc72 AddFlag(&Flags::dec_mode, "decryptMode", in Flags()
/third_party/mindspore/tests/ut/python/utils/
Dtest_serialize.py343 param_dict = load_checkpoint(ckpt_path, dec_key=key, dec_mode="AES-GCM")
347 param_dict = load_checkpoint(ckpt_path, dec_key=key, dec_mode="AES-GCM")
/third_party/mindspore/mindspore/lite/tools/converter/import/
Dmindspore_importer.cc203 func_graph = LoadMindIR(flag.modelFile, false, key, key_len, flag.dec_mode); in ImportMindIR()