/AliOS-Things-master/components/oss/src/encryption/ |
A D | EncryptionMaterials.cc | 55 auto cipher = AsymmetricCipher::CreateRSA_NONEImpl(); in EncryptCEK() local 56 cipher->setPublicKey(publicKey_); in EncryptCEK() 58 auto encrptedKey = cipher->Encrypt(contentCryptoMaterial.ContentKey()); in EncryptCEK() 59 auto encrptedKeyIV = cipher->Encrypt(contentCryptoMaterial.ContentIV()); in EncryptCEK() 66 contentCryptoMaterial.setKeyWrapAlgorithm(cipher->Name()); in EncryptCEK() 75 auto cipher = AsymmetricCipher::CreateRSA_NONEImpl(); in DecryptCEK() local 78 auto cipherName = ToLower(cipher->Name().c_str()); in DecryptCEK() 90 cipher->setPrivateKey(privateKey); in DecryptCEK() 92 auto key = cipher->Decrypt(contentCryptoMaterial.EncryptedContentKey()); in DecryptCEK() 93 auto iv = cipher->Decrypt(contentCryptoMaterial.EncryptedContentIV()); in DecryptCEK()
|
A D | CipherOpenssl.cc | 27 SymmetricCipherOpenssl::SymmetricCipherOpenssl(const EVP_CIPHER* cipher, CipherAlgorithm algo, Ciph… in SymmetricCipherOpenssl() argument 31 cipher_(cipher) in SymmetricCipherOpenssl()
|
A D | CipherOpenssl.h | 29 …SymmetricCipherOpenssl(const EVP_CIPHER* cipher, CipherAlgorithm algo, CipherMode mode, CipherPadd…
|
A D | CryptoStreamBuf.cc | 25 const std::shared_ptr<SymmetricCipher>& cipher, in CryptoStreamBuf() argument 29 cipher_(cipher), in CryptoStreamBuf()
|
A D | CryptoStreamBuf.h | 31 const std::shared_ptr<SymmetricCipher>& cipher,
|
/AliOS-Things-master/hardware/chip/rtl872xd/sdk/component/common/drivers/wlan/realtek/include/ |
A D | rom_aes.h | 32 unsigned char *cipher, unsigned short *cipher_len); 34 void AES_UnWRAP(unsigned char * cipher, int cipher_len,
|
/AliOS-Things-master/components/linkkit/wifi_provision/frameworks/utils/ |
A D | awss_crypt.c | 40 int aes_decrypt_string(char *cipher, char *plain, int len, int cipher_hex, in aes_decrypt_string() argument 57 utils_str_to_hex(cipher, len, decoded, len); in aes_decrypt_string() 62 memcpy(decoded, cipher, len); in aes_decrypt_string()
|
A D | awss_crypt.h | 17 int aes_decrypt_string(char *cipher, char *plain, int len, int cipher_hex,
|
/AliOS-Things-master/components/linkkit/wifi_provision/zero_config/ |
A D | awss_registrar.c | 242 char *cipher) in enrollee_enable_somebody_cipher() argument 267 utils_str_to_hex(cipher, strlen(cipher), key_byte, MAX_KEY_LEN); in enrollee_enable_somebody_cipher() 396 cipher = awss_zalloc(RANDOM_MAX_LEN * 2 + 1); in awss_get_cipher_reply() 399 if (!dev_name || !key || !cipher) { in awss_get_cipher_reply() 412 cipher, NULL) < 0) { in awss_get_cipher_reply() 416 enrollee_enable_somebody_cipher(key, dev_name, cipher); in awss_get_cipher_reply() 419 HAL_Free(cipher); in awss_get_cipher_reply() 427 if (cipher) { in awss_get_cipher_reply() 428 HAL_Free(cipher); in awss_get_cipher_reply() 573 if (elem && cipher && len <= RANDOM_MAX_LEN * 2) { in awss_enrollee_get_dev_info() [all …]
|
/AliOS-Things-master/components/genie_service/core/src/ |
A D | genie_crypto.c | 106 void genie_ais_get_cipher(const uint8_t random[16], uint8_t *cipher) in genie_ais_get_cipher() argument 147 genie_crypto_encrypt(random, cipher); in genie_ais_get_cipher() 149 BT_DBG("cipher: %s", bt_hex((char *)cipher, 16)); in genie_ais_get_cipher()
|
A D | genie_ais.c | 292 uint8_t cipher[16]; in _ais_scrt_random() local 295 genie_ais_get_cipher(p_scrt_random->random, cipher); in _ais_scrt_random() 296 _ais_server_indicate(msg_id, AIS_SCRT_CIPHER, cipher, 16); in _ais_scrt_random()
|
/AliOS-Things-master/components/mbedtls/library/ |
A D | gcm.c | 167 mbedtls_cipher_id_t cipher, in mbedtls_gcm_setkey() argument 178 cipher_info = mbedtls_cipher_info_from_values( cipher, keybits, MBEDTLS_MODE_ECB ); in mbedtls_gcm_setkey() 786 mbedtls_cipher_id_t cipher = MBEDTLS_CIPHER_ID_AES; in mbedtls_gcm_self_test() local 800 ret = mbedtls_gcm_setkey( &ctx, cipher, key[key_index[i]], in mbedtls_gcm_self_test() 843 ret = mbedtls_gcm_setkey( &ctx, cipher, key[key_index[i]], in mbedtls_gcm_self_test() 875 ret = mbedtls_gcm_setkey( &ctx, cipher, key[key_index[i]], in mbedtls_gcm_self_test() 927 ret = mbedtls_gcm_setkey( &ctx, cipher, key[key_index[i]], in mbedtls_gcm_self_test()
|
A D | nist_kw.c | 114 mbedtls_cipher_id_t cipher, in mbedtls_nist_kw_setkey() argument 122 cipher_info = mbedtls_cipher_info_from_values( cipher, in mbedtls_nist_kw_setkey() 140 if( cipher != MBEDTLS_CIPHER_ID_AES ) in mbedtls_nist_kw_setkey()
|
A D | ssl_ticket.c | 120 mbedtls_cipher_type_t cipher, in mbedtls_ssl_ticket_setup() argument 131 cipher_info = mbedtls_cipher_info_from_type( cipher); in mbedtls_ssl_ticket_setup()
|
A D | ccm.c | 73 mbedtls_cipher_id_t cipher, in mbedtls_ccm_setkey() argument 83 cipher_info = mbedtls_cipher_info_from_values( cipher, keybits, MBEDTLS_MODE_ECB ); in mbedtls_ccm_setkey()
|
/AliOS-Things-master/components/genie_service/core/inc/ |
A D | genie_crypto.h | 34 void genie_ais_get_cipher(const uint8_t random[16], uint8_t *cipher);
|
A D | genie_ais.h | 60 uint8_t cipher[16]; member
|
/AliOS-Things-master/components/mbedtls/include/mbedtls/ |
A D | ssl_ticket.h | 108 mbedtls_cipher_type_t cipher,
|
A D | nist_kw.h | 98 mbedtls_cipher_id_t cipher,
|
A D | ccm.h | 105 mbedtls_cipher_id_t cipher,
|
A D | cipher_internal.h | 47 mbedtls_cipher_id_t cipher; member
|
A D | gcm.h | 109 mbedtls_cipher_id_t cipher,
|
A D | config.h.bak | 612 * Enable NULL cipher. 646 * specific padding modes in the cipher layer with cipher modes that support 1749 * Enable the AES block cipher. 1752 * Caller: library/cipher.c 1827 * Caller: library/cipher.c 1921 * Caller: library/cipher.c 1973 * Enable the ARIA block cipher. 1976 * Caller: library/cipher.c 2073 * Module: library/cipher.c 2126 * Enable the DES block cipher. [all …]
|
/AliOS-Things-master/components/linkkit/wifi_provision/frameworks/ieee80211/ |
A D | zconfig_ieee80211.c | 408 static uint8_t map_cipher_to_encry(uint8_t cipher) in map_cipher_to_encry() argument 410 switch (cipher) { in map_cipher_to_encry() 423 awss_warn("unknow cipher type: %x\r\n", cipher); in map_cipher_to_encry()
|
/AliOS-Things-master/hardware/chip/rtl872xd/sdk/component/soc/realtek/amebad/fwlib/crypto/ |
A D | rtl8721dhp_crypto_ram.c | 864 dst_cipher_desc.cipher.ws = 1; in CRYPTO_ProcessAD() 865 dst_cipher_desc.cipher.fs = 1; in CRYPTO_ProcessAD() 866 dst_cipher_desc.cipher.enc = 1; in CRYPTO_ProcessAD() 867 dst_cipher_desc.cipher.enl = pIE->enl; in CRYPTO_ProcessAD() 869 dst_cipher_desc.cipher.ls = 1; in CRYPTO_ProcessAD()
|