public class CipherUtil
extends java.lang.Object
Constructor and Description |
---|
CipherUtil() |
Modifier and Type | Method and Description |
---|---|
static byte[] |
decrypt(CipherAlg aCipherAlg,
AlgorithmParams aParams,
byte[] aData,
byte[] aSecretKey) |
static byte[] |
decrypt(CipherAlg aCipherAlg,
AlgorithmParams aParams,
byte[] aData,
java.security.PrivateKey aSignPrivateKey) |
static byte[] |
decrypt(CipherAlg aCipherAlg,
AlgorithmParams aParams,
byte[] aData,
javax.crypto.SecretKey aSecretKey) |
static void |
decrypt(CipherAlg aCipherAlg,
AlgorithmParams aParams,
java.io.InputStream aEncrypted,
java.io.OutputStream aDecrypted,
byte[] aKey) |
static byte[] |
decrypt(tr.gov.tubitak.uekae.esya.api.asn.x509.EAlgorithmIdentifier aAlgorithm,
byte[] aData,
byte[] aSecretKey) |
static byte[] |
decrypt(PBEAlg aCipherAlg,
AlgorithmParams aParams,
PBEKeySpec aKeySpec,
byte[] aData) |
static byte[] |
decryptRSA(byte[] aData,
java.security.PrivateKey aKey)
use this method when the encoding is not known...
|
static byte[] |
decryptRSA(byte[] aData,
java.security.PrivateKey aKey,
tr.gov.tubitak.uekae.esya.api.asn.x509.EAlgorithmIdentifier algorithmIdentifier) |
static byte[] |
encrypt(CipherAlg aCipherAlg,
AlgorithmParams aParams,
byte[] aData,
byte[] aSecretKey) |
static byte[] |
encrypt(CipherAlg aCipherAlg,
AlgorithmParams aParams,
byte[] aData,
tr.gov.tubitak.uekae.esya.api.asn.x509.ECertificate aCertificate) |
static byte[] |
encrypt(CipherAlg aCipherAlg,
AlgorithmParams aParams,
byte[] aData,
java.security.PublicKey aSifPubKey) |
static void |
encrypt(CipherAlg aCipherAlg,
AlgorithmParams aParams,
java.io.InputStream aToBeEncrypted,
java.io.OutputStream aEncrypted,
byte[] aKey) |
static byte[] |
encrypt(tr.gov.tubitak.uekae.esya.api.asn.x509.EAlgorithmIdentifier aAlgorithm,
byte[] aData,
java.security.PublicKey aSifPubKey) |
static byte[] |
encrypt(PBEAlg aCipherAlg,
AlgorithmParams aParams,
PBEKeySpec aKeySpec,
byte[] aData) |
static boolean |
isEnciphermentCertificate(tr.gov.tubitak.uekae.esya.api.asn.x509.ECertificate aCertificate) |
static byte[] |
wrap(CipherAlg cipherAlg,
AlgorithmParams aParams,
javax.crypto.SecretKey aData,
java.security.PublicKey aSifPubKey) |
static byte[] |
wrap(WrapAlg wrapperAlg,
AlgorithmParams aParams,
javax.crypto.SecretKey aData,
java.security.PublicKey aSifPubKey) |
public static byte[] encrypt(CipherAlg aCipherAlg, AlgorithmParams aParams, byte[] aData, byte[] aSecretKey) throws CryptoException
CryptoException
public static byte[] decrypt(tr.gov.tubitak.uekae.esya.api.asn.x509.EAlgorithmIdentifier aAlgorithm, byte[] aData, byte[] aSecretKey) throws CryptoException
CryptoException
public static byte[] decrypt(CipherAlg aCipherAlg, AlgorithmParams aParams, byte[] aData, byte[] aSecretKey) throws CryptoException
CryptoException
public static byte[] decrypt(CipherAlg aCipherAlg, AlgorithmParams aParams, byte[] aData, javax.crypto.SecretKey aSecretKey) throws CryptoException
CryptoException
public static void encrypt(CipherAlg aCipherAlg, AlgorithmParams aParams, java.io.InputStream aToBeEncrypted, java.io.OutputStream aEncrypted, byte[] aKey) throws CryptoException, java.io.IOException
CryptoException
java.io.IOException
public static void decrypt(CipherAlg aCipherAlg, AlgorithmParams aParams, java.io.InputStream aEncrypted, java.io.OutputStream aDecrypted, byte[] aKey) throws CryptoException, java.io.IOException
CryptoException
java.io.IOException
public static byte[] encrypt(CipherAlg aCipherAlg, AlgorithmParams aParams, byte[] aData, java.security.PublicKey aSifPubKey) throws CryptoException
CryptoException
public static byte[] wrap(CipherAlg cipherAlg, AlgorithmParams aParams, javax.crypto.SecretKey aData, java.security.PublicKey aSifPubKey) throws CryptoException
CryptoException
public static byte[] wrap(WrapAlg wrapperAlg, AlgorithmParams aParams, javax.crypto.SecretKey aData, java.security.PublicKey aSifPubKey) throws CryptoException
CryptoException
public static byte[] encrypt(tr.gov.tubitak.uekae.esya.api.asn.x509.EAlgorithmIdentifier aAlgorithm, byte[] aData, java.security.PublicKey aSifPubKey) throws CryptoException
CryptoException
public static byte[] encrypt(CipherAlg aCipherAlg, AlgorithmParams aParams, byte[] aData, tr.gov.tubitak.uekae.esya.api.asn.x509.ECertificate aCertificate) throws CryptoException
CryptoException
public static byte[] decrypt(CipherAlg aCipherAlg, AlgorithmParams aParams, byte[] aData, java.security.PrivateKey aSignPrivateKey) throws CryptoException
CryptoException
public static byte[] decryptRSA(byte[] aData, java.security.PrivateKey aKey) throws CryptoException
CryptoException
public static byte[] decryptRSA(byte[] aData, java.security.PrivateKey aKey, tr.gov.tubitak.uekae.esya.api.asn.x509.EAlgorithmIdentifier algorithmIdentifier) throws CryptoException
CryptoException
public static byte[] decrypt(PBEAlg aCipherAlg, AlgorithmParams aParams, PBEKeySpec aKeySpec, byte[] aData) throws CryptoException
CryptoException
public static byte[] encrypt(PBEAlg aCipherAlg, AlgorithmParams aParams, PBEKeySpec aKeySpec, byte[] aData) throws CryptoException
CryptoException
public static boolean isEnciphermentCertificate(tr.gov.tubitak.uekae.esya.api.asn.x509.ECertificate aCertificate)
Copyright © 2025. All rights reserved.