1 19 20 package com.maverick.ssl; 21 22 27 public interface SSLCipherSuite { 28 29 public int getKeyLength(); 30 31 public int getMACLength(); 32 33 public int getIVLength(); 34 35 public void init(byte[] encryptKey, byte[] encryptIV, byte[] encryptMAC, byte[] decryptKey, byte[] decryptIV, byte[] decryptMAC); 36 37 public void encrypt(byte[] b, int offset, int len); 38 39 public void decrypt(byte[] b, int offset, int len); 40 41 public byte[] generateMAC(byte[] b, int offset, int len, int type, long sequenceNo); 42 43 public boolean verifyMAC(byte[] b, int offset, int len, int type, long sequenceNo, byte[] mac, int macoff, int maclen); 44 45 } | Popular Tags |