Esempio n. 1
0
 /**
  * The default constructor.
  *
  * @param encryptionAlgorithm
  *            the encryption algorithm
  * @param digestAlgorithm
  *            the digest algorithm
  */
 private SignatureAlgorithm(EncryptionAlgorithm encryptionAlgorithm, DigestAlgorithm digestAlgorithm)
 {
     this.EncryptionAlgorithm    = encryptionAlgorithm;
     this.DigestAlgorithm        = digestAlgorithm;
     this.MaskGenerationFunction = null;
 }
Esempio n. 2
0
 /**
  * For given encryption algorithm and digest algorithm this function returns the signature algorithm.
  *
  * @param encryptionAlgorithm
  *            the encryption algorithm
  * @param digestAlgorithm
  *            the digest algorithm
  * @return the corresponding combination of both algorithms
  */
 public static SignatureAlgorithm GetAlgorithm(EncryptionAlgorithm encryptionAlgorithm, DigestAlgorithm digestAlgorithm)
 {
     return(GetAlgorithm(encryptionAlgorithm, digestAlgorithm, null));
 }