/// <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()); } }
/// <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()); } }