StoredKey

open fun StoredKey(name: String, password: Array<Byte>, encryptionLevel: StoredKeyEncryptionLevel)

Creates a new key, with given encryption strength level. Returned object needs to be deleted.

Return

The stored key as a non-null pointer

Parameters

name

The name of the key to be stored

password

Non-null block of data, password of the stored key

encryptionLevel

The level of encryption, see \TWStoredKeyEncryptionLevel


open fun StoredKey(name: String, password: Array<Byte>, encryptionLevel: StoredKeyEncryptionLevel, encryption: StoredKeyEncryption)

Creates a new key, with given encryption strength level. Returned object needs to be deleted.

Return

The stored key as a non-null pointer

Parameters

name

The name of the key to be stored

password

Non-null block of data, password of the stored key

encryptionLevel

The level of encryption, see \TWStoredKeyEncryptionLevel

encryption

cipher encryption mode


open fun StoredKey(name: String, password: Array<Byte>)

Creates a new key. \deprecated use TWStoredKeyCreateLevel.

Return

The stored key as a non-null pointer

Parameters

name

The name of the key to be stored

password

Non-null block of data, password of the stored key


open fun StoredKey(name: String, password: Array<Byte>, encryption: StoredKeyEncryption)

Creates a new key. \deprecated use TWStoredKeyCreateLevel.

Return

The stored key as a non-null pointer

Parameters

name

The name of the key to be stored

password

Non-null block of data, password of the stored key

encryption

cipher encryption mode