| java.lang.Object org.snmp4j.security.PrivDES
PrivDES | public class PrivDES implements PrivacyProtocol(Code) | | Privacy protocol class for DES.
This class uses DES in CBC mode to encrypt the data. The protocol
is defined in the IETF standard "User-based Security Model (USM)
for SNMPv3".
author: Jochen Katz version: 1.9 |
Field Summary | |
final public static OID | ID Unique ID of this privacy protocol. | protected Salt | salt |
Constructor Summary | |
public | PrivDES() |
Method Summary | |
public byte[] | decrypt(byte[] cryptedData, int offset, int length, byte[] decryptionKey, long engineBoots, long engineTime, DecryptParams decryptParams) Decrypts a message using a given decryption key, engine boots count, and
engine ID. | public byte[] | encrypt(byte[] unencryptedData, int offset, int length, byte[] encryptionKey, long engineBoots, long engineTime, DecryptParams decryptParams) | public byte[] | extendShortKey(byte[] shortKey, OctetString password, byte[] engineID, AuthenticationProtocol authProtocol) | public int | getDecryptParamsLength() | public int | getEncryptedLength(int scopedPDULength) | public OID | getID() Gets the OID uniquely identifying the privacy protocol. | public int | getMaxKeyLength() | public int | getMinKeyLength() |
ID | final public static OID ID(Code) | | Unique ID of this privacy protocol.
|
decrypt | public byte[] decrypt(byte[] cryptedData, int offset, int length, byte[] decryptionKey, long engineBoots, long engineTime, DecryptParams decryptParams)(Code) | | Decrypts a message using a given decryption key, engine boots count, and
engine ID.
Parameters: cryptedData - Parameters: offset - Parameters: length - Parameters: decryptionKey - Parameters: engineBoots - Parameters: engineTime - the decrypted data, or null if decryption failed. |
encrypt | public byte[] encrypt(byte[] unencryptedData, int offset, int length, byte[] encryptionKey, long engineBoots, long engineTime, DecryptParams decryptParams)(Code) | | |
getDecryptParamsLength | public int getDecryptParamsLength()(Code) | | |
getEncryptedLength | public int getEncryptedLength(int scopedPDULength)(Code) | | |
getID | public OID getID()(Code) | | Gets the OID uniquely identifying the privacy protocol.
an OID instance. |
getMaxKeyLength | public int getMaxKeyLength()(Code) | | |
getMinKeyLength | public int getMinKeyLength()(Code) | | |
|
|