forked from etingof/pysnmp
-
-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
14 additions
and
100 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,22 +4,14 @@ | |
# Copyright (c) 2005-2020, Ilya Etingof <[email protected]> | ||
# License: https://www.pysnmp.com/pysnmp/license.html | ||
# | ||
from hashlib import md5, sha1 | ||
from pysnmp.proto.secmod.rfc3826.priv import aes | ||
from pysnmp.proto.secmod.rfc3414.auth import hmacmd5, hmacsha | ||
from pysnmp.proto.secmod.rfc7860.auth import hmacsha2 | ||
from pysnmp.proto.secmod.rfc3414 import localkey | ||
from pysnmp.proto import error | ||
from math import ceil | ||
|
||
try: | ||
from hashlib import md5, sha1 | ||
except ImportError: | ||
import md5 | ||
import sha | ||
|
||
md5 = md5.new | ||
sha1 = sha.new | ||
|
||
|
||
class AbstractAesBlumenthal(aes.Aes): | ||
serviceID = () | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,17 +4,9 @@ | |
# Copyright (c) 2005-2020, Ilya Etingof <[email protected]> | ||
# License: https://www.pysnmp.com/pysnmp/license.html | ||
# | ||
from hashlib import md5, sha1 | ||
import random | ||
|
||
try: | ||
from hashlib import md5, sha1 | ||
except ImportError: | ||
import md5 | ||
import sha | ||
|
||
md5 = md5.new | ||
sha1 = sha.new | ||
|
||
try: | ||
from pysnmpcrypto import des3, PysnmpCryptoError | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,12 +4,7 @@ | |
# Copyright (c) 2005-2020, Ilya Etingof <[email protected]> | ||
# License: https://www.pysnmp.com/pysnmp/license.html | ||
# | ||
try: | ||
from hashlib import md5 | ||
except ImportError: | ||
import md5 | ||
|
||
md5 = md5.new | ||
from hashlib import md5 | ||
from pyasn1.type import univ | ||
from pysnmp.proto.secmod.rfc3414.auth import base | ||
from pysnmp.proto.secmod.rfc3414 import localkey | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,12 +4,7 @@ | |
# Copyright (c) 2005-2020, Ilya Etingof <[email protected]> | ||
# License: https://www.pysnmp.com/pysnmp/license.html | ||
# | ||
try: | ||
from hashlib import sha1 | ||
except ImportError: | ||
import sha | ||
|
||
sha1 = sha.new | ||
from hashlib import sha1 | ||
from pyasn1.type import univ | ||
from pysnmp.proto.secmod.rfc3414.auth import base | ||
from pysnmp.proto.secmod.rfc3414 import localkey | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,16 +4,7 @@ | |
# Copyright (c) 2005-2020, Ilya Etingof <[email protected]> | ||
# License: https://www.pysnmp.com/pysnmp/license.html | ||
# | ||
try: | ||
from hashlib import md5, sha1 | ||
|
||
except ImportError: | ||
import md5 | ||
import sha | ||
|
||
md5 = md5.new | ||
sha1 = sha.new | ||
|
||
from hashlib import md5, sha1 | ||
from pyasn1.type import univ | ||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,19 +4,9 @@ | |
# Copyright (c) 2005-2020, Ilya Etingof <[email protected]> | ||
# License: https://www.pysnmp.com/pysnmp/license.html | ||
# | ||
from hashlib import md5, sha1 | ||
import random | ||
|
||
try: | ||
from hashlib import md5, sha1 | ||
except ImportError: | ||
import md5 | ||
import sha | ||
|
||
md5 = md5.new | ||
sha1 = sha.new | ||
|
||
from sys import version_info | ||
|
||
try: | ||
from pysnmpcrypto import des, PysnmpCryptoError | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,17 +4,9 @@ | |
# Copyright (c) 2005-2020, Ilya Etingof <[email protected]> | ||
# License: https://www.pysnmp.com/pysnmp/license.html | ||
# | ||
from hashlib import md5, sha1 | ||
import random | ||
|
||
try: | ||
from hashlib import md5, sha1 | ||
except ImportError: | ||
import md5 | ||
import sha | ||
|
||
md5 = md5.new | ||
sha1 = sha.new | ||
|
||
try: | ||
from pysnmpcrypto import aes, PysnmpCryptoError | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters