| java.lang.Object org.snmp4j.security.Priv3DES
Priv3DES | public class Priv3DES implements PrivacyProtocol(Code) | | Privacy protocol class for Triple DES (DESEDE).
This class uses DES-EDE in CBC mode to encrypt the data. The protocol
is defined by the Internet Draft 'Extension to the User-Based Security
Model (USM) to Support Triple-DES EDE in "Outside" CBC Mode'.
author: Frank Fock, Jochen Katz version: 1.9 since: 1.9 |
Field Summary | |
final public static OID | ID Unique ID of this privacy protocol. | protected Salt | salt |
Method Summary | |
public byte[] | decrypt(byte[] cryptedData, int offset, int length, byte[] decryptionKey, long engineBoots, long engineTime, DecryptParams decryptParams) | 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.
|
Priv3DES | public Priv3DES()(Code) | | |
decrypt | public byte[] decrypt(byte[] cryptedData, int offset, int length, byte[] decryptionKey, long engineBoots, long engineTime, DecryptParams decryptParams)(Code) | | |
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) | | |
|
|