1 19 20 package com.maverick.ssl; 21 22 26 class SSL_NULL_WITH_NULL_NULL implements SSLCipherSuite { 27 28 SSL_NULL_WITH_NULL_NULL() { 29 } 30 31 public int getKeyLength() { 32 return 0; 33 } 34 35 public int getMACLength() { 36 return 0; 37 } 38 39 public int getIVLength() { 40 return 0; 41 } 42 43 public void init(byte[] encryptKey, byte[] encryptIV, byte[] encryptMAC, byte[] decryptKey, byte[] decryptIV, byte[] decryptMAC) { 44 45 } 46 47 public void encrypt(byte[] b, int offset, int len) { 48 } 49 50 public void decrypt(byte[] b, int offset, int len) { 51 } 52 53 public byte[] generateMAC(byte[] b, int offset, int len, int type, long sequenceNo) { 54 return null; 55 } 56 57 public boolean verifyMAC(byte[] b, int offset, int len, int type, long sequenceNo, byte[] mac, int macoff, int maclen) { 58 return true; 59 } 60 61 } | Popular Tags |