Crate openssl_to_rfc[][src]

Expand description

This crate provides methods to convert OpenSSL cipher suite names into the equivalent RFC name and vice versa.

use openssl_to_rfc::TLSCipherSuite;

let openssl_name = "ECDH-RSA-AES128-GCM-SHA256";
let cipher = TLSCipherSuite::from_openssl_name(openssl_name).unwrap();

assert_eq!(cipher, TLSCipherSuite::TLS_ECDH_RSA_WITH_AES_128_GCM_SHA256);
assert_eq!(cipher.as_openssl_name(), openssl_name);

For SSLv2 cipher suites, use the SSLV2CipherSuite enum instead.

Enums