Uses of Class
io.getlime.security.powerauth.crypto.lib.model.exception.GenericCryptoException
Packages that use GenericCryptoException
Package
Description
-
Uses of GenericCryptoException in io.getlime.security.powerauth.crypto.client.activation
Methods in io.getlime.security.powerauth.crypto.client.activation that throw GenericCryptoExceptionModifier 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.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 GenericCryptoException in io.getlime.security.powerauth.crypto.client.keyfactory
Methods in io.getlime.security.powerauth.crypto.client.keyfactory that throw GenericCryptoExceptionModifier and TypeMethodDescriptionPowerAuthClientKeyFactory.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 GenericCryptoException in io.getlime.security.powerauth.crypto.client.signature
Methods in io.getlime.security.powerauth.crypto.client.signature that throw GenericCryptoExceptionModifier 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 GenericCryptoException in io.getlime.security.powerauth.crypto.client.token
Methods in io.getlime.security.powerauth.crypto.client.token that throw GenericCryptoExceptionModifier and TypeMethodDescriptionbyte[]ClientTokenGenerator.computeTokenDigest(byte[] nonce, byte[] timestamp, String version, byte[] tokenSecret) Compute the digest of provided token information using given token secret. -
Uses of GenericCryptoException in io.getlime.security.powerauth.crypto.client.vault
Methods in io.getlime.security.powerauth.crypto.client.vault that throw GenericCryptoExceptionModifier 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 GenericCryptoException in io.getlime.security.powerauth.crypto.lib.encryptor.ecies.kdf
Methods in io.getlime.security.powerauth.crypto.lib.encryptor.ecies.kdf that throw GenericCryptoExceptionModifier and TypeMethodDescriptionstatic byte[]KdfX9_63.derive(byte[] secret, byte[] sharedInfo, int outputBytes) Derive a new key using X9.63 with SHA256 digest. -
Uses of GenericCryptoException in io.getlime.security.powerauth.crypto.lib.enums
Methods in io.getlime.security.powerauth.crypto.lib.enums that throw GenericCryptoExceptionModifier and TypeMethodDescriptionstatic PowerAuthSignatureFormatPowerAuthSignatureFormat.getFormatForSignatureVersion(String signatureVersion) Get signature format for signature version. -
Uses of GenericCryptoException in io.getlime.security.powerauth.crypto.lib.generator
Methods in io.getlime.security.powerauth.crypto.lib.generator that throw GenericCryptoExceptionModifier and TypeMethodDescriptionIdentifierGenerator.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.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(byte[] randomBytes) Generate version 3.0 or higher activation code using provided random bytes.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. -
Uses of GenericCryptoException in io.getlime.security.powerauth.crypto.lib.util
Methods in io.getlime.security.powerauth.crypto.lib.util that throw GenericCryptoExceptionModifier 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.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[]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[]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 bytesvoidPublicKeyValidator.validate(org.bouncycastle.math.ec.ECCurve curve, org.bouncycastle.math.ec.ECPoint point) Validate the public key: check that the EC point is not the point at infinity check that point order matches the order defined in EC curvebooleanSignatureUtils.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 GenericCryptoException in io.getlime.security.powerauth.crypto.server.activation
Methods in io.getlime.security.powerauth.crypto.server.activation that throw GenericCryptoExceptionModifier 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.byte[]PowerAuthServerActivation.generateActivationSignature(String activationCode, PrivateKey masterPrivateKey) Generate signature for the activation code. -
Uses of GenericCryptoException in io.getlime.security.powerauth.crypto.server.keyfactory
Methods in io.getlime.security.powerauth.crypto.server.keyfactory that throw GenericCryptoExceptionModifier 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.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 GenericCryptoException in io.getlime.security.powerauth.crypto.server.signature
Methods in io.getlime.security.powerauth.crypto.server.signature that throw GenericCryptoExceptionModifier 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 GenericCryptoException in io.getlime.security.powerauth.crypto.server.token
Methods in io.getlime.security.powerauth.crypto.server.token that throw GenericCryptoExceptionModifier and TypeMethodDescriptionbooleanServerTokenVerifier.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 GenericCryptoException in io.getlime.security.powerauth.crypto.server.util
Constructors in io.getlime.security.powerauth.crypto.server.util that throw GenericCryptoExceptionModifierConstructorDescriptionDataDigest(int length) Initializes the data digest instance that produces digest of specified length. -
Uses of GenericCryptoException in io.getlime.security.powerauth.crypto.server.vault
Methods in io.getlime.security.powerauth.crypto.server.vault that throw GenericCryptoExceptionModifier and TypeMethodDescriptionbyte[]PowerAuthServerVault.encryptVaultEncryptionKey(PrivateKey serverPrivateKey, PublicKey devicePublicKey) Return encrypted vault encryption key KEY_ENCRYPTION_VAULT using KEY_TRANSPORT.