public class AES256Gcm extends AbstractJCECipher
DECRYPT_MODE, ENCRYPT_MODE
Constructor and Description |
---|
AES256Gcm() |
Modifier and Type | Method and Description |
---|---|
int |
getMacLength() |
void |
init(int mode,
byte[] iv,
byte[] keydata)
Initialize the cipher with up to 40 bytes of iv and key data.
|
boolean |
isMAC() |
void |
transform(byte[] buf,
int start,
byte[] output,
int off,
int len)
Transform the byte array according to the cipher mode; it is legal for the
source and destination arrays to reference the same physical array so
care should be taken in the transformation process to safeguard this rule.
|
createCipher, generateAlgorithmSpec, generateSecretKeySpec, getBlockSize, getKeyLength, getProvider, getProviderName
getAlgorithm, getPriority, getSecurityLevel, transform
public AES256Gcm() throws IOException
IOException
public void init(int mode, byte[] iv, byte[] keydata) throws IOException
SshCipher
init
in class AbstractJCECipher
mode
- the mode to operateiv
- the initiaization vectorkeydata
- the key dataIOException
public void transform(byte[] buf, int start, byte[] output, int off, int len) throws IOException
SshCipher
transform
in class AbstractJCECipher
IOException
public int getMacLength()
getMacLength
in class SshCipher
Copyright © 2024. All rights reserved.