/external/boringssl/src/ssl/test/runner/ed25519/ |
D | ed25519.go | 88 privateKey := NewKeyFromSeed(seed) 90 copy(publicKey, privateKey[32:]) 92 return publicKey, privateKey, nil 116 privateKey := make([]byte, PrivateKeySize) 117 copy(privateKey, seed) 118 copy(privateKey[32:], publicKeyBytes[:]) 120 return privateKey 125 func Sign(privateKey PrivateKey, message []byte) []byte { 126 if l := len(privateKey); l != PrivateKeySize { 131 h.Write(privateKey[:32]) [all …]
|
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/asn1/pkcs/ |
D | PrivateKeyInfo.java | 66 private ASN1OctetString privateKey; field in PrivateKeyInfo 101 ASN1Encodable privateKey) in PrivateKeyInfo() argument 104 this(privateKeyAlgorithm, privateKey, null, null); in PrivateKeyInfo() 109 ASN1Encodable privateKey, in PrivateKeyInfo() argument 113 this(privateKeyAlgorithm, privateKey, attributes, null); in PrivateKeyInfo() 118 ASN1Encodable privateKey, in PrivateKeyInfo() argument 125 this.privateKey = new DEROctetString(privateKey); in PrivateKeyInfo() 139 this.privateKey = ASN1OctetString.getInstance(e.nextElement()); in PrivateKeyInfo() 192 return ASN1Primitive.fromByteArray(privateKey.getOctets()); in parsePrivateKey() 235 v.add(privateKey); in toASN1Primitive()
|
/external/bouncycastle/repackaged/bcprov/src/main/java/com/android/org/bouncycastle/asn1/pkcs/ |
D | PrivateKeyInfo.java | 69 private ASN1OctetString privateKey; field in PrivateKeyInfo 105 ASN1Encodable privateKey) in PrivateKeyInfo() argument 108 this(privateKeyAlgorithm, privateKey, null, null); in PrivateKeyInfo() 113 ASN1Encodable privateKey, in PrivateKeyInfo() argument 117 this(privateKeyAlgorithm, privateKey, attributes, null); in PrivateKeyInfo() 122 ASN1Encodable privateKey, in PrivateKeyInfo() argument 129 this.privateKey = new DEROctetString(privateKey); in PrivateKeyInfo() 143 this.privateKey = ASN1OctetString.getInstance(e.nextElement()); in PrivateKeyInfo() 198 return ASN1Primitive.fromByteArray(privateKey.getOctets()); in parsePrivateKey() 241 v.add(privateKey); in toASN1Primitive()
|
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/crypto/params/ |
D | AsymmetricKeyParameter.java | 8 boolean privateKey; field in AsymmetricKeyParameter 11 boolean privateKey) in AsymmetricKeyParameter() argument 13 this.privateKey = privateKey; in AsymmetricKeyParameter() 18 return privateKey; in isPrivate()
|
/external/bouncycastle/repackaged/bcprov/src/main/java/com/android/org/bouncycastle/crypto/params/ |
D | AsymmetricKeyParameter.java | 12 boolean privateKey; field in AsymmetricKeyParameter 15 boolean privateKey) in AsymmetricKeyParameter() argument 17 this.privateKey = privateKey; in AsymmetricKeyParameter() 22 return privateKey; in isPrivate()
|
/external/grpc-grpc/src/csharp/Grpc.Core/ |
D | KeyCertificatePair.cs | 33 readonly string privateKey; field in Grpc.Core.KeyCertificatePair 40 public KeyCertificatePair(string certificateChain, string privateKey) in KeyCertificatePair() argument 43 this.privateKey = GrpcPreconditions.CheckNotNull(privateKey, "privateKey"); in KeyCertificatePair() 64 return privateKey;
|
/external/conscrypt/common/src/main/java/org/conscrypt/ |
D | OpenSSLECPrivateKey.java | 84 static OpenSSLKey wrapJCAPrivateKeyForTLSStackOnly(PrivateKey privateKey, in wrapJCAPrivateKeyForTLSStackOnly() argument 87 if (privateKey instanceof ECKey) { in wrapJCAPrivateKeyForTLSStackOnly() 88 params = ((ECKey) privateKey).getParams(); in wrapJCAPrivateKeyForTLSStackOnly() 93 throw new InvalidKeyException("EC parameters not available. Private: " + privateKey in wrapJCAPrivateKeyForTLSStackOnly() 96 return wrapJCAPrivateKeyForTLSStackOnly(privateKey, params); in wrapJCAPrivateKeyForTLSStackOnly() 104 static OpenSSLKey wrapJCAPrivateKeyForTLSStackOnly(PrivateKey privateKey, in wrapJCAPrivateKeyForTLSStackOnly() argument 107 if (privateKey instanceof ECKey) { in wrapJCAPrivateKeyForTLSStackOnly() 108 params = ((ECKey) privateKey).getParams(); in wrapJCAPrivateKeyForTLSStackOnly() 112 throw new InvalidKeyException("EC parameters not available: " + privateKey); in wrapJCAPrivateKeyForTLSStackOnly() 123 NativeCrypto.getECPrivateKeyWrapper(privateKey, group.getNativeRef()), true); in wrapJCAPrivateKeyForTLSStackOnly()
|
D | OpenSSLSignatureRawRSA.java | 89 protected void engineInitSign(PrivateKey privateKey) throws InvalidKeyException { in engineInitSign() argument 90 if (privateKey instanceof OpenSSLRSAPrivateKey) { in engineInitSign() 91 OpenSSLRSAPrivateKey rsaPrivateKey = (OpenSSLRSAPrivateKey) privateKey; in engineInitSign() 93 } else if (privateKey instanceof RSAPrivateCrtKey) { in engineInitSign() 94 RSAPrivateCrtKey rsaPrivateKey = (RSAPrivateCrtKey) privateKey; in engineInitSign() 96 } else if (privateKey instanceof RSAPrivateKey) { in engineInitSign() 97 RSAPrivateKey rsaPrivateKey = (RSAPrivateKey) privateKey; in engineInitSign()
|
D | OpenSSLKey.java | 115 PrivateKey privateKey, PublicKey publicKey) throws InvalidKeyException { in fromPrivateKeyForTLSStackOnly() argument 116 OpenSSLKey result = getOpenSSLKey(privateKey); in fromPrivateKeyForTLSStackOnly() 121 result = fromKeyMaterial(privateKey); in fromPrivateKeyForTLSStackOnly() 126 return wrapJCAPrivateKeyForTLSStackOnly(privateKey, publicKey); in fromPrivateKeyForTLSStackOnly() 197 private static OpenSSLKey wrapJCAPrivateKeyForTLSStackOnly(PrivateKey privateKey, in wrapJCAPrivateKeyForTLSStackOnly() argument 199 String keyAlgorithm = privateKey.getAlgorithm(); in wrapJCAPrivateKeyForTLSStackOnly() 201 return OpenSSLRSAPrivateKey.wrapJCAPrivateKeyForTLSStackOnly(privateKey, publicKey); in wrapJCAPrivateKeyForTLSStackOnly() 203 return OpenSSLECPrivateKey.wrapJCAPrivateKeyForTLSStackOnly(privateKey, publicKey); in wrapJCAPrivateKeyForTLSStackOnly()
|
D | OpenSSLRSAPrivateKey.java | 113 static OpenSSLKey wrapJCAPrivateKeyForTLSStackOnly(PrivateKey privateKey, in wrapJCAPrivateKeyForTLSStackOnly() argument 116 if (privateKey instanceof RSAKey) { in wrapJCAPrivateKeyForTLSStackOnly() 117 modulus = ((RSAKey) privateKey).getModulus(); in wrapJCAPrivateKeyForTLSStackOnly() 122 throw new InvalidKeyException("RSA modulus not available. Private: " + privateKey in wrapJCAPrivateKeyForTLSStackOnly() 126 NativeCrypto.getRSAPrivateKeyWrapper(privateKey, modulus.toByteArray()), true); in wrapJCAPrivateKeyForTLSStackOnly()
|
/external/conscrypt/repackaged/common/src/main/java/com/android/org/conscrypt/ |
D | OpenSSLECPrivateKey.java | 85 static OpenSSLKey wrapJCAPrivateKeyForTLSStackOnly(PrivateKey privateKey, in wrapJCAPrivateKeyForTLSStackOnly() argument 88 if (privateKey instanceof ECKey) { in wrapJCAPrivateKeyForTLSStackOnly() 89 params = ((ECKey) privateKey).getParams(); in wrapJCAPrivateKeyForTLSStackOnly() 94 throw new InvalidKeyException("EC parameters not available. Private: " + privateKey in wrapJCAPrivateKeyForTLSStackOnly() 97 return wrapJCAPrivateKeyForTLSStackOnly(privateKey, params); in wrapJCAPrivateKeyForTLSStackOnly() 105 static OpenSSLKey wrapJCAPrivateKeyForTLSStackOnly(PrivateKey privateKey, in wrapJCAPrivateKeyForTLSStackOnly() argument 108 if (privateKey instanceof ECKey) { in wrapJCAPrivateKeyForTLSStackOnly() 109 params = ((ECKey) privateKey).getParams(); in wrapJCAPrivateKeyForTLSStackOnly() 113 throw new InvalidKeyException("EC parameters not available: " + privateKey); in wrapJCAPrivateKeyForTLSStackOnly() 124 NativeCrypto.getECPrivateKeyWrapper(privateKey, group.getNativeRef()), true); in wrapJCAPrivateKeyForTLSStackOnly()
|
D | OpenSSLSignatureRawRSA.java | 93 protected void engineInitSign(PrivateKey privateKey) throws InvalidKeyException { in engineInitSign() argument 94 if (privateKey instanceof OpenSSLRSAPrivateKey) { in engineInitSign() 95 OpenSSLRSAPrivateKey rsaPrivateKey = (OpenSSLRSAPrivateKey) privateKey; in engineInitSign() 97 } else if (privateKey instanceof RSAPrivateCrtKey) { in engineInitSign() 98 RSAPrivateCrtKey rsaPrivateKey = (RSAPrivateCrtKey) privateKey; in engineInitSign() 100 } else if (privateKey instanceof RSAPrivateKey) { in engineInitSign() 101 RSAPrivateKey rsaPrivateKey = (RSAPrivateKey) privateKey; in engineInitSign()
|
D | OpenSSLKey.java | 119 PrivateKey privateKey, PublicKey publicKey) throws InvalidKeyException { in fromPrivateKeyForTLSStackOnly() argument 120 OpenSSLKey result = getOpenSSLKey(privateKey); in fromPrivateKeyForTLSStackOnly() 125 result = fromKeyMaterial(privateKey); in fromPrivateKeyForTLSStackOnly() 130 return wrapJCAPrivateKeyForTLSStackOnly(privateKey, publicKey); in fromPrivateKeyForTLSStackOnly() 201 private static OpenSSLKey wrapJCAPrivateKeyForTLSStackOnly(PrivateKey privateKey, in wrapJCAPrivateKeyForTLSStackOnly() argument 203 String keyAlgorithm = privateKey.getAlgorithm(); in wrapJCAPrivateKeyForTLSStackOnly() 205 return OpenSSLRSAPrivateKey.wrapJCAPrivateKeyForTLSStackOnly(privateKey, publicKey); in wrapJCAPrivateKeyForTLSStackOnly() 207 return OpenSSLECPrivateKey.wrapJCAPrivateKeyForTLSStackOnly(privateKey, publicKey); in wrapJCAPrivateKeyForTLSStackOnly()
|
D | OpenSSLRSAPrivateKey.java | 114 static OpenSSLKey wrapJCAPrivateKeyForTLSStackOnly(PrivateKey privateKey, in wrapJCAPrivateKeyForTLSStackOnly() argument 117 if (privateKey instanceof RSAKey) { in wrapJCAPrivateKeyForTLSStackOnly() 118 modulus = ((RSAKey) privateKey).getModulus(); in wrapJCAPrivateKeyForTLSStackOnly() 123 throw new InvalidKeyException("RSA modulus not available. Private: " + privateKey in wrapJCAPrivateKeyForTLSStackOnly() 127 NativeCrypto.getRSAPrivateKeyWrapper(privateKey, modulus.toByteArray()), true); in wrapJCAPrivateKeyForTLSStackOnly()
|
/external/boringssl/src/crypto/x509/ |
D | make_many_constraints.go | 61 var privateKey *rsa.PrivateKey var 73 privateKey = key.(*rsa.PrivateKey) 122 …:= x509.CreateCertificate(rand.Reader, &caTemplate, &caTemplate, &privateKey.PublicKey, privateKey) 171 …s, err := x509.CreateCertificate(rand.Reader, &leafTemplate, ca, &privateKey.PublicKey, privateKey)
|
/external/oauth/core/src/main/java/net/oauth/signature/ |
D | RSA_SHA1.java | 89 private PrivateKey privateKey = null; field in RSA_SHA1 101 privateKey = (PrivateKey)privateKeyObject; in initialize() 103 privateKey = getPrivateKeyFromPem((String)privateKeyObject); in initialize() 105 privateKey = getPrivateKeyFromDer((byte[])privateKeyObject); in initialize() 216 if (privateKey == null) { in sign() 222 signer.initSign(privateKey); in sign()
|
/external/conscrypt/repackaged/testing/src/main/java/com/android/org/conscrypt/java/security/ |
D | TestKeyStore.java | 529 privateKey(keyStore, keyPassword, "RSA", "RSA")); in build() 533 privateKey(keyStore, keyPassword, "DSA", "DSA")); in build() 589 final PrivateKey privateKey; in createKeys() local 594 privateKey = null; in createKeys() 632 privateKey = kp.getPrivate(); in createKeys() 636 privateKey = privateEntry.getPrivateKey(); in createKeys() 643 PrivateKey signingKey = (caKey == null) ? privateKey : caKey; in createKeys() 663 keyStore.setKeyEntry(privateAlias, privateKey, keyPassword, x509cc); in createKeys() 677 PublicKey publicKey, PrivateKey privateKey, String subject) { in createCa() argument 680 return createCertificate(publicKey, privateKey, principal, principal, 0, true, in createCa() [all …]
|
/external/conscrypt/testing/src/main/java/org/conscrypt/java/security/ |
D | TestKeyStore.java | 526 privateKey(keyStore, keyPassword, "RSA", "RSA")); in build() 530 privateKey(keyStore, keyPassword, "DSA", "DSA")); in build() 586 final PrivateKey privateKey; in createKeys() local 591 privateKey = null; in createKeys() 629 privateKey = kp.getPrivate(); in createKeys() 633 privateKey = privateEntry.getPrivateKey(); in createKeys() 640 PrivateKey signingKey = (caKey == null) ? privateKey : caKey; in createKeys() 660 keyStore.setKeyEntry(privateAlias, privateKey, keyPassword, x509cc); in createKeys() 674 PublicKey publicKey, PrivateKey privateKey, String subject) { in createCa() argument 677 return createCertificate(publicKey, privateKey, principal, principal, 0, true, in createCa() [all …]
|
/external/conscrypt/repackaged/openjdk/src/test/java/com/android/org/conscrypt/ |
D | OpenSSLKeyTest.java | 65 OpenSSLRSAPrivateKey privateKey = (OpenSSLRSAPrivateKey)key.getPrivateKey(); in test_fromPrivateKeyPemInputStream() local 66 assertEquals(RSA_MODULUS, privateKey.getModulus()); in test_fromPrivateKeyPemInputStream() 67 assertEquals(RSA_PRIVATE_EXPONENT, privateKey.getPrivateExponent()); in test_fromPrivateKeyPemInputStream()
|
/external/conscrypt/openjdk/src/test/java/org/conscrypt/ |
D | OpenSSLKeyTest.java | 61 OpenSSLRSAPrivateKey privateKey = (OpenSSLRSAPrivateKey)key.getPrivateKey(); in test_fromPrivateKeyPemInputStream() local 62 assertEquals(RSA_MODULUS, privateKey.getModulus()); in test_fromPrivateKeyPemInputStream() 63 assertEquals(RSA_PRIVATE_EXPONENT, privateKey.getPrivateExponent()); in test_fromPrivateKeyPemInputStream()
|
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jcajce/provider/asymmetric/dsa/ |
D | DSASigner.java | 59 PrivateKey privateKey, in engineInitSign() argument 64 engineInitSign(privateKey); in engineInitSign() 68 PrivateKey privateKey) in engineInitSign() argument 71 CipherParameters param = DSAUtil.generatePrivateKeyParameter(privateKey); in engineInitSign()
|
/external/bouncycastle/repackaged/bcprov/src/main/java/com/android/org/bouncycastle/jcajce/provider/asymmetric/dsa/ |
D | DSASigner.java | 63 PrivateKey privateKey, in engineInitSign() argument 68 engineInitSign(privateKey); in engineInitSign() 72 PrivateKey privateKey) in engineInitSign() argument 75 CipherParameters param = DSAUtil.generatePrivateKeyParameter(privateKey); in engineInitSign()
|
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jcajce/provider/asymmetric/rsa/ |
D | DigestSignatureSpi.java | 85 PrivateKey privateKey) in engineInitSign() argument 88 if (!(privateKey instanceof RSAPrivateKey)) in engineInitSign() 90 …throw new InvalidKeyException("Supplied key (" + getType(privateKey) + ") is not a RSAPrivateKey i… in engineInitSign() 93 CipherParameters param = RSAUtil.generatePrivateKeyParameter((RSAPrivateKey)privateKey); in engineInitSign()
|
/external/bouncycastle/repackaged/bcprov/src/main/java/com/android/org/bouncycastle/jcajce/provider/asymmetric/rsa/ |
D | DigestSignatureSpi.java | 89 PrivateKey privateKey) in engineInitSign() argument 92 if (!(privateKey instanceof RSAPrivateKey)) in engineInitSign() 94 …throw new InvalidKeyException("Supplied key (" + getType(privateKey) + ") is not a RSAPrivateKey i… in engineInitSign() 97 CipherParameters param = RSAUtil.generatePrivateKeyParameter((RSAPrivateKey)privateKey); in engineInitSign()
|
/external/bouncycastle/bcpkix/src/main/java/org/bouncycastle/operator/jcajce/ |
D | JcaContentSignerBuilder.java | 84 public ContentSigner build(PrivateKey privateKey) in build() argument 94 sig.initSign(privateKey, random); in build() 98 sig.initSign(privateKey); in build()
|