summaryrefslogtreecommitdiff
path: root/pysnmp/proto/secmod/eso/priv/aes192.py
blob: cbbc748e5715110e1c120080157366212adffd89 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
#
# This file is part of pysnmp software.
#
# Copyright (c) 2005-2019, Ilya Etingof <etingof@gmail.com>
# License: http://snmplabs.com/pysnmp/license.html
#
from pysnmp.proto.secmod.eso.priv import aesbase


class AesBlumenthal192(aesbase.AbstractAesBlumenthal):
    """AES 192 bit encryption (Internet draft)

       Reeder AES encryption:

       http://tools.ietf.org/html/draft-blumenthal-aes-usm-04
    """
    # cusmAESCfb192PrivProtocol
    SERVICE_ID = (1, 3, 6, 1, 4, 1, 9, 12, 6, 1, 1)
    KEY_SIZE = 24


class Aes192(aesbase.AbstractAesReeder):
    """AES 192 bit encryption (Internet draft)

    Reeder AES encryption with non-standard key localization algorithm
    borrowed from Reeder 3DES draft:

    http://tools.ietf.org/html/draft-blumenthal-aes-usm-04
    https://tools.ietf.org/html/draft-reeder-snmpv3-usm-3desede-00

    Known to be used by many vendors including Cisco and others.
    """
    # cusmAESCfb192PrivProtocol (non-standard OID)
    SERVICE_ID = (1, 3, 6, 1, 4, 1, 9, 12, 6, 1, 101)
    KEY_SIZE = 24