forked from I2P_Developers/i2p.i2p
crypto cleanup
This commit is contained in:
@ -1,13 +1,10 @@
|
||||
package net.i2p.crypto;
|
||||
|
||||
import java.io.File;
|
||||
import java.io.FileInputStream;
|
||||
import java.io.InputStream;
|
||||
import java.io.IOException;
|
||||
import java.io.OutputStream;
|
||||
import java.io.PrintWriter;
|
||||
import java.security.GeneralSecurityException;
|
||||
import java.security.KeyStore;
|
||||
import java.security.cert.Certificate;
|
||||
import java.security.cert.CertificateException;
|
||||
import java.security.cert.CertificateEncodingException;
|
||||
|
@ -64,7 +64,7 @@ import net.i2p.util.NativeBigInteger;
|
||||
* Params and rv's changed from Hash to SHA1Hash for version 0.8.1
|
||||
* Hash variants of sign() and verifySignature() restored in 0.8.3, required by Syndie.
|
||||
*
|
||||
* As of 0.9.9, certain methods support ECDSA keys and signatures, i.e. all types
|
||||
* As of 0.9.9, certain methods support RSA and ECDSA keys and signatures, i.e. all types
|
||||
* specified in SigType. The type is specified by the getType() method in
|
||||
* Signature, SigningPublicKey, and SigningPrivateKey. See Javadocs for individual
|
||||
* methods for the supported types. Methods encountering an unsupported type
|
||||
|
@ -15,9 +15,6 @@ import java.security.InvalidKeyException;
|
||||
import java.security.KeyPair;
|
||||
import java.security.KeyPairGenerator;
|
||||
import java.security.ProviderException;
|
||||
import java.security.interfaces.ECPrivateKey;
|
||||
import java.security.interfaces.ECPublicKey;
|
||||
import java.security.spec.ECPoint;
|
||||
|
||||
import net.i2p.I2PAppContext;
|
||||
import net.i2p.data.Hash;
|
||||
|
@ -171,7 +171,7 @@ class SigUtil {
|
||||
return (ECPublicKey) kf.generatePublic(ks);
|
||||
}
|
||||
|
||||
public static ECPrivateKey cvtToJavaECKey(SigningPrivateKey pk)
|
||||
private static ECPrivateKey cvtToJavaECKey(SigningPrivateKey pk)
|
||||
throws GeneralSecurityException {
|
||||
SigType type = pk.getType();
|
||||
int len = type.getPubkeyLen();
|
||||
|
Reference in New Issue
Block a user