📄 jdkecdsaalgparameters.java
字号:
package org.bouncycastle.jce.provider;import org.bouncycastle.asn1.DEROctetString;import java.io.IOException;import java.security.AlgorithmParametersSpi;import java.security.spec.AlgorithmParameterSpec;import java.security.spec.InvalidParameterSpecException;public abstract class JDKECDSAAlgParameters extends AlgorithmParametersSpi{ public static class SigAlgParameters extends JDKAlgorithmParameters { protected byte[] engineGetEncoded() throws IOException { return engineGetEncoded("ASN.1"); } protected byte[] engineGetEncoded( String format) throws IOException { if (format == null) { return engineGetEncoded("ASN.1"); } if (format.equals("ASN.1")) { return new DEROctetString(engineGetEncoded("RAW")).getEncoded(); } return null; } protected AlgorithmParameterSpec localEngineGetParameterSpec( Class paramSpec) throws InvalidParameterSpecException { throw new InvalidParameterSpecException("unknown parameter spec passed to ECDSA parameters object."); } protected void engineInit( AlgorithmParameterSpec paramSpec) throws InvalidParameterSpecException { throw new InvalidParameterSpecException("unknown parameter spec passed to ECDSA parameters object."); } protected void engineInit( byte[] params) throws IOException { } protected void engineInit( byte[] params, String format) throws IOException { throw new IOException("Unknown parameters format in IV parameters object"); } protected String engineToString() { return "ECDSA Parameters"; } }}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -