Home
last modified time | relevance | path

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

/unit/test/
H A Dtest_tls_conf_command.py42 protocol = sock.cipher()[1]
60 cipher = sock.cipher()
61 assert cipher[1] != protocol, 'new protocol used'
64 ciphers = list(set(c for c in shared_ciphers if c[1] == cipher[1]))
78 "cipherstring": cipher[1] + ":!" + cipher[0],
87 cipher_new = sock.cipher()
88 assert cipher_new[1] == cipher[1], 'previous protocol used'
89 assert cipher_new[0] != cipher[0], 'new cipher used'
/unit/src/
H A Dnxt_openssl.c741 const EVP_CIPHER *cipher; local
762 cipher = (ticket[0].size == 16) ? EVP_aes_128_cbc() : EVP_aes_256_cbc();
764 if (RAND_bytes(iv, EVP_CIPHER_iv_length(cipher)) != 1) {
772 if (EVP_EncryptInit_ex(ectx, cipher, NULL, ticket[0].aes_key, iv) != 1)
800 cipher = (ticket[i].size == 16) ? EVP_aes_128_cbc() : EVP_aes_256_cbc();
802 if (EVP_DecryptInit_ex(ectx, cipher, NULL, ticket[i].aes_key, iv) != 1)