Modifier and Type | Method and Description |
---|---|
void |
RandomGenerator.addSeeder(tr.gov.tubitak.uekae.esya.api.common.crypto.ISeed seeder) |
java.security.PrivateKey |
KeyFactory.decodePrivateKey(AsymmetricAlg aAsymmetricAlg,
byte[] aBytes) |
java.security.PublicKey |
KeyFactory.decodePublicKey(AsymmetricAlg aAsymmetricAlg,
byte[] aBytes) |
byte[] |
MAC.doFinal(byte[] aData) |
abstract byte[] |
Cipher.doFinal(byte[] aData) |
byte[] |
BufferedCipher.doFinal(byte[] aData)
Last step of decryption.
|
javax.crypto.SecretKey |
KeyAgreement.generateKey(java.security.Key aKey,
Algorithm alg) |
java.security.KeyPair |
KeyPairGenerator.generateKeyPair(AlgorithmParams aParams) |
java.security.PrivateKey |
KeyFactory.generatePrivateKey(java.security.spec.KeySpec aKeySpec) |
java.security.PublicKey |
KeyFactory.generatePublicKey(java.security.spec.KeySpec aKeySpec) |
javax.crypto.SecretKey |
KeyFactory.generateSecretKey(CipherAlg alg,
int keyLength) |
javax.crypto.SecretKey |
KeyFactory.generateSecretKey(KeySpec aKeySpec) |
static BufferedCipher |
Crypto.getDecryptor(CipherAlg aCipherAlg) |
static Digester |
Crypto.getDigester(DigestAlg aDigestAlg) |
static BufferedCipher |
Crypto.getEncryptor(CipherAlg aCipherAlg) |
static KeyAgreement |
Crypto.getKeyAgreement(KeyAgreementAlg aKeyAgreementAlg) |
static KeyFactory |
Crypto.getKeyFactory() |
static KeyPairGenerator |
Crypto.getKeyPairGenerator(AsymmetricAlg aAsymmetricAlg) |
static MAC |
Crypto.getMAC(MACAlg aMACAlg) |
int |
RandomGenerator.getSeederCount() |
static Signer |
Crypto.getSigner(SignatureAlg aSignatureAlg) |
static Wrapper |
Crypto.getUnwrapper(WrapAlg aWrapAlg) |
static Verifier |
Crypto.getVerifier(SignatureAlg aSignatureAlg) |
static Wrapper |
Crypto.getWrapper(WrapAlg aWrapAlg) |
void |
MAC.init(byte[] aKey,
AlgorithmParams aParams) |
abstract void |
Cipher.init(byte[] aKey,
AlgorithmParams aParams) |
void |
BufferedCipher.init(byte[] aKey,
AlgorithmParams aParams) |
void |
Wrapper.init(java.security.Key aKey) |
void |
Wrapper.init(java.security.Key aKey,
AlgorithmParams aParams) |
void |
MAC.init(java.security.Key aKey,
AlgorithmParams aParams) |
void |
KeyAgreement.init(java.security.Key aKey,
AlgorithmParams aParams) |
abstract void |
Cipher.init(java.security.Key aKey,
AlgorithmParams aParams) |
void |
BufferedCipher.init(java.security.Key aKey,
AlgorithmParams aParams) |
abstract void |
Signer.init(java.security.PrivateKey aPrivateKey) |
abstract void |
Signer.init(java.security.PrivateKey aPrivateKey,
AlgorithmParams aParams) |
void |
Verifier.init(java.security.PublicKey aPublicKey) |
void |
Verifier.init(java.security.PublicKey aPublicKey,
AlgorithmParams aParams) |
void |
MAC.process(byte[] aData) |
abstract byte[] |
Cipher.process(byte[] aData)
Process subsequent block of data
|
void |
BufferedCipher.process(byte[] aData) |
void |
BufferedCipher.process(byte[] aData,
int aOffset,
int aLength) |
void |
RandomGenerator.removeAllSeeders() |
boolean |
RandomGenerator.removeSeeder(tr.gov.tubitak.uekae.esya.api.common.crypto.ISeed seeder) |
void |
Verifier.reset() |
abstract void |
Signer.reset() |
abstract void |
Cipher.reset()
Reset underlying cipher for reuse
|
void |
BufferedCipher.reset()
If user supplied stream is used, it should be set again, cause
OutputStream dont have reset method
|
static void |
Crypto.setProvider(java.lang.String aFullyQualifiedClassName)
Set Crypto provider with Fully Qualified ClassName
|
abstract byte[] |
Signer.sign(byte[] aData) |
java.security.Key |
Wrapper.unwrap(byte[] data)
Unwrap Key
|
java.security.Key |
Wrapper.unwrap(byte[] data,
java.lang.Object keyTemplateObj)
Unwrap key with specified Key Template.
|
byte[] |
Wrapper.wrap(java.security.Key aKey) |
Modifier and Type | Method and Description |
---|---|
static tr.gov.tubitak.uekae.esya.api.common.util.bag.Pair<SignatureAlg,AlgorithmParams> |
SignatureAlg.fromAlgorithmIdentifier(tr.gov.tubitak.uekae.esya.api.asn.x509.EAlgorithmIdentifier aAlgoId) |
static tr.gov.tubitak.uekae.esya.api.common.util.bag.Pair<CipherAlg,AlgorithmParams> |
CipherAlg.fromAlgorithmIdentifier(tr.gov.tubitak.uekae.esya.api.asn.x509.EAlgorithmIdentifier aAlgoritma) |
tr.gov.tubitak.uekae.esya.api.asn.x509.EAlgorithmIdentifier |
SignatureAlg.toAlgorithmIdentifier(AlgorithmParams aParams) |
tr.gov.tubitak.uekae.esya.api.asn.x509.EAlgorithmIdentifier |
CipherAlg.toAlgorithmIdentifier(byte[] aIV) |
Modifier and Type | Class and Description |
---|---|
class |
AlreadyInitializedException
Title: CC
|
class |
ArgErrorException
Title: ESYA
|
class |
CMSException
Title:
|
class |
EncodeDecodeException
Title: ESYA
|
class |
HardwareException
Title: ESYA
|
class |
ModNotSelected
Title: CC
|
class |
NotInitializedException
Title: CC
|
class |
NullParameterException
Title:
|
class |
UnknownElement
Title: CC
|
Modifier and Type | Method and Description |
---|---|
byte[] |
RSAPSSParams.getEncoded() |
byte[] |
ParamsWithOctetString.getEncoded() |
byte[] |
AlgorithmParams.getEncoded() |
Modifier and Type | Method and Description |
---|---|
Cipher |
CryptoProvider.getDecryptor(CipherAlg aCipherAlg) |
Digester |
CryptoProvider.getDigester(DigestAlg aDigestAlg) |
Cipher |
CryptoProvider.getEncryptor(CipherAlg aCipherAlg) |
KeyAgreement |
CryptoProvider.getKeyAgreement(KeyAgreementAlg aKeyAgreementAlg) |
KeyFactory |
CryptoProvider.getKeyFactory() |
KeyPairGenerator |
CryptoProvider.getKeyPairGenerator(AsymmetricAlg aAsymmetricAlg) |
MAC |
CryptoProvider.getMAC(MACAlg aMACAlg) |
Signer |
CryptoProvider.getSigner(SignatureAlg aSignatureAlg) |
Wrapper |
CryptoProvider.getUnwrapper(WrapAlg aWrapAlg) |
Verifier |
CryptoProvider.getVerifier(SignatureAlg aSignatureAlg) |
Wrapper |
CryptoProvider.getWrapper(WrapAlg aWrapAlg) |
Modifier and Type | Method and Description |
---|---|
byte[] |
PBEEncryptor.doFinal(byte[] aData) |
byte[] |
PBEDecryptor.doFinal(byte[] aData) |
void |
PBEEncryptor.init(byte[] aKey,
AlgorithmParams aParams) |
void |
PBEDecryptor.init(byte[] aKey,
AlgorithmParams aParams) |
void |
PBEEncryptor.init(java.security.Key aKey,
AlgorithmParams aParams) |
void |
PBEDecryptor.init(java.security.Key aKey,
AlgorithmParams aParams) |
byte[] |
PBEEncryptor.process(byte[] aData) |
byte[] |
PBEDecryptor.process(byte[] aData) |
void |
PBEEncryptor.reset() |
void |
PBEDecryptor.reset() |
Constructor and Description |
---|
PBEEncryptor(PBEAlg aPBEAlg) |
Modifier and Type | Method and Description |
---|---|
static java.security.PrivateKey |
KeyUtil.decodePrivateKey(AsymmetricAlg aAsymmetricAlg,
byte[] aBytes) |
static java.security.PublicKey |
KeyUtil.decodePublicKey(AsymmetricAlg aAsymmetricAlg,
byte[] aBytes) |
static java.security.PublicKey |
KeyUtil.decodePublicKey(tr.gov.tubitak.uekae.esya.api.asn.x509.ESubjectPublicKeyInfo aSubjectPublicKeyInfo) |
static byte[] |
CipherUtil.decrypt(CipherAlg aCipherAlg,
AlgorithmParams aParams,
byte[] aData,
byte[] aSecretKey) |
static byte[] |
CipherUtil.decrypt(CipherAlg aCipherAlg,
AlgorithmParams aParams,
byte[] aData,
java.security.PrivateKey aSignPrivateKey) |
static byte[] |
CipherUtil.decrypt(CipherAlg aCipherAlg,
AlgorithmParams aParams,
byte[] aData,
javax.crypto.SecretKey aSecretKey) |
static void |
CipherUtil.decrypt(CipherAlg aCipherAlg,
AlgorithmParams aParams,
java.io.InputStream aEncrypted,
java.io.OutputStream aDecrypted,
byte[] aKey) |
static byte[] |
CipherUtil.decrypt(tr.gov.tubitak.uekae.esya.api.asn.x509.EAlgorithmIdentifier aAlgorithm,
byte[] aData,
byte[] aSecretKey) |
static byte[] |
CipherUtil.decrypt(PBEAlg aCipherAlg,
AlgorithmParams aParams,
PBEKeySpec aKeySpec,
byte[] aData) |
static byte[] |
CipherUtil.decryptRSA(byte[] aData,
java.security.PrivateKey aKey)
use this method when the encoding is not known...
|
static byte[] |
CipherUtil.decryptRSA(byte[] aData,
java.security.PrivateKey aKey,
tr.gov.tubitak.uekae.esya.api.asn.x509.EAlgorithmIdentifier algorithmIdentifier) |
static byte[] |
DigestUtil.digest(DigestAlg aDigestAlg,
byte[] aInput) |
static byte[] |
DigestUtil.digest(DigestAlg aDigestAlg,
byte[] aInput,
int aOffset,
int aLength) |
static byte[] |
DigestUtil.digestFile(DigestAlg aDigestAlg,
java.lang.String aFileName) |
static byte[] |
DigestUtil.digestFile(DigestAlg aDigestAlg,
java.lang.String aFileName,
int aBlockSize) |
static byte[] |
DigestUtil.digestStream(DigestAlg aDigestAlg,
java.io.InputStream aInputStream) |
static byte[] |
DigestUtil.digestStream(DigestAlg aDigestAlg,
java.io.InputStream aInputStream,
int aBlockSize) |
static byte[] |
CipherUtil.encrypt(CipherAlg aCipherAlg,
AlgorithmParams aParams,
byte[] aData,
byte[] aSecretKey) |
static byte[] |
CipherUtil.encrypt(CipherAlg aCipherAlg,
AlgorithmParams aParams,
byte[] aData,
tr.gov.tubitak.uekae.esya.api.asn.x509.ECertificate aCertificate) |
static byte[] |
CipherUtil.encrypt(CipherAlg aCipherAlg,
AlgorithmParams aParams,
byte[] aData,
java.security.PublicKey aSifPubKey) |
static void |
CipherUtil.encrypt(CipherAlg aCipherAlg,
AlgorithmParams aParams,
java.io.InputStream aToBeEncrypted,
java.io.OutputStream aEncrypted,
byte[] aKey) |
static byte[] |
CipherUtil.encrypt(tr.gov.tubitak.uekae.esya.api.asn.x509.EAlgorithmIdentifier aAlgorithm,
byte[] aData,
java.security.PublicKey aSifPubKey) |
static byte[] |
CipherUtil.encrypt(PBEAlg aCipherAlg,
AlgorithmParams aParams,
PBEKeySpec aKeySpec,
byte[] aData) |
static byte[] |
KeyUtil.generateKey(CipherAlg aAlg,
int aBitLength) |
static java.security.KeyPair |
KeyUtil.generateKeyPair(AsymmetricAlg aAsymmetricAlg,
int aLength) |
static java.security.PrivateKey |
KeyUtil.generatePrivateKey(java.security.spec.KeySpec aKeySpec) |
static java.security.PublicKey |
KeyUtil.generatePublicKey(java.security.spec.KeySpec aKeySpec) |
static javax.crypto.SecretKey |
KeyUtil.generateSecretKey(CipherAlg mSymmetricAlgorithm,
int keyLength) |
static javax.crypto.SecretKey |
KeyUtil.generateSecretKey(KeySpec aSpec) |
static int |
KeyUtil.getKeyLength(tr.gov.tubitak.uekae.esya.api.asn.x509.ECertificate certificate) |
static int |
KeyUtil.getKeyLength(java.security.spec.KeySpec publicKeySpec) |
static int |
KeyUtil.getKeyLength(java.security.PrivateKey aKey) |
static int |
KeyUtil.getKeyLength(java.security.PublicKey aKey) |
static byte[] |
SignUtil.sign(SignatureAlg aSignatureAlg,
AlgorithmParams aParams,
byte[] aToBeSigned,
java.security.PrivateKey aSignPrivateKey) |
static byte[] |
SignUtil.sign(SignatureAlg aSignatureAlg,
byte[] aToBeSigned,
java.security.PrivateKey aSignPrivateKey) |
static boolean |
SignUtil.verify(SignatureAlg aSignatureAlg,
AlgorithmParams aParams,
byte[] aImzalanan,
byte[] aImzali,
tr.gov.tubitak.uekae.esya.api.asn.x509.ECertificate aCertificate) |
static boolean |
SignUtil.verify(SignatureAlg aSignatureAlg,
AlgorithmParams aParams,
byte[] aToBeSigned,
byte[] aSigned,
java.security.PublicKey aSignPublicKey) |
static boolean |
SignUtil.verify(SignatureAlg aSignatureAlg,
byte[] aImzalanan,
byte[] aImzali,
tr.gov.tubitak.uekae.esya.api.asn.x509.ECertificate aCertificate) |
static boolean |
SignUtil.verify(SignatureAlg aSignatureAlg,
byte[] aToBeSigned,
byte[] aSigned,
java.security.PublicKey aSignPublicKey) |
static byte[] |
CipherUtil.wrap(CipherAlg cipherAlg,
AlgorithmParams aParams,
javax.crypto.SecretKey aData,
java.security.PublicKey aSifPubKey) |
static byte[] |
CipherUtil.wrap(WrapAlg wrapperAlg,
AlgorithmParams aParams,
javax.crypto.SecretKey aData,
java.security.PublicKey aSifPubKey) |
Constructor and Description |
---|
PfxParser(java.io.InputStream aPFX,
char[] aPassword)
Create pfx parser from inputstream with password
|
PfxParser(java.io.InputStream aPFX,
java.lang.String aPassword) |
Copyright © 2025. All rights reserved.