|
@@ -1,22 +1,16 @@ |
|
|
package test.com.jd.blockchain.crypto.utils.classic; |
|
|
package test.com.jd.blockchain.crypto.utils.classic; |
|
|
|
|
|
|
|
|
import com.jd.blockchain.crypto.utils.classic.RSAUtils; |
|
|
import com.jd.blockchain.crypto.utils.classic.RSAUtils; |
|
|
import org.bouncycastle.asn1.DERNull; |
|
|
|
|
|
import org.bouncycastle.asn1.pkcs.PKCSObjectIdentifiers; |
|
|
|
|
|
import org.bouncycastle.asn1.x509.AlgorithmIdentifier; |
|
|
|
|
|
import org.bouncycastle.crypto.AsymmetricCipherKeyPair; |
|
|
import org.bouncycastle.crypto.AsymmetricCipherKeyPair; |
|
|
import org.bouncycastle.crypto.params.AsymmetricKeyParameter; |
|
|
import org.bouncycastle.crypto.params.AsymmetricKeyParameter; |
|
|
import org.bouncycastle.crypto.params.RSAKeyParameters; |
|
|
import org.bouncycastle.crypto.params.RSAKeyParameters; |
|
|
import org.bouncycastle.crypto.params.RSAPrivateCrtKeyParameters; |
|
|
import org.bouncycastle.crypto.params.RSAPrivateCrtKeyParameters; |
|
|
import org.bouncycastle.jcajce.provider.asymmetric.util.KeyUtil; |
|
|
|
|
|
import org.bouncycastle.util.encoders.Hex; |
|
|
|
|
|
import org.junit.Test; |
|
|
import org.junit.Test; |
|
|
|
|
|
|
|
|
import javax.crypto.BadPaddingException; |
|
|
import javax.crypto.BadPaddingException; |
|
|
import javax.crypto.Cipher; |
|
|
import javax.crypto.Cipher; |
|
|
import javax.crypto.IllegalBlockSizeException; |
|
|
import javax.crypto.IllegalBlockSizeException; |
|
|
import javax.crypto.NoSuchPaddingException; |
|
|
import javax.crypto.NoSuchPaddingException; |
|
|
import java.io.IOException; |
|
|
|
|
|
import java.security.*; |
|
|
import java.security.*; |
|
|
import java.security.interfaces.RSAPrivateKey; |
|
|
import java.security.interfaces.RSAPrivateKey; |
|
|
import java.security.interfaces.RSAPublicKey; |
|
|
import java.security.interfaces.RSAPublicKey; |
|
|