Class EdDSASecurityProviderUtils
- java.lang.Object
-
- org.apache.sshd.common.util.security.eddsa.EdDSASecurityProviderUtils
-
public final class EdDSASecurityProviderUtils extends Object
- Author:
- Apache MINA SSHD Project
-
-
Field Summary
Fields Modifier and Type Field Description static String
CURVE_ED25519_SHA512
static int
KEY_SIZE
-
Method Summary
-
-
-
Field Detail
-
CURVE_ED25519_SHA512
public static final String CURVE_ED25519_SHA512
- See Also:
- Constant Field Values
-
KEY_SIZE
public static final int KEY_SIZE
- See Also:
- Constant Field Values
-
-
Method Detail
-
getEDDSAPrivateKeyType
public static Class<? extends PrivateKey> getEDDSAPrivateKeyType()
-
isEDDSAKey
public static boolean isEDDSAKey(Key key)
-
getEDDSAKeySize
public static int getEDDSAKeySize(Key key)
-
isEDDSASignatureAlgorithm
public static boolean isEDDSASignatureAlgorithm(String algorithm)
-
recoverEDDSAPublicKey
public static net.i2p.crypto.eddsa.EdDSAPublicKey recoverEDDSAPublicKey(PrivateKey key) throws GeneralSecurityException
- Throws:
GeneralSecurityException
-
getEDDSASignature
public static Signature getEDDSASignature()
-
isEDDSAKeyFactoryAlgorithm
public static boolean isEDDSAKeyFactoryAlgorithm(String algorithm)
-
isEDDSAKeyPairGeneratorAlgorithm
public static boolean isEDDSAKeyPairGeneratorAlgorithm(String algorithm)
-
getEDDSAPublicKeyEntryDecoder
public static PublicKeyEntryDecoder<? extends PublicKey,? extends PrivateKey> getEDDSAPublicKeyEntryDecoder()
-
getOpenSSHEDDSAPrivateKeyEntryDecoder
public static PrivateKeyEntryDecoder<? extends PublicKey,? extends PrivateKey> getOpenSSHEDDSAPrivateKeyEntryDecoder()
-
compareEDDSAPrivateKeys
public static boolean compareEDDSAPrivateKeys(PrivateKey k1, PrivateKey k2)
-
compareEDDSAKeyParams
public static boolean compareEDDSAKeyParams(net.i2p.crypto.eddsa.spec.EdDSAParameterSpec s1, net.i2p.crypto.eddsa.spec.EdDSAParameterSpec s2)
-
generateEDDSAPublicKey
public static PublicKey generateEDDSAPublicKey(byte[] seed) throws GeneralSecurityException
- Throws:
GeneralSecurityException
-
generateEDDSAPrivateKey
public static PrivateKey generateEDDSAPrivateKey(byte[] seed) throws GeneralSecurityException
- Throws:
GeneralSecurityException
-
putRawEDDSAPublicKey
public static <B extends Buffer> B putRawEDDSAPublicKey(B buffer, PublicKey key)
-
putEDDSAKeyPair
public static <B extends Buffer> B putEDDSAKeyPair(B buffer, PublicKey pubKey, PrivateKey prvKey)
-
-