API Reference: Cipher Algorithms¶
These helpers split cipher-suite names into readable components. Start with Retrieving Cipher Information to see them through the monitor API. TLS 1.3 cipher names do not encode the key-exchange group.
certmonitor.cipher_algorithms ¶
ALL_ALGORITHMS
module-attribute
¶
ALL_ALGORITHMS: dict[str, AlgorithmDict] = {'encryption': {'AES': 'AES', 'CHACHA20': 'CHACHA20', '3DES': '3DES|DES-EDE3', 'CAMELLIA': 'CAMELLIA', 'ARIA': 'ARIA', 'SEED': 'SEED', 'SM4': 'SM4', 'IDEA': 'IDEA', 'RC4': 'RC4'}, 'key_exchange': {'ECDHE': 'ECDHE|EECDH', 'DHE': 'DHE|EDH', 'ECDH': 'ECDH', 'DH': 'DH', 'RSA': 'RSA', 'PSK': 'PSK', 'SRP': 'SRP', 'GOST': 'GOST', 'ECCPWD': 'ECCPWD', 'SM2': 'SM2'}, 'mac': {'SHA384': 'SHA384', 'SHA256': 'SHA256', 'SHA224': 'SHA224', 'SHA': 'SHA1?', 'MD5': 'MD5', 'POLY1305': 'POLY1305', 'AEAD': 'GCM|CCM|OCB', 'GOST': 'GOST28147|GOST34\\.11', 'SM3': 'SM3'}}
list_algorithms ¶
List all known algorithms by category.
parse_cipher_suite
cached
¶
Parse a cipher suite string to identify encryption, key exchange, and MAC algorithms.
Source code in certmonitor/cipher_algorithms.py
update_algorithms ¶
Update the ALL_ALGORITHMS dictionary with user-provided custom algorithms.