public static class JCryptoBox.Seal extends Object
JCryptoBox.sealing(PublicKey),
JCryptoBox.Unseal| Modifier and Type | Method and Description |
|---|---|
byte[] |
seal(byte[] message)
Encrypts the given message bytes and returns the sealed box data.
|
byte[] |
seal(byte[] message,
int offset,
int length)
Encrypts the given slice of input data and returns the sealed box data.
|
void |
seal(byte[] input,
int inOffset,
int inLength,
byte[] output,
int outOffset)
Encrypts the given slice of input data into a sealed box in the provided output array at the given offset.
|
public void seal(byte[] input,
int inOffset,
int inLength,
byte[] output,
int outOffset)
input - array of bytes to read data to encryptinOffset - where in the input array to begin reading datainLength - how many bytes to read and encryptoutput - array of bytes to write encrypted data tooutOffset - where in the output array to begin writing dataIllegalArgumentException - if the output buffer is too smallArrayIndexOutOfBoundsException - if the offsets or length are out of bounds of the given arraysNullPointerException - if the input or output arrays are nullpublic byte[] seal(byte[] message,
int offset,
int length)
message - array of bytes to read data to encryptoffset - where in the message array to begin reading data to encryptlength - how many bytes to read and encryptNullPointerException - if the given array is nullpublic byte[] seal(byte[] message)
message - array of bytes to read and encryptNullPointerException - if the given array is nullCopyright © 2021. All rights reserved.