public final class EdDSASecurityProviderUtils extends Object
Modifier and Type | Field and Description |
---|---|
static String |
CURVE_ED25519_SHA512 |
public static final String CURVE_ED25519_SHA512
public static Class<? extends PrivateKey> getEDDSAPrivateKeyType()
public static int getEDDSAKeySize(Key key)
public static boolean isEDDSASignatureAlgorithm(String algorithm)
public static net.i2p.crypto.eddsa.EdDSAPublicKey recoverEDDSAPublicKey(PrivateKey key) throws GeneralSecurityException
GeneralSecurityException
public static Signature getEDDSASignature()
public static boolean isEDDSAKeyFactoryAlgorithm(String algorithm)
public static boolean isEDDSAKeyPairGeneratorAlgorithm(String algorithm)
public static PublicKeyEntryDecoder<? extends PublicKey,? extends PrivateKey> getEDDSAPublicKeyEntryDecoder()
public static PrivateKeyEntryDecoder<? extends PublicKey,? extends PrivateKey> getOpenSSHEDDSAPrivateKeyEntryDecoder()
public static boolean compareEDDSAPrivateKeys(PrivateKey k1, PrivateKey k2)
public static boolean compareEDDSAKeyParams(net.i2p.crypto.eddsa.spec.EdDSAParameterSpec s1, net.i2p.crypto.eddsa.spec.EdDSAParameterSpec s2)
public static PublicKey generateEDDSAPublicKey(byte[] seed) throws GeneralSecurityException
GeneralSecurityException
public static PrivateKey generateEDDSAPrivateKey(byte[] seed) throws GeneralSecurityException
GeneralSecurityException
public static <B extends Buffer> B putRawEDDSAPublicKey(B buffer, PublicKey key)
public static <B extends Buffer> B putEDDSAKeyPair(B buffer, PublicKey pubKey, PrivateKey prvKey)
Copyright © 2008–2022 The Apache Software Foundation. All rights reserved.