/external/boringssl/src/ssl/test/runner/ |
D | sign.go | 24 supportsKey(key crypto.PrivateKey) bool argument 25 signMessage(key crypto.PrivateKey, config *Config, msg []byte) ([]byte, error) argument 29 func selectSignatureAlgorithm(version uint16, key crypto.PrivateKey, config *Config, peerSigAlgs []… argument 54 func signMessage(version uint16, key crypto.PrivateKey, config *Config, sigAlg signatureAlgorithm, … argument 102 func (r *rsaPKCS1Signer) supportsKey(key crypto.PrivateKey) bool { 103 _, ok := key.(*rsa.PrivateKey) 107 func (r *rsaPKCS1Signer) signMessage(key crypto.PrivateKey, config *Config, msg []byte) ([]byte, er… 108 rsaKey, ok := key.(*rsa.PrivateKey) 142 func (e *ecdsaSigner) supportsKey(key crypto.PrivateKey) bool { 143 ecdsaKey, ok := key.(*ecdsa.PrivateKey) [all …]
|
D | tls.go | 219 cert.PrivateKey, err = parsePrivateKey(keyDERBlock.Bytes) 233 priv, ok := cert.PrivateKey.(*rsa.PrivateKey) 243 priv, ok := cert.PrivateKey.(*ecdsa.PrivateKey) 254 priv, ok := cert.PrivateKey.(ed25519.PrivateKey) 274 func parsePrivateKey(der []byte) (crypto.PrivateKey, error) { 280 case *rsa.PrivateKey, *ecdsa.PrivateKey, ed25519.PrivateKey:
|
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jcajce/ |
D | CompositePrivateKey.java | 4 import java.security.PrivateKey; 20 implements PrivateKey 22 private final List<PrivateKey> keys; 29 public CompositePrivateKey(PrivateKey... keys) in CompositePrivateKey() 36 List<PrivateKey> keyList = new ArrayList<PrivateKey>(keys.length); in CompositePrivateKey() 49 public List<PrivateKey> getPrivateKeys() in getPrivateKeys()
|
/external/bouncycastle/repackaged/bcprov/src/main/java/com/android/org/bouncycastle/jcajce/ |
D | CompositePrivateKey.java | 5 import java.security.PrivateKey; 22 implements PrivateKey 24 private final List<PrivateKey> keys; 31 public CompositePrivateKey(PrivateKey... keys) in CompositePrivateKey() 38 List<PrivateKey> keyList = new ArrayList<PrivateKey>(keys.length); in CompositePrivateKey() 51 public List<PrivateKey> getPrivateKeys() in getPrivateKeys()
|
/external/conscrypt/common/src/test/java/org/conscrypt/java/security/ |
D | TestPrivateKey.java | 18 import java.security.PrivateKey; 20 class TestPrivateKey implements PrivateKey { 21 private PrivateKey key; 24 TestPrivateKey(PrivateKey key) { in TestPrivateKey() 28 TestPrivateKey(PrivateKey key, String format) { in TestPrivateKey()
|
/external/conscrypt/repackaged/common/src/test/java/com/android/org/conscrypt/java/security/ |
D | TestPrivateKey.java | 19 import java.security.PrivateKey; 21 class TestPrivateKey implements PrivateKey { 22 private PrivateKey key; 25 TestPrivateKey(PrivateKey key) { in TestPrivateKey() 29 TestPrivateKey(PrivateKey key, String format) { in TestPrivateKey()
|
/external/bouncycastle/repackaged_platform/bcprov/src/main/java/com/android/internal/org/bouncycastle/jcajce/ |
D | CompositePrivateKey.java | 5 import java.security.PrivateKey; 22 implements PrivateKey 24 private final List<PrivateKey> keys; 31 public CompositePrivateKey(PrivateKey... keys) in CompositePrivateKey() 38 List<PrivateKey> keyList = new ArrayList<PrivateKey>(keys.length); in CompositePrivateKey() 51 public List<PrivateKey> getPrivateKeys() in getPrivateKeys()
|
/external/ukey2/src/main/java/com/google/security/cryptauth/lib/securegcm/ |
D | KeyEncoding.java | 22 import java.security.PrivateKey; 57 public static byte[] encodeUserPrivateKey(PrivateKey sk) { in encodeUserPrivateKey() 65 public static PrivateKey parseUserPrivateKey(byte[] encodedPrivateKey, boolean isLegacy) in parseUserPrivateKey() 92 public static byte[] encodeKeyAgreementPrivateKey(PrivateKey sk) { in encodeKeyAgreementPrivateKey() 99 public static PrivateKey parseKeyAgreementPrivateKey(byte[] keyBytes, boolean isLegacy) in parseKeyAgreementPrivateKey() 116 public static byte[] encodeSigningPrivateKey(PrivateKey sk) { in encodeSigningPrivateKey() 120 public static PrivateKey parseSigningPrivateKey(byte[] keyBytes) throws InvalidKeySpecException { in parseSigningPrivateKey() 132 public static boolean isLegacyPrivateKey(PrivateKey sk) { in isLegacyPrivateKey()
|
/external/python/rsa/tests/ |
D | test_load_save_keys.py | 79 key = rsa.key.PrivateKey.load_pkcs1(PRIVATE_DER, 'DER') 80 expected = rsa.key.PrivateKey(3727264081, 65537, 3349121513, 65063, 57287) 103 key = rsa.key.PrivateKey.load_pkcs1(PRIVATE_DER, 'DER') 120 key = rsa.key.PrivateKey(3727264081, 65537, 3349121513, 65063, 57287) 150 key = rsa.key.PrivateKey.load_pkcs1(PRIVATE_PEM, 'PEM') 151 expected = rsa.key.PrivateKey(3727264081, 65537, 3349121513, 65063, 57287) 161 key = rsa.key.PrivateKey(3727264081, 65537, 3349121513, 65063, 57287) 190 privkey = rsa.key.PrivateKey.load_pkcs1(keydata) 200 pk = rsa.key.PrivateKey(3727264081, 65537, 3349121513, 65063, 57287)
|
/external/bouncycastle/repackaged_platform/bcprov/src/main/java/com/android/internal/org/bouncycastle/jcajce/util/ |
D | AnnotatedPrivateKey.java | 4 import java.security.PrivateKey; 15 implements PrivateKey 19 private final PrivateKey key; 22 AnnotatedPrivateKey(PrivateKey key, String label) in AnnotatedPrivateKey() 28 AnnotatedPrivateKey(PrivateKey key, Map<String, Object> annotations) in AnnotatedPrivateKey() 34 public PrivateKey getKey() in getKey()
|
/external/bouncycastle/repackaged/bcprov/src/main/java/com/android/org/bouncycastle/jcajce/util/ |
D | AnnotatedPrivateKey.java | 4 import java.security.PrivateKey; 15 implements PrivateKey 19 private final PrivateKey key; 22 AnnotatedPrivateKey(PrivateKey key, String label) in AnnotatedPrivateKey() 28 AnnotatedPrivateKey(PrivateKey key, Map<String, Object> annotations) in AnnotatedPrivateKey() 34 public PrivateKey getKey() in getKey()
|
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jcajce/util/ |
D | AnnotatedPrivateKey.java | 3 import java.security.PrivateKey; 13 implements PrivateKey 17 private final PrivateKey key; 20 AnnotatedPrivateKey(PrivateKey key, String label) in AnnotatedPrivateKey() 26 AnnotatedPrivateKey(PrivateKey key, Map<String, Object> annotations) in AnnotatedPrivateKey() 32 public PrivateKey getKey() in getKey()
|
/external/conscrypt/testing/src/main/java/org/conscrypt/javax/net/ssl/ |
D | RandomPrivateKeyX509ExtendedKeyManager.java | 23 import java.security.PrivateKey; 37 private final Map<String, PrivateKey> cachedKeys = new HashMap<String, PrivateKey>(); 42 public PrivateKey getPrivateKey(String alias) { in getPrivateKey() 43 PrivateKey originalPrivateKey = super.getPrivateKey(alias); in getPrivateKey() 47 PrivateKey result; in getPrivateKey()
|
/external/conscrypt/repackaged/testing/src/main/java/com/android/org/conscrypt/javax/net/ssl/ |
D | RandomPrivateKeyX509ExtendedKeyManager.java | 24 import java.security.PrivateKey; 39 private final Map<String, PrivateKey> cachedKeys = new HashMap<String, PrivateKey>(); 44 public PrivateKey getPrivateKey(String alias) { in getPrivateKey() 45 PrivateKey originalPrivateKey = super.getPrivateKey(alias); in getPrivateKey() 49 PrivateKey result; in getPrivateKey()
|
/external/conscrypt/testing/src/main/java/org/conscrypt/testing/ |
D | OpaqueProvider.java | 13 import java.security.PrivateKey; 52 public static PrivateKey wrapKey(PrivateKey key) { in wrapKey() 67 public static PrivateKey wrapKeyMarked(PrivateKey key) { in wrapKeyMarked() 98 protected void engineInitSign(PrivateKey privateKey) throws InvalidKeyException { in engineInitSign() 248 private interface DelegatingPrivateKey { PrivateKey getDelegate(); } in getDelegate() 251 implements ECKey, PrivateKey, DelegatingPrivateKey { 259 public PrivateKey getDelegate() { in getDelegate() 297 implements RSAKey, PrivateKey, DelegatingPrivateKey { 326 public PrivateKey getDelegate() { in getDelegate()
|
/external/conscrypt/repackaged/testing/src/main/java/com/android/org/conscrypt/testing/ |
D | OpaqueProvider.java | 14 import java.security.PrivateKey; 54 public static PrivateKey wrapKey(PrivateKey key) { in wrapKey() 69 public static PrivateKey wrapKeyMarked(PrivateKey key) { in wrapKeyMarked() 103 protected void engineInitSign(PrivateKey privateKey) throws InvalidKeyException { in engineInitSign() 259 private interface DelegatingPrivateKey { PrivateKey getDelegate(); } in getDelegate() 262 implements ECKey, PrivateKey, DelegatingPrivateKey { 270 public PrivateKey getDelegate() { in getDelegate() 308 implements RSAKey, PrivateKey, DelegatingPrivateKey { 337 public PrivateKey getDelegate() { in getDelegate()
|
/external/conscrypt/common/src/main/java/org/conscrypt/ |
D | OpenSSLKey.java | 22 import java.security.PrivateKey; 78 static OpenSSLKey fromPrivateKey(PrivateKey key) throws InvalidKeyException { in fromPrivateKey() 133 PrivateKey privateKey, PublicKey publicKey) throws InvalidKeyException { in fromPrivateKeyForTLSStackOnly() 157 PrivateKey key, ECParameterSpec ecParams) throws InvalidKeyException { in fromECPrivateKeyForTLSStackOnly() 177 private static OpenSSLKey getOpenSSLKey(PrivateKey key) { in getOpenSSLKey() 195 private static OpenSSLKey fromKeyMaterial(PrivateKey key) throws InvalidKeyException { in fromKeyMaterial() 215 private static OpenSSLKey wrapJCAPrivateKeyForTLSStackOnly(PrivateKey privateKey, in wrapJCAPrivateKeyForTLSStackOnly() 227 private static OpenSSLKey wrapPrivateKey(PrivateKey key) throws InvalidKeyException { in wrapPrivateKey() 313 PrivateKey getPrivateKey() throws NoSuchAlgorithmException { in getPrivateKey() 324 static PrivateKey getPrivateKey(PKCS8EncodedKeySpec keySpec, int type) in getPrivateKey()
|
D | CryptoUpcalls.java | 21 import java.security.PrivateKey; 59 static byte[] ecSignDigestWithPrivateKey(PrivateKey javaKey, byte[] message) { in ecSignDigestWithPrivateKey() 70 private static byte[] signDigestWithPrivateKey(PrivateKey javaKey, byte[] message, in signDigestWithPrivateKey() 135 static byte[] rsaSignDigestWithPrivateKey(PrivateKey javaKey, int openSSLPadding, in rsaSignDigestWithPrivateKey() 141 static byte[] rsaDecryptWithPrivateKey(PrivateKey javaKey, int openSSLPadding, byte[] input) { in rsaDecryptWithPrivateKey() 145 private static byte[] rsaOpWithPrivateKey(PrivateKey javaKey, int openSSLPadding, in rsaOpWithPrivateKey()
|
/external/conscrypt/repackaged/common/src/main/java/com/android/org/conscrypt/ |
D | OpenSSLKey.java | 24 import java.security.PrivateKey; 83 static OpenSSLKey fromPrivateKey(PrivateKey key) throws InvalidKeyException { in fromPrivateKey() 138 PrivateKey privateKey, PublicKey publicKey) throws InvalidKeyException { in fromPrivateKeyForTLSStackOnly() 162 PrivateKey key, ECParameterSpec ecParams) throws InvalidKeyException { in fromECPrivateKeyForTLSStackOnly() 182 private static OpenSSLKey getOpenSSLKey(PrivateKey key) { in getOpenSSLKey() 200 private static OpenSSLKey fromKeyMaterial(PrivateKey key) throws InvalidKeyException { in fromKeyMaterial() 220 private static OpenSSLKey wrapJCAPrivateKeyForTLSStackOnly(PrivateKey privateKey, in wrapJCAPrivateKeyForTLSStackOnly() 232 private static OpenSSLKey wrapPrivateKey(PrivateKey key) throws InvalidKeyException { in wrapPrivateKey() 319 PrivateKey getPrivateKey() throws NoSuchAlgorithmException { in getPrivateKey() 330 static PrivateKey getPrivateKey(PKCS8EncodedKeySpec keySpec, int type) in getPrivateKey()
|
D | CryptoUpcalls.java | 22 import java.security.PrivateKey; 60 static byte[] ecSignDigestWithPrivateKey(PrivateKey javaKey, byte[] message) { in ecSignDigestWithPrivateKey() 71 private static byte[] signDigestWithPrivateKey(PrivateKey javaKey, byte[] message, in signDigestWithPrivateKey() 136 static byte[] rsaSignDigestWithPrivateKey(PrivateKey javaKey, int openSSLPadding, in rsaSignDigestWithPrivateKey() 142 static byte[] rsaDecryptWithPrivateKey(PrivateKey javaKey, int openSSLPadding, byte[] input) { in rsaDecryptWithPrivateKey() 146 private static byte[] rsaOpWithPrivateKey(PrivateKey javaKey, int openSSLPadding, in rsaOpWithPrivateKey()
|
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/x509/ |
D | X509V1CertificateGenerator.java | 10 import java.security.PrivateKey; 187 PrivateKey key) in generateX509Certificate() 206 PrivateKey key, in generateX509Certificate() 227 PrivateKey key, in generateX509Certificate() 241 PrivateKey key, in generateX509Certificate() 277 PrivateKey key) in generate() 292 PrivateKey key, in generate() 317 PrivateKey key, in generate() 330 PrivateKey key, in generate()
|
/external/bouncycastle/repackaged/bcprov/src/main/java/com/android/org/bouncycastle/x509/ |
D | X509V1CertificateGenerator.java | 11 import java.security.PrivateKey; 189 PrivateKey key) in generateX509Certificate() 208 PrivateKey key, in generateX509Certificate() 229 PrivateKey key, in generateX509Certificate() 243 PrivateKey key, in generateX509Certificate() 279 PrivateKey key) in generate() 294 PrivateKey key, in generate() 319 PrivateKey key, in generate() 332 PrivateKey key, in generate()
|
/external/bouncycastle/repackaged_platform/bcprov/src/main/java/com/android/internal/org/bouncycastle/x509/ |
D | X509V1CertificateGenerator.java | 11 import java.security.PrivateKey; 189 PrivateKey key) in generateX509Certificate() 208 PrivateKey key, in generateX509Certificate() 229 PrivateKey key, in generateX509Certificate() 243 PrivateKey key, in generateX509Certificate() 279 PrivateKey key) in generate() 294 PrivateKey key, in generate() 319 PrivateKey key, in generate() 332 PrivateKey key, in generate()
|
/external/ukey2/src/main/javatest/com/google/security/cryptauth/lib/securegcm/ |
D | KeyEncodingTest.java | 20 import java.security.PrivateKey; 91 PrivateKey sk = userKeyPair.getPrivate(); in testUserPrivateKeyEncoding() 93 PrivateKey decodedSk = KeyEncoding.parseUserPrivateKey(encodedSk, isLegacy); in testUserPrivateKeyEncoding() 107 PrivateKey sk = clientKeyPair.getPrivate(); in testKeyAgreementPrivateKeyEncoding() 109 PrivateKey decodedSk = KeyEncoding.parseKeyAgreementPrivateKey(encodedSk, isLegacy); in testKeyAgreementPrivateKeyEncoding() 137 PrivateKey sk = keyPair.getPrivate(); in testSigningPrivateKeyEncoding() 139 PrivateKey decodedSk = KeyEncoding.parseSigningPrivateKey(encodedSk); in testSigningPrivateKeyEncoding()
|
/external/oauth/core/src/main/java/net/oauth/signature/ |
D | RSA_SHA1.java | 23 import java.security.PrivateKey; 89 private PrivateKey privateKey = null; 100 if (privateKeyObject instanceof PrivateKey) { in initialize() 101 privateKey = (PrivateKey)privateKeyObject; in initialize() 178 private PrivateKey getPrivateKeyFromDer(byte[] privateKeyObject) in getPrivateKeyFromDer() 185 private PrivateKey getPrivateKeyFromPem(String privateKeyObject) in getPrivateKeyFromPem()
|