| Modifier and Type | Field and Description |
|---|---|
| private final String | |
| private final byte[] | |
| private final KeyFactory | |
| private final KeyPairGenerator | |
| private final int | |
| private final boolean | |
| public static final MontgomeryCurve | x25519
X25519 uses Curve25519 and SHA-256 with a 32-byte key size. |
| public static final MontgomeryCurve | x448
X448 uses Curve448 and SHA-512 with a 56-byte key size. |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public KeyAgreement | |
| public PublicKey | |
| public byte[] | |
| public KeyPair | |
| public String | |
| public int | getByteLength()
Implements org. Retrieves the length of a point coordinate in bytes. |
| public int | |
| public boolean | |
| public static MontgomeryCurve | |
| public static MontgomeryCurve[] |
| algorithm | back to summary |
|---|---|
| private final String algorithm | |
| encodedPublicKeyPrefix | back to summary |
|---|---|
| private final byte[] encodedPublicKeyPrefix | |
| keyFactory | back to summary |
|---|---|
| private final KeyFactory keyFactory | |
| keyPairGenerator | back to summary |
|---|---|
| private final KeyPairGenerator keyPairGenerator | |
| keySize | back to summary |
|---|---|
| private final int keySize | |
| supported | back to summary |
|---|---|
| private final boolean supported | |
| x25519 | back to summary |
|---|---|
| public static final MontgomeryCurve x25519 X25519 uses Curve25519 and SHA-256 with a 32-byte key size. | |
| x448 | back to summary |
|---|---|
| public static final MontgomeryCurve x448 X448 uses Curve448 and SHA-512 with a 56-byte key size. | |
| MontgomeryCurve | back to summary |
|---|---|
| private MontgomeryCurve(String algorithm, int keySize, byte[] encodedPublicKeyPrefix) | |
| createKeyAgreement | back to summary |
|---|---|
| public KeyAgreement createKeyAgreement() throws GeneralSecurityException | |
| decode | back to summary |
|---|---|
| public PublicKey decode(byte[] key) throws InvalidKeySpecException | |
| encode | back to summary |
|---|---|
| public byte[] encode(PublicKey key) throws InvalidKeyException | |
| generateKeyPair | back to summary |
|---|---|
| public KeyPair generateKeyPair() | |
| getAlgorithm | back to summary |
|---|---|
| public String getAlgorithm() | |
| getByteLength | back to summary |
|---|---|
| public int getByteLength() Implements org. Doc from org. Retrieves the length of a point coordinate in bytes.
| |
| getKeySize | back to summary |
|---|---|
| public int getKeySize() Implements org.
| |
| isSupported | back to summary |
|---|---|
| public boolean isSupported() Implements org.
| |
| valueOf | back to summary |
|---|---|
| public static MontgomeryCurve valueOf(String name) | |
| values | back to summary |
|---|---|
| public static MontgomeryCurve[] values() | |