KeePassLib.Cryptography.KeyDerivation.AesKdf.GetDefaultParameters C# (CSharp) Method

GetDefaultParameters() public method

public GetDefaultParameters ( ) : KeePassLib.Cryptography.KeyDerivation.KdfParameters
return KeePassLib.Cryptography.KeyDerivation.KdfParameters
		public override KdfParameters GetDefaultParameters()
		{
			KdfParameters p = base.GetDefaultParameters();
			p.SetUInt64(ParamRounds, PwDefs.DefaultKeyEncryptionRounds);
			return p;
		}

Usage Example

Example #1
0
		public ProtectedBinary GenerateKey32(byte[] pbKeySeed32, ulong uNumRounds)
		{
			Debug.Assert(pbKeySeed32 != null);
			if(pbKeySeed32 == null) throw new ArgumentNullException("pbKeySeed32");
			Debug.Assert(pbKeySeed32.Length == 32);
			if(pbKeySeed32.Length != 32) throw new ArgumentException("pbKeySeed32");

			AesKdf kdf = new AesKdf();
			KdfParameters p = kdf.GetDefaultParameters();
			p.SetUInt64(AesKdf.ParamRounds, uNumRounds);
			p.SetByteArray(AesKdf.ParamSeed, pbKeySeed32);

			return GenerateKey32(p);
		}
All Usage Examples Of KeePassLib.Cryptography.KeyDerivation.AesKdf::GetDefaultParameters