예제 #1
0
        /**
         * Adds data to sign or verify.
         * @param m
         * @throws NtruException if <code>initSign</code> was not called
         */
        public void update(byte[] m)
        {
            if (hashAlg == null)
            {
                throw new NtruException("Call initSign or initVerify first!");
            }

            hashAlg.BlockUpdate(m, 0, m.Length);
        }