1#
2# This file is part of pysnmp software.
3#
4# Copyright (c) 2005-2019, Ilya Etingof <etingof@gmail.com>
5# License: http://snmplabs.com/pysnmp/license.html
6#
7from pysnmp.proto.secmod.eso.priv import aesbase
8
9
10class AesBlumenthal256(aesbase.AbstractAesBlumenthal):
11    """AES 256 bit encryption (Internet draft)
12
13       http://tools.ietf.org/html/draft-blumenthal-aes-usm-04
14    """
15    serviceID = (1, 3, 6, 1, 4, 1, 9, 12, 6, 1, 2)  # cusmAESCfb256PrivProtocol
16    keySize = 32
17
18
19class Aes256(aesbase.AbstractAesReeder):
20    """AES 256 bit encryption (Internet draft)
21
22    Reeder AES encryption with non-standard key localization algorithm
23    borrowed from Reeder 3DES draft:
24
25    http://tools.ietf.org/html/draft-blumenthal-aes-usm-04
26    https://tools.ietf.org/html/draft-reeder-snmpv3-usm-3desede-00
27
28    Known to be used by many vendors including Cisco and others.
29    """
30    serviceID = (1, 3, 6, 1, 4, 1, 9, 12, 6, 1, 102)  # cusmAESCfb256PrivProtocol (non-standard OID)
31    keySize = 32
32