Class EdDSASecurityProviderUtils
- java.lang.Object
-
- org.apache.sshd.common.util.security.eddsa.EdDSASecurityProviderUtils
-
public final class EdDSASecurityProviderUtils extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringCURVE_ED25519_SHA512static intKEY_SIZE
-
Constructor Summary
Constructors Modifier Constructor Description privateEdDSASecurityProviderUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static booleancompareEDDSAKeyParams(net.i2p.crypto.eddsa.spec.EdDSAParameterSpec s1, net.i2p.crypto.eddsa.spec.EdDSAParameterSpec s2)static booleancompareEDDSAPPublicKeys(java.security.PublicKey k1, java.security.PublicKey k2)static booleancompareEDDSAPrivateKeys(java.security.PrivateKey k1, java.security.PrivateKey k2)static java.security.PrivateKeygenerateEDDSAPrivateKey(byte[] seed)static java.security.PublicKeygenerateEDDSAPublicKey(byte[] seed)static intgetEDDSAKeySize(java.security.Key key)static java.lang.Class<? extends java.security.PrivateKey>getEDDSAPrivateKeyType()static PublicKeyEntryDecoder<? extends java.security.PublicKey,? extends java.security.PrivateKey>getEDDSAPublicKeyEntryDecoder()static java.lang.Class<? extends java.security.PublicKey>getEDDSAPublicKeyType()static SignaturegetEDDSASignature()static PrivateKeyEntryDecoder<? extends java.security.PublicKey,? extends java.security.PrivateKey>getOpenSSHEDDSAPrivateKeyEntryDecoder()static booleanisEDDSAKey(java.security.Key key)static booleanisEDDSAKeyFactoryAlgorithm(java.lang.String algorithm)static booleanisEDDSAKeyPairGeneratorAlgorithm(java.lang.String algorithm)static booleanisEDDSASignatureAlgorithm(java.lang.String algorithm)static <B extends Buffer>
BputEDDSAKeyPair(B buffer, java.security.PublicKey pubKey, java.security.PrivateKey prvKey)static <B extends Buffer>
BputRawEDDSAPublicKey(B buffer, java.security.PublicKey key)static net.i2p.crypto.eddsa.EdDSAPublicKeyrecoverEDDSAPublicKey(java.security.PrivateKey key)
-
-
-
Field Detail
-
CURVE_ED25519_SHA512
public static final java.lang.String CURVE_ED25519_SHA512
- See Also:
- Constant Field Values
-
KEY_SIZE
public static final int KEY_SIZE
- See Also:
- Constant Field Values
-
-
Method Detail
-
getEDDSAPublicKeyType
public static java.lang.Class<? extends java.security.PublicKey> getEDDSAPublicKeyType()
-
getEDDSAPrivateKeyType
public static java.lang.Class<? extends java.security.PrivateKey> getEDDSAPrivateKeyType()
-
isEDDSAKey
public static boolean isEDDSAKey(java.security.Key key)
-
getEDDSAKeySize
public static int getEDDSAKeySize(java.security.Key key)
-
compareEDDSAPPublicKeys
public static boolean compareEDDSAPPublicKeys(java.security.PublicKey k1, java.security.PublicKey k2)
-
isEDDSASignatureAlgorithm
public static boolean isEDDSASignatureAlgorithm(java.lang.String algorithm)
-
recoverEDDSAPublicKey
public static net.i2p.crypto.eddsa.EdDSAPublicKey recoverEDDSAPublicKey(java.security.PrivateKey key) throws java.security.GeneralSecurityException- Throws:
java.security.GeneralSecurityException
-
getEDDSASignature
public static Signature getEDDSASignature()
-
isEDDSAKeyFactoryAlgorithm
public static boolean isEDDSAKeyFactoryAlgorithm(java.lang.String algorithm)
-
isEDDSAKeyPairGeneratorAlgorithm
public static boolean isEDDSAKeyPairGeneratorAlgorithm(java.lang.String algorithm)
-
getEDDSAPublicKeyEntryDecoder
public static PublicKeyEntryDecoder<? extends java.security.PublicKey,? extends java.security.PrivateKey> getEDDSAPublicKeyEntryDecoder()
-
getOpenSSHEDDSAPrivateKeyEntryDecoder
public static PrivateKeyEntryDecoder<? extends java.security.PublicKey,? extends java.security.PrivateKey> getOpenSSHEDDSAPrivateKeyEntryDecoder()
-
compareEDDSAPrivateKeys
public static boolean compareEDDSAPrivateKeys(java.security.PrivateKey k1, java.security.PrivateKey k2)
-
compareEDDSAKeyParams
public static boolean compareEDDSAKeyParams(net.i2p.crypto.eddsa.spec.EdDSAParameterSpec s1, net.i2p.crypto.eddsa.spec.EdDSAParameterSpec s2)
-
generateEDDSAPublicKey
public static java.security.PublicKey generateEDDSAPublicKey(byte[] seed) throws java.security.GeneralSecurityException- Throws:
java.security.GeneralSecurityException
-
generateEDDSAPrivateKey
public static java.security.PrivateKey generateEDDSAPrivateKey(byte[] seed) throws java.security.GeneralSecurityException- Throws:
java.security.GeneralSecurityException
-
putRawEDDSAPublicKey
public static <B extends Buffer> B putRawEDDSAPublicKey(B buffer, java.security.PublicKey key)
-
putEDDSAKeyPair
public static <B extends Buffer> B putEDDSAKeyPair(B buffer, java.security.PublicKey pubKey, java.security.PrivateKey prvKey)
-
-