Home
last modified time | relevance | path

Searched refs:cipher (Results 1 – 25 of 40) sorted by relevance

12

/AliOS-Things-master/components/oss/src/encryption/
A DEncryptionMaterials.cc55 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 DCipherOpenssl.cc27 SymmetricCipherOpenssl::SymmetricCipherOpenssl(const EVP_CIPHER* cipher, CipherAlgorithm algo, Ciph… in SymmetricCipherOpenssl() argument
31 cipher_(cipher) in SymmetricCipherOpenssl()
A DCipherOpenssl.h29 …SymmetricCipherOpenssl(const EVP_CIPHER* cipher, CipherAlgorithm algo, CipherMode mode, CipherPadd…
A DCryptoStreamBuf.cc25 const std::shared_ptr<SymmetricCipher>& cipher, in CryptoStreamBuf() argument
29 cipher_(cipher), in CryptoStreamBuf()
A DCryptoStreamBuf.h31 const std::shared_ptr<SymmetricCipher>& cipher,
/AliOS-Things-master/hardware/chip/rtl872xd/sdk/component/common/drivers/wlan/realtek/include/
A Drom_aes.h32 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 Dawss_crypt.c40 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 Dawss_crypt.h17 int aes_decrypt_string(char *cipher, char *plain, int len, int cipher_hex,
/AliOS-Things-master/components/linkkit/wifi_provision/zero_config/
A Dawss_registrar.c242 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 Dgenie_crypto.c106 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 Dgenie_ais.c292 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 Dgcm.c167 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 Dnist_kw.c114 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 Dssl_ticket.c120 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 Dccm.c73 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 Dgenie_crypto.h34 void genie_ais_get_cipher(const uint8_t random[16], uint8_t *cipher);
A Dgenie_ais.h60 uint8_t cipher[16]; member
/AliOS-Things-master/components/mbedtls/include/mbedtls/
A Dssl_ticket.h108 mbedtls_cipher_type_t cipher,
A Dnist_kw.h98 mbedtls_cipher_id_t cipher,
A Dccm.h105 mbedtls_cipher_id_t cipher,
A Dcipher_internal.h47 mbedtls_cipher_id_t cipher; member
A Dgcm.h109 mbedtls_cipher_id_t cipher,
A Dconfig.h.bak612 * 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 Dzconfig_ieee80211.c408 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 Drtl8721dhp_crypto_ram.c864 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()

Completed in 30 milliseconds

12