public void Init(IDerivationParameters parameters)
    {
        if (!typeof(MgfParameters).IsInstanceOfType(parameters))
        {
            throw new ArgumentException("MGF parameters required for MGF1Generator");
        }
        MgfParameters mgfParameters = (MgfParameters)parameters;

        seed = mgfParameters.GetSeed();
    }
Exemplo n.º 2
0
        public void Init(IDerivationParameters parameters)
        {
            //IL_0017: Unknown result type (might be due to invalid IL or missing references)
            if (!typeof(MgfParameters).IsInstanceOfType((object)parameters))
            {
                throw new ArgumentException("MGF parameters required for MGF1Generator");
            }
            MgfParameters mgfParameters = (MgfParameters)parameters;

            seed = mgfParameters.GetSeed();
        }
Exemplo n.º 3
0
        public void Init(
            IDerivationParameters parameters)
        {
            if (!(parameters is MgfParameters))
            {
                throw new ArgumentException("MGF parameters required for MGF1Generator");
            }

            MgfParameters p = (MgfParameters)parameters;

            seed = p.GetSeed();
        }
Exemplo n.º 4
0
        public void Init(
            IDerivationParameters parameters)
        {
            if (parameters == null || !(typeof(MgfParameters).GetTypeInfo().IsAssignableFrom(parameters.GetType().GetTypeInfo())))
            {
                throw new ArgumentException("MGF parameters required for MGF1Generator");
            }

            MgfParameters p = (MgfParameters)parameters;

            seed = p.GetSeed();
        }
Exemplo n.º 5
0
        public void Init(MgfParameters parameters)
        {
            MgfParameters p = parameters;

            this.seed = p.GetSeed();
        }