Exemplo n.º 1
0
        public Kmac(ICSHAKEWrapper iCSHAKE, int capacity, bool xof)
        {
            // Guard against invalid capacities
            if (capacity != 512 && capacity != 256)
            {
                throw new ArgumentOutOfRangeException(nameof(capacity));
            }

            _iCSHAKE  = iCSHAKE;
            _capacity = capacity;
            _xof      = xof;
        }
Exemplo n.º 2
0
 public KmacFactory(ICSHAKEWrapper iCSHAKEWrapper)
 {
     _iCSHAKEWrapper = iCSHAKEWrapper;
 }