1 package org.apache.java.security; 2 3 18 19 31 public abstract class MessageDigest 32 { 33 36 public MessageDigest() 37 { 38 this.reset(); 39 } 40 41 46 public void append(byte[] block) 47 { 48 this.append(block, 0, block.length); 49 } 50 51 57 public void append(byte[] block, 58 int length) 59 { 60 this.append(block, 0, length); 61 } 62 63 71 public abstract void append(byte[] block, 72 int offset, 73 int length); 74 75 81 public byte[] digest(byte[] block) 82 { 83 return this.digest(block, 0, block.length); 84 } 85 86 94 public byte[] digest(byte[] block, 95 int length) 96 { 97 return this.digest(block, 0, length); 98 } 99 100 109 public abstract byte[] digest(byte[] block, 110 int offset, 111 int length); 112 113 117 public abstract void reset(); 118 } 119 | Popular Tags |