Example usage for org.bouncycastle.crypto.engines AESEngine AESEngine

List of usage examples for org.bouncycastle.crypto.engines AESEngine AESEngine

Introduction

In this page you can find the example usage for org.bouncycastle.crypto.engines AESEngine AESEngine.

Prototype

public AESEngine() 

Source Link

Document

default constructor - 128 bit block size.

Usage

From source file:ubicrypt.core.crypto.AESGCM.java

License:Open Source License

private static AEADBlockCipher cipherObject(final boolean encrypt, final SecretKeySpec key, final byte[] iv) {
    final AEADBlockCipher cipher = new GCMBlockCipher(new AESEngine());
    cipher.init(encrypt, new AEADParameters(new KeyParameter(key.getEncoded()), 128, iv));
    return cipher;
}