Home
last modified time | relevance | path

Searched refs:cipher_alg (Results 1 – 7 of 7) sorted by relevance

/external/scapy/scapy/layers/tls/
Dsession.py95 self.cipher = ciphersuite.cipher_alg()
99 if ciphersuite.cipher_alg.type == "aead":
144 cipher_alg = cs.cipher_alg
147 if (cipher_alg.type == "stream") or (cipher_alg.type == "block"):
161 start += cipher_alg.key_len
162 end = start + cipher_alg.key_len
165 reqLen = cipher_alg.expanded_key_len
173 pos += 2*cipher_alg.key_len
177 if cipher_alg.type == "block":
179 start += cipher_alg.block_size
[all …]
Dhandshake_sslv2.py307 key = randstring(cs_cls.cipher_alg.key_len)
321 if self.keyarg == b"" and cs_cls.cipher_alg.type == "block":
322 self.keyarg = randstring(cs_cls.cipher_alg.block_size)
/external/wpa_supplicant_8/src/tls/
Dtlsv1_record.c61 rl->cipher_alg = data->alg; in tlsv1_record_set_cipher_suite()
86 if (rl->cipher_alg != CRYPTO_CIPHER_NULL) { in tlsv1_record_change_write_cipher()
87 rl->write_cbc = crypto_cipher_init(rl->cipher_alg, in tlsv1_record_change_write_cipher()
120 if (rl->cipher_alg != CRYPTO_CIPHER_NULL) { in tlsv1_record_change_read_cipher()
121 rl->read_cbc = crypto_cipher_init(rl->cipher_alg, in tlsv1_record_change_read_cipher()
Dtlsv1_record.h46 enum crypto_cipher_alg cipher_alg; member
/external/tpm2-tss/src/tss2-esys/
Desys_crypto_ossl.c957 const EVP_CIPHER *cipher_alg = NULL; in iesys_cryptossl_sym_aes_encrypt() local
971 cipher_alg = EVP_aes_128_cfb(); in iesys_cryptossl_sym_aes_encrypt()
973 cipher_alg = EVP_aes_192_cfb(); in iesys_cryptossl_sym_aes_encrypt()
975 cipher_alg = EVP_aes_256_cfb(); in iesys_cryptossl_sym_aes_encrypt()
993 if (1 != EVP_EncryptInit_ex(ctx, cipher_alg, NULL, key, iv)) { in iesys_cryptossl_sym_aes_encrypt()
1045 const EVP_CIPHER *cipher_alg = NULL; in iesys_cryptossl_sym_aes_decrypt() local
1062 cipher_alg = EVP_aes_128_cfb(); in iesys_cryptossl_sym_aes_decrypt()
1064 cipher_alg = EVP_aes_192_cfb(); in iesys_cryptossl_sym_aes_decrypt()
1066 cipher_alg = EVP_aes_256_cfb(); in iesys_cryptossl_sym_aes_decrypt()
1081 if (1 != EVP_DecryptInit_ex(ctx, cipher_alg, NULL, key, iv)) { in iesys_cryptossl_sym_aes_decrypt()
Desys_crypto_bssl.c946 const EVP_CIPHER *cipher_alg = NULL; in iesys_cryptbssl_sym_aes_encrypt() local
979 if (1 != EVP_EncryptInit_ex(ctx, cipher_alg, NULL, key, iv)) { in iesys_cryptbssl_sym_aes_encrypt()
1031 const EVP_CIPHER *cipher_alg = NULL; in iesys_cryptbssl_sym_aes_decrypt() local
1063 if (1 != EVP_DecryptInit_ex(ctx, cipher_alg, NULL, key, iv)) { in iesys_cryptbssl_sym_aes_decrypt()
/external/scapy/scapy/layers/tls/crypto/
Dsuites.py34 cipher_alg = _tls_cipher_algs.get(s)
51 cipher_alg = _tls_cipher_algs.get(cipher_name)
54 if cipher_alg is not None and cipher_alg.type != "aead":
62 cipher_alg = _tls_cipher_algs.get(cipher_name.rstrip("_EXPORT40"))
67 return kx_alg, cipher_alg, hmac_alg, hash_alg, tls1_3