| Modifier and Type | Class and Description |
|---|---|
| public static class | |
| public static class | PreferredAEADCiphersuites.
Algorithm combination of a |
| Modifier and Type | Field and Description |
|---|---|
| private static final PreferredAEADCiphersuites. | AES_128_OCB
AES-128 + OCB is a MUST implement and is therefore implicitly supported. |
| private final PreferredAEADCiphersuites. |
| Access | Constructor and Description |
|---|---|
| public | PreferredAEADCiphersuites(boolean
whether the subpacket is critical critical, boolean whether the subpacket uses long length encoding isLongLength, byte[] raw data data)Create a new PreferredAEADAlgorithms signature subpacket from raw data. |
| public | PreferredAEADCiphersuites(boolean
whether the subpacket is critical critical, PreferredAEADCiphersuites.list of combinations, with the most preferred option first combinationsCreate a new PreferredAEADAlgorithm signature subpacket. |
| Modifier and Type | Method and Description |
|---|---|
| public static PreferredAEADCiphersuites. | Returns: buildertrue if the packet is considered critical. isCritical)Return a |
| private static boolean | contains(PreferredAEADCiphersuites.
|
| private static byte[] | Returns: marshalled byte arraylist of algorithm combinations combinationsMarshall the list of combinations into a byte array. |
| public PreferredAEADCiphersuites. | Returns: all supported algorithm combinationsReturns AEAD algorithm preferences, including implicitly supported algorithm combinations. |
| public PreferredAEADCiphersuites. | Returns: explicitly supported algorithm combinationsReturn AEAD algorithm preferences. |
| public boolean | Returns: true, if the combination is supported, false otherwisecombination combinationReturn true, if the given algorithm combination is supported (explicitly or implicitly). |
| private static PreferredAEADCiphersuites. | Returns: unmarshalled listmarshalled bytes data)Unmarshall a byte array into a list of algorithm combinations. |
| private static byte[] |
| AES_128_OCB | back to summary |
|---|---|
| private static final PreferredAEADCiphersuites. AES-128 + OCB is a MUST implement and is therefore implicitly supported. | |
| algorithms | back to summary |
|---|---|
| private final PreferredAEADCiphersuites. | |
| PreferredAEADCiphersuites | back to summary |
|---|---|
| public PreferredAEADCiphersuites(boolean critical, boolean isLongLength, byte[] data) Create a new PreferredAEADAlgorithms signature subpacket from raw data.
| |
| PreferredAEADCiphersuites | back to summary |
|---|---|
| public PreferredAEADCiphersuites(boolean critical, PreferredAEADCiphersuites. Create a new PreferredAEADAlgorithm signature subpacket.
| |
| builder | back to summary |
|---|---|
| public static PreferredAEADCiphersuites. Return a
| |
| contains | back to summary |
|---|---|
| private static boolean contains(PreferredAEADCiphersuites. | |
| encodeCombinations | back to summary |
|---|---|
| private static byte[] encodeCombinations(PreferredAEADCiphersuites. Marshall the list of combinations into a byte array.
| |
| getAlgorithms | back to summary |
|---|---|
| public PreferredAEADCiphersuites. Returns AEAD algorithm preferences, including implicitly supported algorithm combinations.
| |
| getRawAlgorithms | back to summary |
|---|---|
| public PreferredAEADCiphersuites. Return AEAD algorithm preferences. The most preferred option comes first. This method returns the combinations as they are listed in the packet, possibly excluding implicitly supported combinations.
| |
| isSupported | back to summary |
|---|---|
| public boolean isSupported(PreferredAEADCiphersuites. Return true, if the given algorithm combination is supported (explicitly or implicitly).
| |
| parseCombinations | back to summary |
|---|---|
| private static PreferredAEADCiphersuites. Unmarshall a byte array into a list of algorithm combinations.
| |
| requireEven | back to summary |
|---|---|
| private static byte[] requireEven(byte[] encodedCombinations) | |
| Modifier and Type | Field and Description |
|---|---|
| private final List | |
| private final boolean |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public PreferredAEADCiphersuites. | Returns: buildersymmetric cipher algorithm ID symmetricAlgorithmId, int AEAD algorithm ID aeadAlgorithmId)Add a combination of cipher- and AEAD algorithm to the list of supported ciphersuites. |
| public PreferredAEADCiphersuites |
| combinations | back to summary |
|---|---|
| private final List<PreferredAEADCiphersuites. | |
| isCritical | back to summary |
|---|---|
| private final boolean isCritical | |
| Builder | back to summary |
|---|---|
| private Builder(boolean isCritical) | |
| addCombination | back to summary |
|---|---|
| public PreferredAEADCiphersuites. Add a combination of cipher- and AEAD algorithm to the list of supported ciphersuites.
| |
| build | back to summary |
|---|---|
| public PreferredAEADCiphersuites build() Build a
| |
SymmetricKeyAlgorithmTags and a AEADAlgorithmTags.
| Modifier and Type | Field and Description |
|---|---|
| private final int | |
| private final int |
| Access | Constructor and Description |
|---|---|
| public | Combination(int
symmetric algorithm tag symmetricAlgorithmTag, int aead algorithm tag aeadAlgorithmTag)Create a new algorithm combination from a |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | equals(Object
the reference object with which to compare. o)Overrides java. Indicates whether some other object is "equal to" this one. |
| public int | |
| public int | |
| public int |
| aeadAlgorithm | back to summary |
|---|---|
| private final int aeadAlgorithm | |
| symmetricAlgorithm | back to summary |
|---|---|
| private final int symmetricAlgorithm | |
| Combination | back to summary |
|---|---|
| public Combination(int symmetricAlgorithmTag, int aeadAlgorithmTag) Create a new algorithm combination from a
| |
| equals | back to summary |
|---|---|
| public boolean equals(Object o) Overrides java. Doc from java. Indicates whether some other object is "equal to" this one.
The
An equivalence relation partitions the elements it operates on into equivalence classes; all the members of an equivalence class are equal to each other. Members of an equivalence class are substitutable for each other, at least for some purposes. | |
| getAeadAlgorithm | back to summary |
|---|---|
| public int getAeadAlgorithm() Return the AEAD algorithm tag.
| |
| getSymmetricAlgorithm | back to summary |
|---|---|
| public int getSymmetricAlgorithm() Return the symmetric algorithm tag.
| |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Doc from java. Returns a hash code value for this object. This method is
supported for the benefit of hash tables such as those provided by
The general contract of
| |