Home
last modified time | relevance | path

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

/btstack/test/mesh/
H A Dmesh_crypto.py21 cipher = AES.new(key, AES.MODE_ECB)
22 ciphertext = cipher.encrypt(n)
31 cipher = AES.new(key, AES.MODE_CCM, nonce=nonce, mac_len=mac_len)
32 cipher.update(additional_data)
33 ciphertext, tag = cipher.encrypt_and_digest(message)
37 cipher = AES.new(key, AES.MODE_CCM, nonce=nonce, mac_len=mac_len)
38 cipher.update(additional_data)
40 ciphertext = cipher.decrypt_and_verify(message, mac_tag)
H A Dsimulator.py217 cipher = AES.new(key)
218 result = cipher.encrypt(data)
/btstack/test/crypto/
H A Daes_ccm.c20 static int bt_encrypt_be(const uint8_t * key, const uint8_t * plain, uint8_t * cipher) { in bt_encrypt_be() argument
21 aes128_calc_cyphertext(key, plain, cipher); in bt_encrypt_be()
/btstack/3rd-party/lwip/core/src/netif/ppp/
H A Deap.c647 u_char clear[8], cipher[8], dig[SHA_DIGESTSIZE], *optr, *cp; in eap_send_request() local
788 if (!DesEncrypt(clear, cipher)) { in eap_send_request()
794 outp += b64enc(&b64, cipher, 8, outp); in eap_send_request()
797 (void) DesEncrypt(cp, cipher); in eap_send_request()
798 outp += b64enc(&b64, cipher, 8, outp); in eap_send_request()
807 (void) DesEncrypt(clear, cipher); in eap_send_request()
808 outp += b64enc(&b64, cipher, 8, outp); in eap_send_request()