public class EncryptedStorageUtil extends Object
| Constructor and Description |
|---|
EncryptedStorageUtil() |
| Modifier and Type | Method and Description |
|---|---|
static SecretKey |
getSignatureKnowledgeKey(char[] password,
byte[] cSignatureKnoweldgeSecretKeyBytes,
byte[] salt,
io.getlime.security.powerauth.crypto.lib.generator.KeyGenerator keyGenerator)
Decrypt the KEY_SIGNATURE_KNOWLEDGE key using a provided password.
|
static byte[] |
storeSignatureKnowledgeKey(char[] password,
SecretKey signatureKnowledgeSecretKey,
byte[] salt,
io.getlime.security.powerauth.crypto.lib.generator.KeyGenerator keyGenerator)
Encrypt the KEY_SIGNATURE_KNOWLEDGE key using a provided password.
|
public static byte[] storeSignatureKnowledgeKey(char[] password,
SecretKey signatureKnowledgeSecretKey,
byte[] salt,
io.getlime.security.powerauth.crypto.lib.generator.KeyGenerator keyGenerator)
throws InvalidKeyException,
IllegalBlockSizeException,
BadPaddingException
password - Password to be used for encryption.signatureKnowledgeSecretKey - Original KEY_SIGNATURE_KNOWLEDGE key.salt - Random salt.keyGenerator - Key generator instance.InvalidKeyException - In case invalid key is provided.IllegalBlockSizeException - In case invalid key is provided.BadPaddingException - In case invalid padding is provided.public static SecretKey getSignatureKnowledgeKey(char[] password, byte[] cSignatureKnoweldgeSecretKeyBytes, byte[] salt, io.getlime.security.powerauth.crypto.lib.generator.KeyGenerator keyGenerator) throws InvalidKeyException, IllegalBlockSizeException, BadPaddingException
password - Password to be used for decryption.cSignatureKnoweldgeSecretKeyBytes - Encrypted KEY_SIGNATURE_KNOWLEDGE key.salt - Salt that was used for encryption.keyGenerator - Key generator instance.InvalidKeyException - In case invalid key is providedIllegalBlockSizeException - In case invalid key is providedBadPaddingException - In case invalid padding is providedCopyright © 2016–2018 Wultra s.r.o.. All rights reserved.