예제 #1
0
 /// <summary>
 /// Get the cipher engine
 /// </summary>
 ///
 /// <param name="PrngType">The Prng</param>
 ///
 /// <returns>An initialized prng</returns>
 private IRandom GetPrng(Prngs PrngType)
 {
     try
     {
         return(PrngFromName.GetInstance(PrngType));
     }
     catch
     {
         throw new CryptoAsymmetricException("PointchevalCipher:GetPrng", "The Prng type is not supported!", new ArgumentException());
     }
 }
예제 #2
0
 /// <summary>
 /// Get the cipher engine
 /// </summary>
 ///
 /// <param name="PrngType">The Prng</param>
 ///
 /// <returns>An initialized prng</returns>
 private IRandom GetPrng(Prngs PrngType)
 {
     try
     {
         return(PrngFromName.GetInstance(PrngType));
     }
     catch
     {
         throw new CryptoAsymmetricSignException("GMSSKeyGenerator:GetPrng", "The Prng type is not supported!", new ArgumentException());
     }
 }