/external/oauth/core/src/main/java/net/oauth/signature/ |
RSA_SHA1.java | 23 import java.security.PrivateKey; 47 * of type java.security.PrivateKey, String, or byte[]. In the latter two 85 final static public String PRIVATE_KEY = "RSA-SHA1.PrivateKey"; 89 private PrivateKey privateKey = null; 100 if (privateKeyObject instanceof PrivateKey) { 101 privateKey = (PrivateKey)privateKeyObject; 103 privateKey = getPrivateKeyFromPem((String)privateKeyObject); 105 privateKey = getPrivateKeyFromDer((byte[])privateKeyObject) [all...] |
/prebuilts/go/darwin-x86/src/crypto/x509/ |
sec1.go | 26 PrivateKey []byte 32 func ParseECPrivateKey(der []byte) (*ecdsa.PrivateKey, error) { 37 func MarshalECPrivateKey(key *ecdsa.PrivateKey) ([]byte, error) { 49 PrivateKey: paddedPrivateKey, 59 func parseECPrivateKey(namedCurveOID *asn1.ObjectIdentifier, der []byte) (key *ecdsa.PrivateKey, err error) { 78 k := new(big.Int).SetBytes(privKey.PrivateKey) 83 priv := new(ecdsa.PrivateKey) 87 privateKey := make([]byte, (curveOrder.BitLen()+7)/8) 91 for len(privKey.PrivateKey) > len(privateKey) { [all...] |
/prebuilts/go/linux-x86/src/crypto/x509/ |
sec1.go | 26 PrivateKey []byte 32 func ParseECPrivateKey(der []byte) (*ecdsa.PrivateKey, error) { 37 func MarshalECPrivateKey(key *ecdsa.PrivateKey) ([]byte, error) { 49 PrivateKey: paddedPrivateKey, 59 func parseECPrivateKey(namedCurveOID *asn1.ObjectIdentifier, der []byte) (key *ecdsa.PrivateKey, err error) { 78 k := new(big.Int).SetBytes(privKey.PrivateKey) 83 priv := new(ecdsa.PrivateKey) 87 privateKey := make([]byte, (curveOrder.BitLen()+7)/8) 91 for len(privKey.PrivateKey) > len(privateKey) { [all...] |
/external/conscrypt/common/src/main/java/org/conscrypt/ |
OpenSSLRSAPrivateKey.java | 24 import java.security.PrivateKey; 32 * An implementation of {@link java.security.PrivateKey} for RSA keys which uses BoringSSL to 115 static OpenSSLKey wrapJCAPrivateKeyForTLSStackOnly(PrivateKey privateKey, 118 if (privateKey instanceof RSAKey) { 119 modulus = ((RSAKey) privateKey).getModulus(); 124 throw new InvalidKeyException("RSA modulus not available. Private: " + privateKey 128 NativeCrypto.getRSAPrivateKeyWrapper(privateKey, modulus.toByteArray()), true);
|
Conscrypt.java | 21 import java.security.PrivateKey; 313 * Sets the {@link PrivateKey} to be used for TLS Channel ID by this client socket. 318 * @param privateKey private key (enables TLS Channel ID) or {@code null} for no key 326 public static void setChannelIdPrivateKey(SSLSocket socket, PrivateKey privateKey) { 327 toConscrypt(socket).setChannelIdPrivateKey(privateKey); 445 * Sets the {@link PrivateKey} to be used for TLS Channel ID by this client engine. 450 * @param privateKey private key (enables TLS Channel ID) or {@code null} for no key 457 public static void setChannelIdPrivateKey(SSLEngine engine, PrivateKey privateKey) { [all...] |
OpenSSLSocketImpl.java | 24 import java.security.PrivateKey; 111 public abstract void setChannelIdPrivateKey(PrivateKey privateKey);
|
/external/conscrypt/testing/src/main/java/libcore/java/security/ |
TestKeyStore.java | 34 import java.security.PrivateKey; 509 privateKey(keyStore, keyPassword, "RSA", "RSA")); 513 privateKey(keyStore, keyPassword, "DSA", "DSA")); 532 * KeyStore. The PrivateKey will be stored under the specified 549 PrivateKey caKey; 569 final PrivateKey privateKey; 574 privateKey = null; 612 privateKey = kp.getPrivate(); 616 privateKey = privateEntry.getPrivateKey() [all...] |
/frameworks/base/keystore/java/android/security/keystore/ |
AndroidKeyStoreSignatureSpiBase.java | 33 import java.security.PrivateKey; 76 protected final void engineInitSign(PrivateKey key) throws InvalidKeyException { 81 protected final void engineInitSign(PrivateKey privateKey, SecureRandom random) 87 if (privateKey == null) { 91 if (privateKey instanceof AndroidKeyStorePrivateKey) { 92 keystoreKey = (AndroidKeyStoreKey) privateKey; 94 throw new InvalidKeyException("Unsupported private key type: " + privateKey);
|
/libcore/luni/src/test/java/org/apache/harmony/security/tests/java/security/ |
SignatureSpiTest.java | 10 import java.security.PrivateKey; 101 protected void engineInitSign(PrivateKey privateKey) 156 public void engineInitSign(PrivateKey privateKey) { 190 public void engineInitSign(PrivateKey privateKey) { 231 protected void engineInitSign(PrivateKey privateKey) 273 protected void engineInitSign(PrivateKey privateKey, SecureRandom random [all...] |
KeyFactory2Test.java | 28 import java.security.PrivateKey; 108 // Test for method java.security.PrivateKey 124 PrivateKey privateKey = fact.generatePrivate(privateKeySpec); 127 Arrays.toString(privateKey.getEncoded())); 128 privateKey = fact.generatePrivate(new PKCS8EncodedKeySpec(keys.getPrivate().getEncoded())); 131 Arrays.toString(privateKey.getEncoded())); 247 PrivateKey privateKey = fact.generatePrivate(privateKeySpec); 254 Arrays.toString(privateKey.getEncoded())) [all...] |
/libcore/support/src/test/java/libcore/java/security/ |
TestKeyStore.java | 61 import java.security.PrivateKey; 502 privateKey(keyStore, keyPassword, "RSA", "RSA")); 506 privateKey(keyStore, keyPassword, "DSA", "DSA")); 526 * KeyStore. The PrivateKey will be stored under the specified 546 PrivateKey caKey; 559 final PrivateKey privateKey; 564 privateKey = null; 601 privateKey = kp.getPrivate(); 605 privateKey = privateEntry.getPrivateKey() [all...] |
/packages/apps/Email/emailcommon/src/com/android/emailcommon/utility/ |
SSLUtils.java | 38 import java.security.PrivateKey; 256 @Override public abstract PrivateKey getPrivateKey(String alias); 308 public PrivateKey getPrivateKey(String alias) { 330 private final PrivateKey mPrivateKey; 350 PrivateKey privateKey; 352 privateKey = KeyChain.getPrivateKey(context, alias); 361 if (certificateChain == null || privateKey == null) { 365 return new KeyChainKeyManager(alias, certificateChain, privateKey); 378 String clientAlias, X509Certificate[] certificateChain, PrivateKey privateKey) [all...] |
/external/tpm2/ |
CryptoEngine.h | 169 TPM2B_ECC_PARAMETER *privateKey; // Pointer to the private key 182 TPM2B *privateKey; // The private exponent (not a prime)
|
/prebuilts/tools/common/m2/repository/com/google/auth/google-auth-library-oauth2-http/0.3.0/ |
google-auth-library-oauth2-http-0.3.0.jar | |
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jcajce/provider/asymmetric/dsa/ |
DSASigner.java | 6 import java.security.PrivateKey; 74 PrivateKey privateKey, 79 engineInitSign(privateKey); 83 PrivateKey privateKey) 88 param = DSAUtil.generatePrivateKeyParameter(privateKey);
|
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jcajce/provider/asymmetric/rsa/ |
DigestSignatureSpi.java | 6 import java.security.PrivateKey; 90 PrivateKey privateKey) 93 if (!(privateKey instanceof RSAPrivateKey)) 95 throw new InvalidKeyException("Supplied key (" + getType(privateKey) + ") is not a RSAPrivateKey instance"); 98 CipherParameters param = RSAUtil.generatePrivateKeyParameter((RSAPrivateKey)privateKey);
|
/libcore/luni/src/test/java/libcore/java/security/cert/ |
FakeOidProvider.java | 5 import java.security.PrivateKey; 38 protected void engineInitSign(PrivateKey privateKey) throws InvalidKeyException {
|
/libcore/support/src/test/java/org/apache/harmony/security/tests/support/ |
MySignature1.java | 26 import java.security.PrivateKey; 71 protected void engineInitSign(PrivateKey privateKey)
|
/cts/hostsidetests/devicepolicy/app/DeviceOwner/src/com/android/cts/deviceowner/ |
KeyManagementTest.java | 42 import java.security.PrivateKey; 83 final PrivateKey privKey = getPrivateKey(FAKE_RSA_1.privateKey , "RSA"); 107 final PrivateKey privKey = getPrivateKey(FAKE_RSA_1.privateKey , "RSA"); 120 // Verify the granted key is actually obtainable in PrivateKey form. 134 final PrivateKey privKey = loadPrivateKeyFromAsset("user-cert-chain.key"); 150 // Verify the granted key is actually obtainable in PrivateKey form. 166 final PrivateKey privKey = getPrivateKey(FAKE_RSA_1.privateKey , "RSA") [all...] |
/build/make/tools/signapk/src/com/android/signapk/ |
SignApk.java | 65 import java.security.PrivateKey; 253 private static PrivateKey readPrivateKey(File file) 310 CMSTypedData data, X509Certificate publicKey, PrivateKey privateKey, int hash, 324 .build(privateKey); 639 private final PrivateKey privateKey; 652 X509Certificate publicKey, PrivateKey privateKey, int hash, 657 this.privateKey = privateKey [all...] |
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jcajce/provider/asymmetric/ec/ |
SignatureSpi.java | 6 import java.security.PrivateKey; 55 PrivateKey privateKey) 58 CipherParameters param = ECUtil.generatePrivateKeyParameter(privateKey);
|
/libcore/luni/src/test/java/tests/targets/security/ |
KeyStoreTest.java | 31 import java.security.PrivateKey; 142 PrivateKey privateKey = entry.getPrivateKey(); 143 assertEquals(keyPair.getPrivate(), privateKey);
|
/cts/tests/tests/keystore/src/android/keystore/cts/ |
RSASignatureTest.java | 19 import java.security.PrivateKey; 61 PrivateKey privateKey = keyPair.getKeystoreBackedKeyPair().getPrivate(); 73 signature.initSign(privateKey); 83 signature.initSign(privateKey);
|
/development/samples/KeyChainDemo/src/com/example/android/keychain/ |
KeyChainDemoActivity.java | 36 import java.security.PrivateKey; 204 final PrivateKey privateKey = getPrivateKey(alias); 216 privateKeyTv.setText(privateKey.getFormat() + ":" + privateKey); 273 private PrivateKey getPrivateKey(String alias) {
|
/frameworks/base/packages/Osu/src/com/android/hotspot2/flow/ |
PlatformAdapter.java | 40 import java.security.PrivateKey; 279 PrivateKey privateKey, Network osuNetwork) { 284 Integer spNwk = addNetwork(homeSP, certs, privateKey, osuNetwork); 300 if (privateKey != null) { 303 privateKey, null, new X509Certificate[]{cltCert}); 348 PrivateKey privateKey, boolean policy) 367 updateNetwork(altSP, caCert, clientCerts, privateKey); 369 if (privateKey != null) [all...] |