1 7 8 15 16 package javax.crypto; 17 18 import java.security.*; 19 import java.security.spec.*; 20 21 import java.nio.ByteBuffer; 22 23 37 public abstract class MacSpi 38 { 39 40 public MacSpi() { } 41 42 47 protected abstract int engineGetMacLength(); 48 49 61 protected abstract void engineInit(Key key, AlgorithmParameterSpec params) 62 throws InvalidKeyException, InvalidAlgorithmParameterException; 63 64 69 protected abstract void engineUpdate(byte input); 70 71 79 protected abstract void engineUpdate(byte[] input, int offset, int len); 80 81 93 protected void engineUpdate(ByteBuffer input) { } 94 95 101 protected abstract byte[] engineDoFinal(); 102 103 107 protected abstract void engineReset(); 108 109 117 public Object clone() throws CloneNotSupportedException { } 118 } 119 | Popular Tags |