Esempio n. 1
0
        public Blake2BConfig Clone()
        {
            var result = new Blake2BConfig();

            result.OutputSizeInBytes = OutputSizeInBytes;
            if (Key != null)
            {
                result.Key = (byte[])Key.Clone();
            }
            if (Personalization != null)
            {
                result.Personalization = (byte[])Personalization.Clone();
            }
            if (Salt != null)
            {
                result.Salt = (byte[])Salt.Clone();
            }
            return(result);
        }
Esempio n. 2
0
        public Blake2BConfig Clone()
        {
            Blake2BConfig blake2BConfig = new Blake2BConfig();

            blake2BConfig.OutputSizeInBytes = OutputSizeInBytes;
            if (Key != null)
            {
                blake2BConfig.Key = (byte[])Key.Clone();
            }
            if (Personalization != null)
            {
                blake2BConfig.Personalization = (byte[])Personalization.Clone();
            }
            if (Salt != null)
            {
                blake2BConfig.Salt = (byte[])Salt.Clone();
            }
            return(blake2BConfig);
        }