Lines Matching refs:spec
38 import java.security.spec.ECPublicKeySpec;
39 import java.security.spec.ECPrivateKeySpec;
40 import java.security.spec.X509EncodedKeySpec;
41 import java.security.spec.PKCS8EncodedKeySpec;
42 import java.security.spec.InvalidKeySpecException;
50 import javax.crypto.spec.PBEKeySpec;
166 PKCS8EncodedKeySpec spec = decryptPrivateKey(der); in loadDERPrivateKey() local
168 if (spec == null) { in loadDERPrivateKey()
169 spec = new PKCS8EncodedKeySpec(der); in loadDERPrivateKey()
172 ASN1InputStream bIn = new ASN1InputStream(new ByteArrayInputStream(spec.getEncoded())); in loadDERPrivateKey()
176 return KeyFactory.getInstance(algOid).generatePrivate(spec); in loadDERPrivateKey()
226 ECPublicKeySpec spec = factory.getKeySpec(key, ECPublicKeySpec.class); in getSignatureAlgorithm() local
227 curveSize = spec.getParams().getCurve().getField().getFieldSize(); in getSignatureAlgorithm()
229 ECPrivateKeySpec spec = factory.getKeySpec(key, ECPrivateKeySpec.class); in getSignatureAlgorithm() local
230 curveSize = spec.getParams().getCurve().getField().getFieldSize(); in getSignatureAlgorithm()