Method | Description | |
---|---|---|
AddUserKey ( IUserKey pKey ) : void |
/// Deconstructor, clears up the key. /// /// Clears the key. This function also erases all previously stored /// user key data objects. /// Add a user key.
|
|
CompositeKey ( ) : Org.BouncyCastle.Crypto |
Construct a new, empty key object.
|
|
ContainsType ( |
Test whether the composite key contains a specific type of user keys (password, key file, ...). If at least one user key of that type is present, the function returns
|
|
EqualsValue ( |
||
GenerateKey32 ( byte pbKeySeed32, ulong uNumRounds ) : KeePassLib.Security.ProtectedBinary |
Generate a 32-bit wide key out of the composite key.
|
|
GetUserKey ( |
Get the first user key of a specified type.
|
|
RemoveUserKey ( IUserKey pKey ) : bool |
Remove a user key.
|
|
TransformKeyBenchmark ( uint uMilliseconds, ulong uStep ) : ulong |
Benchmark the
|
|
TransformKeyManaged ( byte pbNewKey32, byte pbKeySeed32, ulong uNumRounds ) : bool |
Method | Description | |
---|---|---|
CreateRawCompositeKey32 ( ) : byte[] |
Creates the composite key from the supplied user key sources (password, key file, user account, computer ID, etc.).
|
|
TransformKey ( byte pbOriginalKey32, byte pbKeySeed32, ulong uNumRounds ) : byte[] |
Transform the current key
|
|
ValidateUserKeys ( ) : void |
public AddUserKey ( IUserKey pKey ) : void | ||
pKey | IUserKey | User key to add. |
return | void |
public CompositeKey ( ) : Org.BouncyCastle.Crypto | ||
return | Org.BouncyCastle.Crypto |
public ContainsType ( |
||
tUserKeyType | User key type. | |
return | bool |
public EqualsValue ( |
||
ckOther | ||
return | bool |
public GenerateKey32 ( byte pbKeySeed32, ulong uNumRounds ) : KeePassLib.Security.ProtectedBinary | ||
pbKeySeed32 | byte | Seed used in the key transformation /// rounds. Must be a byte array containing exactly 32 bytes; must /// not be null. |
uNumRounds | ulong | Number of key transformation rounds. |
return | KeePassLib.Security.ProtectedBinary |
public GetUserKey ( |
||
tUserKeyType | Type of the user key to get. | |
return | IUserKey |
public RemoveUserKey ( IUserKey pKey ) : bool | ||
pKey | IUserKey | User key to remove. |
return | bool |
public static TransformKeyBenchmark ( uint uMilliseconds, ulong uStep ) : ulong | ||
uMilliseconds | uint | Test duration in ms. |
uStep | ulong | Stepping.
/// |
return | ulong |
public static TransformKeyManaged ( byte pbNewKey32, byte pbKeySeed32, ulong uNumRounds ) : bool | ||
pbNewKey32 | byte | |
pbKeySeed32 | byte | |
uNumRounds | ulong | |
return | bool |