Skip to main content

tls_server_end_point

Function tls_server_end_point 

Source
pub(crate) fn tls_server_end_point(cert: &CertificateDer<'_>) -> Option<Vec<u8>>
Expand description

Computes the RFC 5929 tls-server-end-point channel binding for a DER server certificate: its hash under the hash function of its signature algorithm, with MD5 and SHA-1 upgraded to SHA-256.

Returns None for unparseable certificates and for signature algorithms without a single hash function, such as Ed25519 and RSASSA-PSS. The openssl connector reports no channel binding for those either.