Example #1
0
 public static byte[] rsaSign(
     @NotNull byte[] pkcs8encodedPrivateKey,
     @NotNull DigestAlgorithm digestAlgorithms,
     @NotNull byte[] data)
     throws InvalidKeyException {
   return engine.rsaSign(pkcs8encodedPrivateKey, digestAlgorithms, data);
 }
Example #2
0
 public static void verifySignature(
     @NotNull SignatureVerificationKey key,
     @Nullable DigestAlgorithm digestAlgorithms,
     @NotNull byte[] data,
     @NotNull byte[] signature)
     throws SignatureException, InvalidKeyException {
   engine.verifySignature(key, digestAlgorithms, data, signature);
 }
Example #3
0
 public static void rsaVerifySignature(
     @NotNull byte[] x509encodedPrivateKey,
     @NotNull DigestAlgorithm digestAlgorithms,
     @NotNull byte[] data,
     @NotNull byte[] signature)
     throws SignatureException, InvalidKeyException {
   engine.rsaVerifySignature(x509encodedPrivateKey, digestAlgorithms, data, signature);
 }
Example #4
0
 public static byte[] rsaEncrypt(
     @NotNull byte[] x509encodedPublicKey,
     @NotNull SymmetricAlgorithm symmetricAlgorithm,
     int symmetricKeySize,
     @NotNull byte[] data)
     throws EncryptionException {
   return engine.rsaEncrypt(x509encodedPublicKey, symmetricAlgorithm, symmetricKeySize, data);
 }
Example #5
0
 public static byte[] decrypt(
     @NotNull DecryptionKey key,
     @NotNull SymmetricAlgorithm symmetricAlgorithm,
     int symmetricKeySize,
     @NotNull byte[] data)
     throws DecryptionException {
   return engine.decrypt(key, symmetricAlgorithm, symmetricKeySize, data);
 }
Example #6
0
 public static byte[] encrypt(
     @NotNull EncryptionKey key,
     @NotNull SymmetricAlgorithm symmetricAlgorithm,
     int symmetricKeySize,
     @NotNull byte[] data,
     boolean compatibilityMode)
     throws EncryptionException {
   return engine.encrypt(key, symmetricAlgorithm, symmetricKeySize, data, compatibilityMode);
 }
Example #7
0
 @NotNull
 public static HMACKey generatePBEHMACKey(
     DigestAlgorithm pbkdf2DigestAlgorithm,
     DigestAlgorithm hmacDigestAlgorithm,
     char[] password,
     int iterations,
     byte[] salt) {
   return engine.generatePBEHMACKey(
       pbkdf2DigestAlgorithm, hmacDigestAlgorithm, password, iterations, salt);
 }
Example #8
0
 public static byte[] decrypt(
     @NotNull DecryptionKey key,
     @NotNull SymmetricAlgorithm symmetricAlgorithm,
     @NotNull String symmetricAlgorithmCipher,
     int symmetricKeySize,
     @NotNull byte[] data,
     @NotNull String cipherAlgorithm)
     throws DecryptionException {
   return engine.decrypt(
       key, symmetricAlgorithm, symmetricAlgorithmCipher, symmetricKeySize, data, cipherAlgorithm);
 }
Example #9
0
 @NotNull
 public static <K extends Key> K generateKey(@NotNull Class<K> keyType, int keySize) {
   return engine.generateKey(keyType, keySize);
 }
Example #10
0
 @NotNull
 public static RSAKeyPair generateRSAKeyPair(int keySize) {
   return engine.generateRSAKeyPair(keySize);
 }
Example #11
0
 @NotNull
 public static AESKey generateAESKey(
     AESKeyLen keySize, DHPrivateKey dhPrivateKey, DHPublicKey dhPublicKey)
     throws InvalidKeyException {
   return engine.generateAESKey(keySize, dhPrivateKey, dhPublicKey);
 }
Example #12
0
 @NotNull
 public static HMACKey generateHMACKey(
     DigestAlgorithm digestAlgorithm, DHPrivateKey dhPrivateKey, DHPublicKey dhPublicKey)
     throws InvalidKeyException {
   return engine.generateHMACKey(digestAlgorithm, dhPrivateKey, dhPublicKey);
 }
Example #13
0
 public static RSAPublicKey readRSAPublicKey(byte[] x509encodedKey) throws InvalidKeyException {
   return engine.readRSAPublicKey(x509encodedKey);
 }
Example #14
0
 @NotNull
 public static HMACKey generateHMACKey(DigestAlgorithm digestAlgorithm) {
   return engine.generateHMACKey(digestAlgorithm);
 }
Example #15
0
 @NotNull
 public static AESKey generateAESKey(AESKeyLen keySize) {
   return engine.generateAESKey(keySize);
 }
Example #16
0
 public static byte[] encrypt(
     @NotNull EncryptionKey key, @NotNull byte[] data, boolean compatibilityMode)
     throws EncryptionException {
   return engine.encrypt(key, data, compatibilityMode);
 }
Example #17
0
 public static RSAKeyPair readRSAKeyPair(byte[] customEncodedKey) throws InvalidKeyException {
   return engine.readRSAKeyPair(customEncodedKey);
 }
Example #18
0
 @NotNull
 public static DHParameters generateDHParameters(int keySize) {
   return engine.generateDHParameters(keySize);
 }
Example #19
0
 public static byte[] sign(@NotNull SigningKey key, @NotNull byte[] data)
     throws InvalidKeyException {
   return engine.sign(key, data);
 }
Example #20
0
 public static byte[] encrypt(@NotNull EncryptionKey key, @NotNull byte[] data)
     throws EncryptionException {
   return engine.encrypt(key, data);
 }
Example #21
0
 @NotNull
 public static AESKey generatePBEAESKey(
     DigestAlgorithm digestAlgorithm, char[] key, int iterations, byte[] salt, AESKeyLen keyLen) {
   return engine.generatePBEAESKey(digestAlgorithm, key, iterations, salt, keyLen);
 }
Example #22
0
 public static byte[] sha512(byte[] data) {
   return engine.sha512(data);
 }
Example #23
0
 public static byte[] digest(byte[] data, DigestAlgorithm alg) {
   return engine.digest(data, alg);
 }
Example #24
0
 public static Digest digest(DigestAlgorithm alg) {
   return engine.digest(alg);
 }
Example #25
0
 public static byte[] decrypt(
     @NotNull DecryptionKey key, @NotNull byte[] data, String cipherAlgorithm)
     throws DecryptionException {
   return engine.decrypt(key, data, cipherAlgorithm);
 }
Example #26
0
 public static AESKey readAESKey(byte[] rawEncodedKey) throws InvalidKeyException {
   return engine.readAESKey(rawEncodedKey);
 }
Example #27
0
 public static HMACKey readHMACKey(DigestAlgorithm digestAlgorithm, byte[] rawEncodedKey)
     throws InvalidKeyException {
   return engine.readHMACKey(digestAlgorithm, rawEncodedKey);
 }
Example #28
0
 public static void setDefaultCompatibilityMode(boolean defaultCompatibilityMode) {
   engine.setDefaultCompatibilityMode(defaultCompatibilityMode);
 }
Example #29
0
 public static boolean isTestEngine() {
   return engine.isTestEngine();
 }
Example #30
0
 public static byte[] sign(
     @NotNull SigningKey key, @Nullable DigestAlgorithm digestAlgorithms, @NotNull byte[] data)
     throws InvalidKeyException {
   return engine.sign(key, digestAlgorithms, data);
 }