Uses of Class
io.getlime.security.powerauth.crypto.lib.model.exception.CryptoProviderException
Packages that use CryptoProviderException
Package
Description
-
Uses of CryptoProviderException in io.getlime.security.powerauth.crypto.client.activation
Methods in io.getlime.security.powerauth.crypto.client.activation that throw CryptoProviderExceptionModifier and TypeMethodDescriptionPowerAuthClientActivation.computeActivationFingerprint(PublicKey devicePublicKey, PublicKey serverPublicKey, String activationId) Compute a fingerprint for the version 3 activation.PowerAuthClientActivation.computeActivationFingerprint(PublicKey devicePublicKey, PublicKey serverPublicKey, String activationId, ActivationVersion activationVersion) Compute a fingerprint for the activation.byte[]PowerAuthClientActivation.generateActivationNonce()Generate a new activation nonce.PowerAuthClientActivation.generateDeviceKeyPair()Generate a device related activation key pair.PowerAuthClientActivation.getStatusFromEncryptedBlob(byte[] cStatusBlob, byte[] challenge, byte[] nonce, SecretKey transportKey) Returns an activation status from the encrypted activation blob as described in PowerAuth Specification.booleanPowerAuthClientActivation.verifyActivationCodeSignature(String activationCode, byte[] signature, PublicKey masterPublicKey) Verify the signature of activation code using Master Public Key.booleanPowerAuthClientActivation.verifyHashForHashBasedCounter(byte[] receivedCtrDataHash, byte[] expectedCtrData, SecretKey transportKey) Verify whether client's value of hash based counter is equal to the value received from the server.booleanPowerAuthClientActivation.verifyServerDataSignature(String activationId, byte[] C_serverPublicKey, byte[] signature, PublicKey masterPublicKey) Verify signature of the encrypted activation ID and server public key using a Master Public Key. -
Uses of CryptoProviderException in io.getlime.security.powerauth.crypto.client.keyfactory
Methods in io.getlime.security.powerauth.crypto.client.keyfactory that throw CryptoProviderExceptionModifier and TypeMethodDescriptionPowerAuthClientKeyFactory.generateClientMasterSecretKey(PrivateKey devicePrivateKey, PublicKey serverPublicKey) Generate a master secret key KEY_MASTER_SECRET using the device private key KEY_DEVICE_PRIVATE and server public key KEY_SERVER_PUBLIC.PowerAuthClientKeyFactory.generateClientSignatureBiometryKey(SecretKey masterSecretKey) Generate a signature key KEY_SIGNATURE_BIOMETRY from master secret key KEY_MASTER_SECRET using KDF.PowerAuthClientKeyFactory.generateClientSignatureKnowledgeKey(SecretKey masterSecretKey) Generate a signature key KEY_SIGNATURE_KNOWLEDGE from master secret key KEY_MASTER_SECRET using KDF.PowerAuthClientKeyFactory.generateClientSignaturePossessionKey(SecretKey masterSecretKey) Generate a signature key KEY_SIGNATURE_POSSESSION from master secret key KEY_MASTER_SECRET using KDF.PowerAuthClientKeyFactory.generateServerEncryptedVaultKey(SecretKey masterSecretKey) Generate a transport key KEY_ENCRYPTED_VAULT from master secret key KEY_MASTER_SECRET using KDF.PowerAuthClientKeyFactory.generateServerTransportKey(SecretKey masterSecretKey) Generate a transport key KEY_TRANSPORT from master secret key KEY_MASTER_SECRET using KDF.PowerAuthClientKeyFactory.keysForSignatureType(PowerAuthSignatureTypes signatureType, SecretKey masterSecretKey) Generate a list with signature keys for given signature type and master secret -
Uses of CryptoProviderException in io.getlime.security.powerauth.crypto.client.signature
Methods in io.getlime.security.powerauth.crypto.client.signature that throw CryptoProviderExceptionModifier and TypeMethodDescriptionPowerAuthClientSignature.signatureForData(byte[] data, List<SecretKey> signatureKeys, byte[] ctrData, SignatureConfiguration signatureConfiguration) Compute a PowerAuth signature for given data, signature keys and counter. -
Uses of CryptoProviderException in io.getlime.security.powerauth.crypto.client.token
Methods in io.getlime.security.powerauth.crypto.client.token that throw CryptoProviderExceptionModifier and TypeMethodDescriptionbyte[]ClientTokenGenerator.computeTokenDigest(byte[] nonce, byte[] timestamp, String version, byte[] tokenSecret) Compute the digest of provided token information using given token secret.byte[]ClientTokenGenerator.generateTokenNonce()Generate random token nonce, 16 random bytes. -
Uses of CryptoProviderException in io.getlime.security.powerauth.crypto.client.vault
Methods in io.getlime.security.powerauth.crypto.client.vault that throw CryptoProviderExceptionModifier and TypeMethodDescriptionPowerAuthClientVault.decryptDevicePrivateKey(byte[] cDevicePrivateKey, SecretKey vaultEncryptionKey) Decrypts original device private key KEY_DEVICE_PRIVATE using the vault encryption key KEY_ENCRYPTION_VAULT.PowerAuthClientVault.decryptVaultEncryptionKey(byte[] cVaultEncryptionKey, SecretKey transportKey) Decrypts the vault encryption key KEY_ENCRYPTION_VAULT using KEY_TRANSPORT.byte[]PowerAuthClientVault.encryptDevicePrivateKey(PrivateKey devicePrivateKey, SecretKey vaultEncryptionKey) Encrypts original device private key KEY_DEVICE_PRIVATE using the vault encryption key KEY_ENCRYPTION_VAULT. -
Uses of CryptoProviderException in io.getlime.security.powerauth.crypto.lib.api
Methods in io.getlime.security.powerauth.crypto.lib.api that throw CryptoProviderExceptionModifier and TypeMethodDescriptionbyte[]Counter.init()Initialize counter by generating initial counter data. -
Uses of CryptoProviderException in io.getlime.security.powerauth.crypto.lib.config
Methods in io.getlime.security.powerauth.crypto.lib.config that throw CryptoProviderExceptionModifier and TypeMethodDescriptionstatic SignatureConfigurationSignatureConfiguration.forFormat(PowerAuthSignatureFormat format) Convert PowerAuth signature format to signature configuration. -
Uses of CryptoProviderException in io.getlime.security.powerauth.crypto.lib.generator
Methods in io.getlime.security.powerauth.crypto.lib.generator that throw CryptoProviderExceptionModifier and TypeMethodDescriptionKeyGenerator.computeSharedKey(PrivateKey privateKey, PublicKey publicKey) Computes a pre-shared key for given private key and public key (ECDH).KeyGenerator.computeSharedKey(PrivateKey privateKey, PublicKey publicKey, boolean keep32b) Computes a pre-shared key for given private key and public key (ECDH).IdentifierGenerator.deriveRecoveryCode(SecretKey secretKey, RecoverySeed seed) Derive recovery code and PUKs for given secret key and seed information.KeyGenerator.deriveSecretKey(SecretKey secret, byte[] index) Derive a new secret key KEY_SHARED from a master secret key KEY_MASTER based on following KDF:KeyGenerator.deriveSecretKeyFromPassword(String password, byte[] salt) Derive a long AES suitable key from a password and salt.KeyGenerator.deriveSecretKeyFromPassword(String password, byte[] salt, int iterations) Derive a long AES suitable key from a password and salt.KeyGenerator.deriveSecretKeyHmac(SecretKey secret, byte[] index) Derive a new secret key KEY_SHARED from a master secret key KEY_MASTER based on following KDF:KeyGenerator.deriveSecretKeyHmacLegacy(SecretKey secret, byte[] index) Deprecated.IdentifierGenerator.generateActivationCode()Generate version 3.0 or higher activation code.KeyGenerator.generateKeyPair()Generate a new ECDH key pair using P256r1 curve.byte[]KeyGenerator.generateRandomBytes(int len) Generate a new random byte array with given length.KeyGenerator.generateRandomSecretKey()Generate a new random symmetric key.IdentifierGenerator.generateRecoveryCode()Generate recovery code and PUK.IdentifierGenerator.generateRecoveryCode(SecretKey secretKey, int pukCount, boolean exportSeed) Generate recovery code and PUKs for given secret key, return optional seed information.byte[]HashBasedCounter.init()Generate initial counter data. -
Uses of CryptoProviderException in io.getlime.security.powerauth.crypto.lib.totp
Methods in io.getlime.security.powerauth.crypto.lib.totp that throw CryptoProviderExceptionModifier and TypeMethodDescriptionstatic byte[]Totp.generateTotpSha256(byte[] key, Instant instant, int digitsNumber) Generates a TOTP value for the given set of parameters using HmacSHA256 algorithm.static byte[]Totp.generateTotpSha256(byte[] key, Instant instant, Duration stepLength, int digitsNumber) Generates a TOTP value for the given set of parameters using HmacSHA256 algorithm.static byte[]Totp.generateTotpSha512(byte[] key, Instant instant, int digitsNumber) Generates a TOTP value for the given set of parameters using HmacSHA512 algorithm.static byte[]Totp.generateTotpSha512(byte[] key, Instant instant, Duration stepLength, int digitsNumber) Generates a TOTP value for the given set of parameters using HmacSHA512 algorithm.static booleanTotp.validateTotpSha256(byte[] otp, byte[] key, Instant instant, int digitsNumber) Validate a TOTP value for the given set of parameters using HmacSHA256 algorithm.static booleanTotp.validateTotpSha256(byte[] otp, byte[] key, Instant instant, int digitsNumber, int steps, Duration stepLength) Validate a TOTP value for the given set of parameters using HmacSHA256 algorithm.static booleanTotp.validateTotpSha512(byte[] otp, byte[] key, Instant instant, int digitsNumber) Validate a TOTP value for the given set of parameters using HmacSHA512 algorithm.static booleanTotp.validateTotpSha512(byte[] otp, byte[] key, Instant instant, int digitsNumber, int steps, Duration stepLength) Validate a TOTP value for the given set of parameters using HmacSHA512 algorithm. -
Uses of CryptoProviderException in io.getlime.security.powerauth.crypto.lib.util
Methods in io.getlime.security.powerauth.crypto.lib.util that throw CryptoProviderExceptionModifier and TypeMethodDescriptionbyte[]HashBasedCounterUtils.calculateHashFromHashBasedCounter(byte[] ctrData, SecretKey transportKey) Calculate hash from value representing the hash based counter.static StringECPublicKeyFingerprint.compute(ECPublicKey devicePublicKey, ECPublicKey serverPublicKey, String activationId, ActivationVersion activationVersion) Compute activation fingerprint.byte[]SignatureUtils.computeECDSASignature(byte[] bytes, PrivateKey masterPrivateKey) Compute ECDSA signature of given bytes with a private key.byte[]SignatureUtils.computeECDSASignature(byte[] bytes, PrivateKey masterPrivateKey, SecureRandom secureRandom) Compute ECDSA signature of given bytes with a private key, using a provided instance of SecureRandom.SignatureUtils.computePowerAuthSignature(byte[] data, List<SecretKey> signatureKeys, byte[] ctrData, SignatureConfiguration configuration) Compute PowerAuth signature for given data using a secret signature keys and counter byte array.byte[]TokenUtils.computeTokenDigest(byte[] nonce, byte[] timestamp, String version, byte[] tokenSecret) Compute the digest of provided token information using given token secret.KeyConvertor.convertBytesToPrivateKey(byte[] keyBytes) Convert a byte array to an EC private key by decoding the D number parameter (S in Java Security).KeyConvertor.convertBytesToPublicKey(byte[] keyBytes) Converts byte array to an EC public key, by decoding the Q point (W in Java Security).KeyConvertor.convertPointBytesToPublicKey(byte[] xBytes, byte[] yBytes) Converts provided byte array representing X coordinate of an EC public key.byte[]KeyConvertor.convertPublicKeyToBytes(PublicKey publicKey) Converts an EC public key to a byte array by encoding Q point parameter (W in Java Security).byte[]Decrypt given data using AES/CBC/PKCS7Padding with given initialization vector and secret key.byte[]Decrypt given data using given transformation with given initialization vector and secret key.byte[]KeyDerivationUtils.deriveIvForStatusBlobEncryption(byte[] challenge, byte[] nonce, SecretKey transportKey) Derive Initialization Vector for AES-CBC cipher used for an activation status blob encryption and decryption.byte[]Encrypt given data using AES/CBC/PKCS7Padding with given initialization vector and secret key.byte[]Encrypt given data using given transformation with given initialization vector and secret key.byte[]TokenUtils.generateTokenNonce()Generate random token nonce, 16 random bytes.byte[]TokenUtils.generateTokenSecret()Generate random token secret, 16 random bytes.byte[]HMACHashUtilities.hash(byte[] key, byte[] data) Compute a HMAC-SHA256 of given data with provided key bytesbyte[]Compute a HMAC-SHA256 of given data with provided key bytesstatic StringPasswordHash.hash(byte[] password) Generate hash in Argon2 Modular Crypt Format for specified password using Argon2i algorithm.booleanSignatureUtils.validateECDSASignature(byte[] signedBytes, byte[] signature, PublicKey masterPublicKey) Validate an ECDSA signature against given data using a public key.booleanSignatureUtils.validatePowerAuthSignature(byte[] data, String signature, List<SecretKey> signatureKeys, byte[] ctrData, SignatureConfiguration configuration) Validate the PowerAuth signature for given data using provided keys.booleanTokenUtils.validateTokenDigest(byte[] nonce, byte[] timestamp, String version, byte[] tokenSecret, byte[] tokenDigest) Validate provided token digest for given input data and provided token secret.booleanHashBasedCounterUtils.verifyHashForHashBasedCounter(byte[] receivedCtrDataHash, byte[] expectedCtrData, SecretKey transportKey) Verify whether client's value of hash based counter is equal to the value received from the server. -
Uses of CryptoProviderException in io.getlime.security.powerauth.crypto.server.activation
Methods in io.getlime.security.powerauth.crypto.server.activation that throw CryptoProviderExceptionModifier and TypeMethodDescriptionbyte[]PowerAuthServerActivation.calculateHashFromHashBasedCounter(byte[] ctrData, SecretKey transportKey) Calculate hash from value representing the hash based counter.PowerAuthServerActivation.computeActivationFingerprint(PublicKey devicePublicKey, PublicKey serverPublicKey, String activationId) Compute a fingerprint for the version 3 activation.PowerAuthServerActivation.computeActivationFingerprint(PublicKey devicePublicKey, PublicKey serverPublicKey, String activationId, ActivationVersion activationVersion) Compute a fingerprint for the activation.byte[]PowerAuthServerActivation.computeServerDataSignature(String activationId, byte[] C_serverPublicKey, PrivateKey masterPrivateKey) Compute an activation ID and encrypted server public key signature using the Master Private Key.byte[]PowerAuthServerActivation.encryptedStatusBlob(ActivationStatusBlobInfo statusBlobInfo, byte[] challenge, byte[] nonce, SecretKey transportKey) Returns an encrypted status blob as described in PowerAuth Specification.PowerAuthServerActivation.generateActivationCode()Generate a pseudo-unique activation code.byte[]PowerAuthServerActivation.generateActivationNonce()Generate a new server activation nonce.byte[]PowerAuthServerActivation.generateActivationSignature(String activationCode, PrivateKey masterPrivateKey) Generate signature for the activation code.PowerAuthServerActivation.generateServerKeyPair()Generate a server related activation key pair. -
Uses of CryptoProviderException in io.getlime.security.powerauth.crypto.server.keyfactory
Methods in io.getlime.security.powerauth.crypto.server.keyfactory that throw CryptoProviderExceptionModifier and TypeMethodDescriptionPowerAuthServerKeyFactory.deriveTransportKey(PrivateKey serverPrivateKey, PublicKey devicePublicKey) Derive transport key KEY_TRANSPORT in two steps: 1.PowerAuthServerKeyFactory.generateServerEncryptedVaultKey(SecretKey masterSecretKey) Generate a transport key KEY_ENCRYPTED_VAULT from master secret key KEY_MASTER_SECRET using KDF.PowerAuthServerKeyFactory.generateServerMasterSecretKey(PrivateKey serverPrivateKey, PublicKey devicePublicKey) Generate a master secret key KEY_MASTER_SECRET using the server private key KEY_SERVER_PRIVATE and device public key KEY_DEVICE_PUBLIC.PowerAuthServerKeyFactory.generateServerSignatureBiometryKey(SecretKey masterSecretKey) Generate a signature key KEY_SIGNATURE_BIOMETRY from master secret key KEY_MASTER_SECRET using KDF.PowerAuthServerKeyFactory.generateServerSignatureKnowledgeKey(SecretKey masterSecretKey) Generate a signature key KEY_SIGNATURE_KNOWLEDGE from master secret key KEY_MASTER_SECRET using KDF.PowerAuthServerKeyFactory.generateServerSignaturePossessionKey(SecretKey masterSecretKey) Generate a signature key KEY_SIGNATURE_POSSESSION from master secret key KEY_MASTER_SECRET using KDF.PowerAuthServerKeyFactory.generateServerTransportKey(SecretKey masterSecretKey) Generate a transport key KEY_TRANSPORT from master secret key KEY_MASTER_SECRET using KDF.PowerAuthServerKeyFactory.keysForSignatureType(PowerAuthSignatureTypes signatureType, SecretKey masterSecretKey) Generate a list with signature keys for given signature type and master secret -
Uses of CryptoProviderException in io.getlime.security.powerauth.crypto.server.signature
Methods in io.getlime.security.powerauth.crypto.server.signature that throw CryptoProviderExceptionModifier and TypeMethodDescriptionbooleanPowerAuthServerSignature.verifySignatureForData(byte[] data, String signature, List<SecretKey> signatureKeys, byte[] ctrData, SignatureConfiguration signatureConfiguration) Verify a PowerAuth signature against data using signature key list and counter. -
Uses of CryptoProviderException in io.getlime.security.powerauth.crypto.server.token
Methods in io.getlime.security.powerauth.crypto.server.token that throw CryptoProviderExceptionModifier and TypeMethodDescriptionbyte[]ServerTokenGenerator.generateTokenSecret()Generate random token secret, 16 random bytes.booleanServerTokenVerifier.validateTokenDigest(byte[] nonce, byte[] timestamp, String version, byte[] tokenSecret, byte[] tokenDigest) Validate provided token digest for given input data and provided token secret. -
Uses of CryptoProviderException in io.getlime.security.powerauth.crypto.server.vault
Methods in io.getlime.security.powerauth.crypto.server.vault that throw CryptoProviderExceptionModifier and TypeMethodDescriptionbyte[]PowerAuthServerVault.encryptVaultEncryptionKey(PrivateKey serverPrivateKey, PublicKey devicePublicKey) Return encrypted vault encryption key KEY_ENCRYPTION_VAULT using KEY_TRANSPORT.