/third_party/mindspore/include/api/ |
D | serialization.h | 44 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 …]
|
D | model.h | 194 const std::string &dec_mode = kDecModeAesGcm); 208 const std::string &dec_mode = kDecModeAesGcm);
|
/third_party/mindspore/mindspore/core/load_mindir/ |
D | load_model.cc | 130 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(¶m_graph, files[file_index], dec_key, key_len, dec_mode)) { in LoadMindIR()
|
D | load_model.h | 28 … 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/ |
D | serialization.cc | 41 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/ |
D | serialization.cc | 104 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/ |
D | crypto.h | 32 size_t key_len, const std::string &dec_mode); 34 size_t key_len, const std::string &dec_mode);
|
D | crypto.cc | 77 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/ |
D | serialization.py | 361 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/ |
D | libopencore-amr.c | 103 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()
|
D | g723_1dec.c | 934 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/ |
D | pipeline.h | 163 …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);
|
D | pipeline.cc | 1359 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/ |
D | model.cc | 32 … 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/ |
D | converter_flags.h | 89 std::string dec_mode = "AES-GCM"; variable
|
D | converter_flags.cc | 72 AddFlag(&Flags::dec_mode, "decryptMode", in Flags()
|
/third_party/mindspore/tests/ut/python/utils/ |
D | test_serialize.py | 343 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/ |
D | mindspore_importer.cc | 203 func_graph = LoadMindIR(flag.modelFile, false, key, key_len, flag.dec_mode); in ImportMindIR()
|