// Import the parameters for DSA signature generation. public override void ImportParameters(RSAParameters parameters) { // We need at least Modulus and Exponent for public key ops. if (parameters.Modulus == null || parameters.Exponent == null || CryptoMethods.NumZero(parameters.Modulus) || CryptoMethods.NumZero(parameters.Exponent)) { throw new CryptographicException (_("Crypto_InvalidRSAParams")); } rsaParams = parameters; }
// Import the parameters for DSA signature generation. public override void ImportParameters(DSAParameters parameters) { // We need at least P, Q, G, and Y for public key operations. if (parameters.P == null || parameters.Q == null || parameters.G == null || parameters.Y == null || CryptoMethods.NumZero(parameters.P) || CryptoMethods.NumZero(parameters.Q)) { throw new CryptographicException (_("Crypto_InvalidDSAParams")); } dsaParams = parameters; }