public Blake2BFunction(BlakeConfig config) { if (config == null) { throw new ArgumentNullException(nameof(config)); } _config = config.Clone(); }
public Blake2bCryptoServiceProvider(BlakeConfig config) { if (config is null || config.Key is null) { _digest = new Blake2bDigest(); }
public BlockTransformer(BlakeConfig config) { _hashSizeInBits = config.HashSizeInBits; _config = config; }
public static IBlake Create(BlakeTypes type, BlakeConfig config) => Factory.Create(type, config);
public static IBlake Create(BlakeConfig config) => new Blake2BFunction(config);
public static IBlake Create(BlakeConfig config) => new Blake1Function(config, BlakeTypes.Blake512);
public BlockTransformer(BlakeConfig config, BlakeTypes type) { _type = type; _hashSizeInBits = config.HashSizeInBits; _internalAlgorithmFactory = GetHashAlgorithm(_type); }
public Blake1Function(BlakeConfig config, BlakeTypes type) { HashType = type; _config = config; }