HomeSort by relevance Sort by last modified time
    Searched refs:privateKey (Results 1 - 25 of 468) sorted by null

1 2 3 4 5 6 7 8 91011>>

  /external/bouncycastle/bcprov/src/main/java/org/bouncycastle/crypto/params/
AsymmetricKeyParameter.java 8 boolean privateKey;
11 boolean privateKey)
13 this.privateKey = privateKey;
18 return privateKey;
  /libcore/ojluni/src/main/java/java/security/
KeyPair.java 33 * should be treated like a PrivateKey.
36 * @see PrivateKey
45 private PrivateKey privateKey;
57 * @param privateKey the private key.
59 public KeyPair(PublicKey publicKey, PrivateKey privateKey) {
61 this.privateKey = privateKey;
78 public PrivateKey getPrivate()
    [all...]
Signer.java 57 private PrivateKey privateKey;
108 public PrivateKey getPrivateKey() {
110 return privateKey;
136 PrivateKey priv = pair.getPrivate();
152 privateKey = priv;
158 if (publicKey != null && privateKey != null) {
SignatureSpi.java 77 * @param privateKey the private key of the identity whose signature
83 protected abstract void engineInitSign(PrivateKey privateKey)
93 * @param privateKey the private key of the identity whose signature
100 protected void engineInitSign(PrivateKey privateKey,
104 engineInitSign(privateKey);
Signature.java 76 * (see {@link #initSign(PrivateKey)}
77 * and {@link #initSign(PrivateKey, SecureRandom)}).
668 * @param privateKey the private key of the identity whose signature
673 public final void initSign(PrivateKey privateKey)
675 engineInitSign(privateKey);
693 * @param privateKey the private key of the identity whose signature
700 public final void initSign(PrivateKey privateKey, SecureRandom random)
702 engineInitSign(privateKey, random)
    [all...]
  /external/conscrypt/openjdk/src/test/java/org/conscrypt/
OpenSSLKeyTest.java 61 OpenSSLRSAPrivateKey privateKey = (OpenSSLRSAPrivateKey)key.getPrivateKey();
62 assertEquals(RSA_MODULUS, privateKey.getModulus());
63 assertEquals(RSA_PRIVATE_EXPONENT, privateKey.getPrivateExponent());
  /frameworks/base/core/java/android/webkit/
ClientCertRequest.java 20 import java.security.PrivateKey;
69 public abstract void proceed(PrivateKey privateKey, X509Certificate[] chain);
  /external/boringssl/src/ssl/test/runner/ed25519/
ed25519.go 39 // PrivateKey is the type of Ed25519 private keys. It implements crypto.Signer.
40 type PrivateKey []byte
43 func (priv PrivateKey) Public() crypto.PublicKey {
54 func (priv PrivateKey) Sign(rand io.Reader, message []byte, opts crypto.SignerOpts) (signature []byte, err error) {
64 func GenerateKey(rand io.Reader) (publicKey PublicKey, privateKey PrivateKey, err error) {
75 publicKey, privateKey = NewKeyPairFromSeed(seed[:])
76 return publicKey, privateKey, nil
81 func NewKeyPairFromSeed(seed []byte) (publicKey PublicKey, privateKey PrivateKey) {
    [all...]
  /external/conscrypt/common/src/main/java/org/conscrypt/
OpenSSLSignatureRawRSA.java 21 import java.security.PrivateKey;
89 protected void engineInitSign(PrivateKey privateKey) throws InvalidKeyException {
90 if (privateKey instanceof OpenSSLRSAPrivateKey) {
91 OpenSSLRSAPrivateKey rsaPrivateKey = (OpenSSLRSAPrivateKey) privateKey;
93 } else if (privateKey instanceof RSAPrivateCrtKey) {
94 RSAPrivateCrtKey rsaPrivateKey = (RSAPrivateCrtKey) privateKey;
96 } else if (privateKey instanceof RSAPrivateKey) {
97 RSAPrivateKey rsaPrivateKey = (RSAPrivateKey) privateKey;
OpenSSLECPrivateKey.java 25 import java.security.PrivateKey;
35 * An implementation of a {@link PrivateKey} for EC keys based on BoringSSL.
83 static OpenSSLKey wrapJCAPrivateKeyForTLSStackOnly(PrivateKey privateKey,
86 if (privateKey instanceof ECKey) {
87 params = ((ECKey) privateKey).getParams();
92 throw new InvalidKeyException("EC parameters not available. Private: " + privateKey
95 return wrapJCAPrivateKeyForTLSStackOnly(privateKey, params);
103 static OpenSSLKey wrapJCAPrivateKeyForTLSStackOnly(PrivateKey privateKey,
    [all...]
OpenSSLKey.java 22 import java.security.PrivateKey;
59 static OpenSSLKey fromPrivateKey(PrivateKey key) throws InvalidKeyException {
105 * @param privateKey private key.
110 PrivateKey privateKey, PublicKey publicKey) throws InvalidKeyException {
111 OpenSSLKey result = getOpenSSLKey(privateKey);
116 result = fromKeyMaterial(privateKey);
121 return wrapJCAPrivateKeyForTLSStackOnly(privateKey, publicKey);
134 PrivateKey key, ECParameterSpec ecParams) throws InvalidKeyException {
154 private static OpenSSLKey getOpenSSLKey(PrivateKey key)
    [all...]
OpenSSLSignatureRawECDSA.java 21 import java.security.PrivateKey;
69 protected void engineInitSign(PrivateKey privateKey) throws InvalidKeyException {
70 key = verifyKey(OpenSSLKey.fromPrivateKey(privateKey));
  /libcore/luni/src/test/java/org/apache/harmony/crypto/tests/javax/crypto/func/
KeyAgreementThread.java 24 import java.security.PrivateKey;
33 private PrivateKey privateKey = null;
42 privateKey = keypair.getPrivate();
56 ka.init(privateKey);
  /external/bouncycastle/bcprov/src/main/java/org/bouncycastle/asn1/pkcs/
PrivateKeyInfo.java 53 ASN1Encodable privateKey)
56 this(algId, privateKey, null);
61 ASN1Encodable privateKey,
65 this.privKey = new DEROctetString(privateKey.toASN1Primitive().getEncoded(ASN1Encoding.DER));
139 * privateKey PrivateKey,
144 * PrivateKey ::= OCTET STRING
  /frameworks/base/keystore/java/android/security/
IKeyChainService.aidl 36 boolean installKeyPair(in byte[] privateKey, in byte[] userCert, in byte[] certChain, String alias);
  /libcore/luni/src/test/java/libcore/java/security/
MockSignatureSpi.java 22 import java.security.PrivateKey;
64 * @see java.security.SignatureSpi#engineInitSign(java.security.PrivateKey)
67 protected void engineInitSign(PrivateKey privateKey) throws InvalidKeyException {
68 checkKeyType(privateKey);
  /libcore/luni/src/test/java/org/apache/harmony/security/tests/java/security/
KeyStorePrivateKeyEntryTest.java 25 import java.security.PrivateKey;
69 PrivateKey privateKey = keyPair.getPrivate();
74 privateKey, new Certificate[] { certificate });
SignerTest.java 132 PrivateKeyStub privateKey = new PrivateKeyStub("private", "fff", privateKeyData);
134 KeyPair kp = new KeyPair(publicKey, privateKey);
141 assertSame(privateKey, s.getPrivateKey());
  /libcore/support/src/test/java/tests/security/
KeyFactoryTest.java 22 import java.security.PrivateKey;
56 PrivateKey privateKey = factory.generatePrivate(privateKeySpec);
60 check(new KeyPair(publicKey, privateKey));
  /system/extras/verity/
VeritySigner.java 20 import java.security.PrivateKey;
64 PrivateKey privateKey = Utils.loadDERPrivateKey(Utils.read(args[1]));
65 byte[] signature = Utils.sign(privateKey, content);
  /cts/tests/tests/keystore/src/android/keystore/cts/
RSACipherTest.java 20 import java.security.PrivateKey;
50 PrivateKey privateKey = key.getKeystoreBackedKeyPair().getPrivate();
63 cipher.init(Cipher.DECRYPT_MODE, privateKey);
83 PrivateKey privateKey = key.getKeystoreBackedKeyPair().getPrivate();
92 cipher.init(Cipher.DECRYPT_MODE, privateKey);
200 PrivateKey privateKey = key.getKeystoreBackedKeyPair().getPrivate();
201 BigInteger modulus = ((RSAKey) privateKey).getModulus()
    [all...]
  /external/bouncycastle/bcpkix/src/main/java/org/bouncycastle/operator/jcajce/
JcaContentSignerBuilder.java 6 import java.security.PrivateKey;
56 public ContentSigner build(PrivateKey privateKey)
66 sig.initSign(privateKey, random);
70 sig.initSign(privateKey);
  /libcore/benchmarks/src/benchmarks/regression/
SignatureBenchmark.java 23 import java.security.PrivateKey;
63 private PrivateKey privateKey;
78 this.privateKey = keyPair.getPrivate();
104 signer.initSign(privateKey);
  /external/v8/src/inspector/
injected-script-native.cc 20 v8::Local<v8::Private> privateKey = v8::Private::ForApi(
24 injectedScriptHost->SetPrivate(m_isolate->GetCurrentContext(), privateKey,
32 v8::Local<v8::Private> privateKey = v8::Private::ForApi(
37 injectedScriptObject->GetPrivate(context, privateKey).ToLocalChecked();
  /libcore/support/src/test/java/org/apache/harmony/security/tests/support/
MySignature2.java 26 import java.security.PrivateKey;
51 protected void engineInitSign(PrivateKey privateKey)

Completed in 668 milliseconds

1 2 3 4 5 6 7 8 91011>>