Ejemplo n.º 1
0
 public virtual void Init(bool forEncryption, ICipherParameters parameters)
 {
     if (this.core == null)
     {
         this.core = new RsaCoreEngine();
     }
     this.core.Init(forEncryption, parameters);
 }
Ejemplo n.º 2
0
		/**
        * initialise the RSA engine.
        *
        * @param forEncryption true if we are encrypting, false otherwise.
        * @param param the necessary RSA key parameters.
        */
        public virtual void Init(
            bool				forEncryption,
            ICipherParameters	parameters)
        {
			if (core == null)
				core = new RsaCoreEngine();

			core.Init(forEncryption, parameters);
		}
Ejemplo n.º 3
0
        /**
         * initialise the RSA engine.
         *
         * @param forEncryption true if we are encrypting, false otherwise.
         * @param param the necessary RSA key parameters.
         */
        public void Init(
            bool forEncryption,
            ICipherParameters parameters)
        {
            if (core == null)
            {
                core = new RsaCoreEngine();
            }

            core.Init(forEncryption, parameters);
        }