Save This Page
Home » crypto-143 » org.bouncycastle.crypto » [javadoc | source]
    1   package org.bouncycastle.crypto;
    2   
    3   import java.math.BigInteger;
    4   
    5   /**
    6    * The basic interface that basic Diffie-Hellman implementations
    7    * conforms to.
    8    */
    9   public interface BasicAgreement
   10   {
   11       /**
   12        * initialise the agreement engine.
   13        */
   14       public void init(CipherParameters param);
   15   
   16       /**
   17        * given a public key from a given party calculate the next
   18        * message in the agreement sequence. 
   19        */
   20       public BigInteger calculateAgreement(CipherParameters pubKey);
   21   }

Save This Page
Home » crypto-143 » org.bouncycastle.crypto » [javadoc | source]