1 20 21 22 23 package org.snmp4j.security; 24 25 import org.snmp4j.smi.OID; 26 27 34 public interface PrivacyProtocol extends SecurityProtocol { 35 36 60 byte[] encrypt(byte[] unencryptedData, 61 int offset, 62 int length, 63 byte[] encryptionKey, 64 long engineBoots, 65 long engineTime, 66 DecryptParams decryptParams); 67 68 91 byte[] decrypt(byte[] cryptedData, 92 int offset, 93 int length, 94 byte[] decryptionKey, 95 long engineBoots, 96 long engineTime, 97 DecryptParams decryptParams); 98 99 104 OID getID(); 105 106 113 int getEncryptedLength(int scopedPDULength); 114 115 120 int getMinKeyLength(); 121 122 127 int getMaxKeyLength(); 128 129 136 int getDecryptParamsLength(); 137 } 138 139 | Popular Tags |