Home
last modified time | relevance | path

Searched refs:enc_key (Results 1 – 16 of 16) sorted by relevance

/third_party/nghttp2/src/
Dshrpx_config_test.cc186 CU_ASSERT(std::equal(std::begin(key->data.enc_key), in test_shrpx_config_read_tls_ticket_key_file()
187 std::begin(key->data.enc_key) + 16, "2..............3")); in test_shrpx_config_read_tls_ticket_key_file()
196 CU_ASSERT(std::equal(std::begin(key->data.enc_key), in test_shrpx_config_read_tls_ticket_key_file()
197 std::begin(key->data.enc_key) + 16, "8..............9")); in test_shrpx_config_read_tls_ticket_key_file()
231 CU_ASSERT(std::equal(std::begin(key->data.enc_key), in test_shrpx_config_read_tls_ticket_key_file_aes_256()
232 std::end(key->data.enc_key), in test_shrpx_config_read_tls_ticket_key_file_aes_256()
241 CU_ASSERT(std::equal(std::begin(key->data.enc_key), in test_shrpx_config_read_tls_ticket_key_file_aes_256()
242 std::end(key->data.enc_key), in test_shrpx_config_read_tls_ticket_key_file_aes_256()
Dshrpx_worker_process.cc188 ticket_key.data.enc_key.size()); in generate_ticket_key()
357 std::copy_n(p, enc_keylen, std::begin(key.data.enc_key)); in memcached_get_ticket_key_cb()
Dshrpx_tls.cc509 key.data.enc_key.data(), iv); in ticket_key_cb()
540 EVP_DecryptInit_ex(ctx, key.cipher, nullptr, key.data.enc_key.data(), iv); in ticket_key_cb()
Dshrpx_config.h537 std::array<uint8_t, 32> enc_key; member
Dshrpx_config.cc222 std::copy_n(p, enc_keylen, std::begin(key.data.enc_key)); in read_tls_ticket_key_file()
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/src/common/
Ddpp_backup.c267 struct wpabuf *pwri = NULL, *enc_key = NULL, *key_der_alg = NULL, in dpp_build_pw_recipient_info() local
295 enc_key = wpabuf_alloc(hash_len + AES_BLOCK_SIZE); in dpp_build_pw_recipient_info()
296 if (!enc_key || in dpp_build_pw_recipient_info()
299 wpabuf_put(enc_key, hash_len + AES_BLOCK_SIZE)) < 0) in dpp_build_pw_recipient_info()
301 wpa_hexdump_buf(MSG_DEBUG, "DPP: encryptedKey", enc_key); in dpp_build_pw_recipient_info()
319 wpabuf_len(key_enc_alg) + wpabuf_len(enc_key)); in dpp_build_pw_recipient_info()
335 asn1_put_octet_string(pwri, enc_key); in dpp_build_pw_recipient_info()
340 wpabuf_free(enc_key); in dpp_build_pw_recipient_info()
527 const u8 *enc_key; member
721 data->enc_key = hdr.payload; in dpp_parse_recipient_infos()
[all …]
/third_party/mindspore/mindspore/train/
Dserialization.py147 def _exec_save(ckpt_file_name, data_list, enc_key=None, enc_mode="AES-GCM"): argument
154 if enc_key is not None:
175 if enc_key is None:
182 … cipher_data += _encrypt(plain_data[0: max_block_size], max_block_size, enc_key,
183 len(enc_key), enc_mode)
186 if enc_key is not None:
188 … cipher_data += _encrypt(plain_data, len(plain_data), enc_key, len(enc_key), enc_mode)
199 async_save=False, append_dict=None, enc_key=None, enc_mode="AES-GCM"): argument
234 enc_key = Validator.check_isinstance('enc_key', enc_key, (type(None), bytes))
285 …thr = Thread(target=_exec_save, args=(ckpt_file_name, data_list, enc_key, enc_mode), name="asyn_sa…
[all …]
/third_party/mindspore/mindspore/train/callback/
D_checkpoint.py146 enc_key=None, argument
184 self._enc_key = Validator.check_isinstance('enc_key', enc_key, (type(None), bytes))
223 def enc_key(self): member in CheckpointConfig
437 self._append_dict, self._config.enc_key, self._config.enc_mode)
/third_party/mindspore/tests/ut/python/utils/
Dtest_serialize.py342 save_checkpoint(train_network, ckpt_file_name=ckpt_path, enc_key=key, enc_mode=mode)
346 save_checkpoint(train_network, ckpt_file_name=ckpt_path, enc_key=key, enc_mode=mode)
393 …t(net, input_data, file_name="./me_cipher_binary_export.mindir", file_format="MINDIR", enc_key=key)
Dtest_callback.py258 enc_key=secrets.token_bytes(16),
/third_party/openssl/crypto/pkcs7/
Dpk7_doit.c127 ASN1_STRING_set0(ri->enc_key, ek, eklen); in pkcs7_encode_rinfo()
163 ri->enc_key->data, ri->enc_key->length) <= 0) in pkcs7_decrypt_rinfo()
174 ri->enc_key->data, ri->enc_key->length) <= 0 in pkcs7_decrypt_rinfo()
Dpk7_asn1.c140 ASN1_SIMPLE(PKCS7_RECIP_INFO, enc_key, ASN1_OCTET_STRING)
/third_party/openssl/test/
Dbad_dtls_test.c59 #define enc_key (key_block + 56) macro
325 EVP_CipherInit_ex(enc_ctx, EVP_aes_128_cbc(), NULL, enc_key, iv, 1); in send_record()
/third_party/openssl/include/openssl/
Dpkcs7.h55 ASN1_OCTET_STRING *enc_key; member
Devp.h986 const unsigned char *enc_key, int enc_key_len,
988 int EVP_PKEY_encrypt_old(unsigned char *enc_key,
/third_party/python/Doc/library/
Dhashlib.rst650 >>> enc_key = blake2s(key=orig_key, person=b'kEncrypt').digest()
652 >>> print(b64encode(enc_key).decode('utf-8'))