| Modifier and Type | Class and Description |
|---|---|
| private static class | |
| private static class |
| Modifier and Type | Field and Description |
|---|---|
| private static final int | |
| private static final byte[] | |
| private static final int | |
| private static final int | |
| private static final byte[] | |
| private static final int | |
| private static final byte[] | |
| private HPKE. | |
| private static final byte[] | |
| private static final byte[] | |
| private static final byte[] | |
| private static final byte[] | |
| private static final byte[] | |
| private int |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| private static byte[] | |
| protected byte[] | engineDoFinal(byte[] input, int inputOffset, int inputLen)
Implements abstract javax. Encrypts or decrypts data in a single-part operation, or finishes a multiple-part operation. |
| protected int | engineDoFinal(byte[] input, int inputOffset, int inputLen, byte[] output, int outputOffset)
Implements abstract javax. Encrypts or decrypts data in a single-part operation, or finishes a multiple-part operation. |
| protected byte[] | |
| protected SecretKey | |
| protected int | engineGetBlockSize()
Implements abstract javax. Returns the block size (in bytes). |
| protected byte[] | engineGetIV()
Implements abstract javax. Returns the initialization vector (IV) in a new buffer. |
| protected int | engineGetOutputSize(int inputLen)
Implements abstract javax. Returns the length in bytes that an output buffer would
need to be in order to hold the result of the next |
| protected AlgorithmParameters | engineGetParameters()
Implements abstract javax. Returns the parameters used with this cipher. |
| protected void | engineInit(int opmode, Key key, SecureRandom random)
Implements abstract javax. Initializes this |
| protected void | engineInit(int opmode, Key key, AlgorithmParameterSpec params, SecureRandom random)
Implements abstract javax. Initializes this |
| protected void | engineInit(int opmode, Key key, AlgorithmParameters params, SecureRandom random)
Implements abstract javax. Initializes this |
| protected void | engineSetMode(String mode)
Implements abstract javax. Sets the mode of this cipher. |
| protected void | engineSetPadding(String padding)
Implements abstract javax. Sets the padding mechanism of this cipher. |
| protected byte[] | engineUpdate(byte[] input, int inputOffset, int inputLen)
Implements abstract javax. Continues a multiple-part encryption or decryption operation
(depending on how this |
| protected int | engineUpdate(byte[] input, int inputOffset, int inputLen, byte[] output, int outputOffset)
Implements abstract javax. Continues a multiple-part encryption or decryption operation
(depending on how this |
| protected void | engineUpdateAAD(byte[] src, int offset, int len)
Overrides javax. Continues a multipart update of the Additional Authentication Data (AAD), using a subset of the provided buffer. |
| protected void | engineUpdateAAD(ByteBuffer src)
Overrides javax. Continues a multipart update of the Additional Authentication Data (AAD). |
| private void | |
| private static boolean |
| AFTER_FINAL | back to summary |
|---|---|
| private static final int AFTER_FINAL | |
| BASE_NONCE | back to summary |
|---|---|
| private static final byte[] BASE_NONCE | |
| BEGIN | back to summary |
|---|---|
| private static final int BEGIN | |
| ENCRYPT_AND_EXPORT | back to summary |
|---|---|
| private static final int ENCRYPT_AND_EXPORT | |
| EXP | back to summary |
|---|---|
| private static final byte[] EXP | |
| EXPORT_ONLY | back to summary |
|---|---|
| private static final int EXPORT_ONLY | |
| HPKE | back to summary |
|---|---|
| private static final byte[] HPKE | |
| impl | back to summary |
|---|---|
| private HPKE. | |
| INFO_HASH | back to summary |
|---|---|
| private static final byte[] INFO_HASH | |
| KEY | back to summary |
|---|---|
| private static final byte[] KEY | |
| PSK_ID_HASH | back to summary |
|---|---|
| private static final byte[] PSK_ID_HASH | |
| SEC | back to summary |
|---|---|
| private static final byte[] SEC | |
| SECRET | back to summary |
|---|---|
| private static final byte[] SECRET | |
| state | back to summary |
|---|---|
| private int state | |
| HPKE | back to summary |
|---|---|
| public HPKE() | |
| concat | back to summary |
|---|---|
| private static byte[] concat(byte[]... inputs) | |
| engineDoFinal | back to summary |
|---|---|
| protected byte[] engineDoFinal(byte[] input, int inputOffset, int inputLen) throws IllegalBlockSizeException, BadPaddingException Implements abstract javax. Doc from javax. Encrypts or decrypts data in a single-part operation,
or finishes a multiple-part operation.
The data is encrypted or decrypted, depending on how this
The first Upon finishing, this method resets this Note if any exception is thrown, this
| |
| engineDoFinal | back to summary |
|---|---|
| protected int engineDoFinal(byte[] input, int inputOffset, int inputLen, byte[] output, int outputOffset) throws ShortBufferException, IllegalBlockSizeException, BadPaddingException Implements abstract javax. Doc from javax. Encrypts or decrypts data in a single-part operation,
or finishes a multiple-part operation.
The data is encrypted or decrypted, depending on how this
The first If the Upon finishing, this method resets this Note if any exception is thrown, this
| |
| engineExportData | back to summary |
|---|---|
| protected byte[] engineExportData(byte[] context, int length) | |
| engineExportKey | back to summary |
|---|---|
| protected SecretKey engineExportKey(String algorithm, byte[] context, int length) | |
| engineGetBlockSize | back to summary |
|---|---|
| protected int engineGetBlockSize() Implements abstract javax. Doc from javax. Returns the block size (in bytes).
| |
| engineGetIV | back to summary |
|---|---|
| protected byte[] engineGetIV() Implements abstract javax. Doc from javax. Returns the initialization vector (IV) in a new buffer. This is useful in the context of password-based encryption or decryption, where the IV is derived from a user-provided passphrase.
| |
| engineGetOutputSize | back to summary |
|---|---|
| protected int engineGetOutputSize(int inputLen) Implements abstract javax. Doc from javax. Returns the length in bytes that an output buffer would
need to be in order to hold the result of the next This call takes into account any unprocessed (buffered) data from a
previous The actual output length of the next
| |
| engineGetParameters | back to summary |
|---|---|
| protected AlgorithmParameters engineGetParameters() Implements abstract javax. Doc from javax. Returns the parameters used with this cipher. The returned parameters may be the same that were used to initialize
this cipher, or may contain additional default or random parameter
values used by the underlying cipher implementation. If the required
parameters were not supplied and can be generated by the cipher, the
generated parameters are returned. Otherwise,
| |
| engineInit | back to summary |
|---|---|
| protected void engineInit(int opmode, Key key, SecureRandom random) throws InvalidKeyException Implements abstract javax. Doc from javax. Initializes this The If this cipher requires any algorithm parameters that cannot be
derived from the given If this cipher requires algorithm parameters that cannot be derived from the input parameters, and there are no reasonable provider-specific default values, initialization will necessarily fail. If this cipher (including its feedback or padding scheme)
requires any random bytes (e.g., for parameter generation), it will get
them from Note that when a
| |
| engineInit | back to summary |
|---|---|
| protected void engineInit(int opmode, Key key, AlgorithmParameterSpec params, SecureRandom random) throws InvalidKeyException, InvalidAlgorithmParameterException Implements abstract javax. Doc from javax. Initializes this The If this cipher requires any algorithm parameters and
If this cipher requires algorithm parameters that cannot be derived from the input parameters, and there are no reasonable provider-specific default values, initialization will necessarily fail. If this cipher (including its feedback or padding scheme)
requires any random bytes (e.g., for parameter generation), it will get
them from Note that when a
| |
| engineInit | back to summary |
|---|---|
| protected void engineInit(int opmode, Key key, AlgorithmParameters params, SecureRandom random) throws InvalidKeyException, InvalidAlgorithmParameterException Implements abstract javax. Doc from javax. Initializes this The If this cipher requires any algorithm parameters and
If this cipher requires algorithm parameters that cannot be derived from the input parameters, and there are no reasonable provider-specific default values, initialization will necessarily fail. If this cipher (including its feedback or padding scheme)
requires any random bytes (e.g., for parameter generation), it will get
them from Note that when a
| |
| engineSetMode | back to summary |
|---|---|
| protected void engineSetMode(String mode) throws NoSuchAlgorithmException Implements abstract javax. Doc from javax. Sets the mode of this cipher.
| |
| engineSetPadding | back to summary |
|---|---|
| protected void engineSetPadding(String padding) throws NoSuchPaddingException Implements abstract javax. Doc from javax. Sets the padding mechanism of this cipher.
| |
| engineUpdate | back to summary |
|---|---|
| protected byte[] engineUpdate(byte[] input, int inputOffset, int inputLen) Implements abstract javax. Doc from javax. Continues a multiple-part encryption or decryption operation
(depending on how this The first
| |
| engineUpdate | back to summary |
|---|---|
| protected int engineUpdate(byte[] input, int inputOffset, int inputLen, byte[] output, int outputOffset) throws ShortBufferException Implements abstract javax. Doc from javax. Continues a multiple-part encryption or decryption operation
(depending on how this The first If the
| |
| engineUpdateAAD | back to summary |
|---|---|
| protected void engineUpdateAAD(byte[] src, int offset, int len) Overrides javax. Doc from javax. Continues a multipart update of the Additional Authentication Data (AAD), using a subset of the provided buffer.
Calls to this method provide AAD to the cipher when operating in
modes such as AEAD (GCM or CCM). If this cipher is operating in
either GCM or CCM mode, all AAD must be supplied before beginning
operations on the ciphertext (via the
| |
| engineUpdateAAD | back to summary |
|---|---|
| protected void engineUpdateAAD(ByteBuffer src) Overrides javax. Doc from javax. Continues a multipart update of the Additional Authentication Data (AAD).
Calls to this method provide AAD to the cipher when operating in
modes such as AEAD (GCM or CCM). If this cipher is operating in
either GCM or CCM mode, all AAD must be supplied before beginning
operations on the ciphertext (via the
All
| |
| maybeReinitInternalCipher | back to summary |
|---|---|
| private void maybeReinitInternalCipher() | |
| usePSK | back to summary |
|---|---|
| private static boolean usePSK(SecretKey psk) | |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv final Cipher | |
| pack-priv final int | |
| pack-priv final int | |
| pack-priv final int | |
| pack-priv final int |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv void |
| cipher | back to summary |
|---|---|
| pack-priv final Cipher cipher | |
| id | back to summary |
|---|---|
| pack-priv final int id | |
| nk | back to summary |
|---|---|
| pack-priv final int nk | |
| nn | back to summary |
|---|---|
| pack-priv final int nn | |
| nt | back to summary |
|---|---|
| pack-priv final int nt | |
| AEAD | back to summary |
|---|---|
| public AEAD(int id) throws InvalidAlgorithmParameterException | |
| start | back to summary |
|---|---|
| pack-priv void start(int opmode, SecretKey key, byte[] nonce) | |
| Modifier and Type | Class and Description |
|---|---|
| pack-priv class |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv HPKE. | |
| pack-priv HPKE. | |
| pack-priv String | |
| pack-priv int | |
| pack-priv byte[] | |
| pack-priv final int | |
| pack-priv HPKEParameterSpec | |
| pack-priv byte[] |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| private static void | |
| public boolean | |
| public void | |
| private KEM | |
| private HPKE. | |
| private void |
| aead | back to summary |
|---|---|
| pack-priv HPKE. | |
| context | back to summary |
|---|---|
| pack-priv HPKE. | |
| kdfAlg | back to summary |
|---|---|
| pack-priv String kdfAlg | |
| kdfNh | back to summary |
|---|---|
| pack-priv int kdfNh | |
| kemEncaps | back to summary |
|---|---|
| pack-priv byte[] kemEncaps | |
| opmode | back to summary |
|---|---|
| pack-priv final int opmode | |
| params | back to summary |
|---|---|
| pack-priv HPKEParameterSpec params | |
| suite_id | back to summary |
|---|---|
| pack-priv byte[] suite_id | |
| Impl | back to summary |
|---|---|
| public Impl(int opmode) | |
| checkMatch | back to summary |
|---|---|
| private static void checkMatch(boolean inSpec, AsymmetricKey k, int kem_id) throws InvalidKeyException, InvalidAlgorithmParameterException | |
| hasEncrypt | back to summary |
|---|---|
| public boolean hasEncrypt() | |
| init | back to summary |
|---|---|
| public void init(AsymmetricKey key, HPKEParameterSpec p, SecureRandom rand) throws InvalidKeyException, InvalidAlgorithmParameterException | |
| kem | back to summary |
|---|---|
| private KEM kem() | |
| keySchedule | back to summary |
|---|---|
| private HPKE. | |
| setParams | back to summary |
|---|---|
| private void setParams(HPKEParameterSpec p) throws InvalidAlgorithmParameterException | |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv final byte[] | |
| pack-priv final SecretKey | |
| pack-priv final SecretKey | |
| pack-priv byte[] |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| private byte[] | |
| pack-priv byte[] | |
| pack-priv SecretKey | |
| private void |
| base_nonce | back to summary |
|---|---|
| pack-priv final byte[] base_nonce | |
| exporter_secret | back to summary |
|---|---|
| pack-priv final SecretKey exporter_secret | |
| k | back to summary |
|---|---|
| pack-priv final SecretKey k | |
| seq | back to summary |
|---|---|
| pack-priv byte[] seq | |
| Context | back to summary |
|---|---|
| public Context(SecretKey sk, byte[] base_nonce, SecretKey exporter_secret) | |
| computeNonce | back to summary |
|---|---|
| private byte[] computeNonce() | |
| exportData | back to summary |
|---|---|
| pack-priv byte[] exportData(byte[] exporter_context, int length) | |
| exportKey | back to summary |
|---|---|
| pack-priv SecretKey exportKey(String algorithm, byte[] exporter_context, int length) | |
| IncrementSeq | back to summary |
|---|---|
| private void IncrementSeq() | |