• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1
2## This file is part of Scapy
3## Copyright (C) 2007, 2008, 2009 Arnaud Ebalard
4##                     2015, 2016 Maxence Tury
5## This program is published under a GPLv2 license
6
7"""
8TLS ciphers.
9"""
10
11class CipherError(Exception):
12    """
13    Raised when .decrypt() or .auth_decrypt() fails.
14    """
15    pass
16
17
18# We have to keep these imports below CipherError definition
19# in order to avoid circular dependencies.
20from scapy.layers.tls.crypto.cipher_aead import _tls_aead_cipher_algs
21from scapy.layers.tls.crypto.cipher_block import _tls_block_cipher_algs
22from scapy.layers.tls.crypto.cipher_stream import _tls_stream_cipher_algs
23
24_tls_cipher_algs = {}
25_tls_cipher_algs.update(_tls_block_cipher_algs)
26_tls_cipher_algs.update(_tls_stream_cipher_algs)
27_tls_cipher_algs.update(_tls_aead_cipher_algs)
28
29