Searched refs:cipher (Results 1 – 2 of 2) sorted by relevance
/unit/test/ |
H A D | test_tls_conf_command.py | 49 protocol = sock.cipher()[1] 67 cipher = sock.cipher() 68 assert cipher[1] != protocol, 'new protocol used' 71 ciphers = list(set(c for c in shared_ciphers if c[1] == cipher[1])) 94 cipher_new = sock.cipher() 95 assert cipher_new[1] == cipher[1], 'previous protocol used' 96 assert cipher_new[0] != cipher[0], 'new cipher used'
|
/unit/src/ |
H A D | nxt_openssl.c | 741 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)
|