| Modifier and Type | Field and Description |
|---|---|
| private static final byte[] | |
| private final PGPDigestCalculator | |
| private final int |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public byte[] | |
| public byte[] | |
| public static byte[] | Returns: The derived key for encryption.The algorithm to use for key derivation, such as SHA256 or SHA512. algorithm, int The key algorithm identifier, representing AES-128 or AES-256. keyAlgorithm, byte[] The bytes to prepend before deriving the key, which should include:
- 32/56 octets of the ephemeral X25519 or X448 public key
- 32/56 octets of the recipient public key material
- 32/56 octets of the shared secret prepend, String The info parameter used in the HKDF function. For X25519, use "OpenPGP X25519".
For X448, use "OpenPGP X448". info)Creates a session key for X25519 or X448 encryption based on the provided algorithm and key algorithm. |
| private static int | |
| private static byte[] |
| ANONYMOUS_SENDER | back to summary |
|---|---|
| private static final byte[] ANONYMOUS_SENDER | |
| digCalc | back to summary |
|---|---|
| private final PGPDigestCalculator digCalc | |
| keyAlgorithm | back to summary |
|---|---|
| private final int keyAlgorithm | |
| RFC6637KDFCalculator | back to summary |
|---|---|
| public RFC6637KDFCalculator(PGPDigestCalculator digCalc, int keyAlgorithm) | |
| createKey | back to summary |
|---|---|
| public byte[] createKey(ECPoint s, byte[] userKeyingMaterial) throws PGPException | |
| createKey | back to summary |
|---|---|
| public byte[] createKey(byte[] secret, byte[] userKeyingMaterial) throws PGPException | |
| createKey | back to summary |
|---|---|
| public static byte[] createKey(int algorithm, int keyAlgorithm, byte[] prepend, String info) throws PGPException Creates a session key for X25519 or X448 encryption based on the provided algorithm and key algorithm. The method follows the specifications outlined in the OpenPGP standards, specifically sections 5.1.6 and 5.1.7 of rfc9580.
| |
| getKeyLen | back to summary |
|---|---|
| private static int getKeyLen(int algID) throws PGPException | |
| KDF | back to summary |
|---|---|
| private static byte[] KDF(PGPDigestCalculator digCalc, byte[] ZB, int keyLen, byte[] param) throws IOException | |