diff --git a/pysnmp/proto/secmod/rfc3414/localkey.py b/pysnmp/proto/secmod/rfc3414/localkey.py index 61ce5ff9c..88bf5658a 100644 --- a/pysnmp/proto/secmod/rfc3414/localkey.py +++ b/pysnmp/proto/secmod/rfc3414/localkey.py @@ -68,7 +68,7 @@ def passwordToKeyMD5(passphrase, snmpEngineId): def passwordToKeySHA(passphrase, snmpEngineId): - return localizeKey(hashPassphraseMD5(passphrase), snmpEngineId, sha1) + return localizeKey(hashPassphraseSHA(passphrase), snmpEngineId, sha1) def localizeKeyMD5(passKey, snmpEngineId):