DerivationFunction.java revision e6bf3e8dfa2804891a82075cb469b736321b4827
1package org.bouncycastle.crypto; 2 3/** 4 * base interface for general purpose byte derivation functions. 5 */ 6public interface DerivationFunction 7{ 8 public void init(DerivationParameters param); 9 10 /** 11 * return the message digest used as the basis for the function 12 */ 13 public Digest getDigest(); 14 15 public int generateBytes(byte[] out, int outOff, int len) 16 throws DataLengthException, IllegalArgumentException; 17} 18