/external/conscrypt/src/main/java/org/conscrypt/ |
D | OpenSSLKey.java | 31 public class OpenSSLKey { class 40 public OpenSSLKey(long ctx) { in OpenSSLKey() method in OpenSSLKey 44 public OpenSSLKey(long ctx, boolean wrapped) { in OpenSSLKey() method in OpenSSLKey 51 public OpenSSLKey(long ctx, OpenSSLEngine engine, String alias) { in OpenSSLKey() method in OpenSSLKey 81 public static OpenSSLKey fromPrivateKey(PrivateKey key) throws InvalidKeyException { in fromPrivateKey() 98 return new OpenSSLKey(NativeCrypto.d2i_PKCS8_PRIV_KEY_INFO(key.getEncoded())); in fromPrivateKey() 109 public static OpenSSLKey fromPrivateKeyForTLSStackOnly( in fromPrivateKeyForTLSStackOnly() 111 OpenSSLKey result = getOpenSSLKey(privateKey); in fromPrivateKeyForTLSStackOnly() 133 public static OpenSSLKey fromECPrivateKeyForTLSStackOnly( in fromECPrivateKeyForTLSStackOnly() 135 OpenSSLKey result = getOpenSSLKey(key); in fromECPrivateKeyForTLSStackOnly() [all …]
|
D | OpenSSLRSAPrivateKey.java | 35 protected transient OpenSSLKey key; 43 OpenSSLRSAPrivateKey(OpenSSLKey key) { in OpenSSLRSAPrivateKey() 47 OpenSSLRSAPrivateKey(OpenSSLKey key, byte[][] params) { in OpenSSLRSAPrivateKey() 54 public OpenSSLKey getOpenSSLKey() { in getOpenSSLKey() 62 private static OpenSSLKey init(RSAPrivateKeySpec rsaKeySpec) throws InvalidKeySpecException { in init() 73 return new OpenSSLKey(NativeCrypto.EVP_PKEY_new_RSA( in init() 87 static OpenSSLRSAPrivateKey getInstance(OpenSSLKey key) { in getInstance() 95 protected static OpenSSLKey wrapPlatformKey(RSAPrivateKey rsaPrivateKey) in wrapPlatformKey() 97 OpenSSLKey wrapper = Platform.wrapRsaKey(rsaPrivateKey); in wrapPlatformKey() 101 return new OpenSSLKey(NativeCrypto.getRSAPrivateKeyWrapper(rsaPrivateKey, rsaPrivateKey in wrapPlatformKey() [all …]
|
D | OpenSSLECPrivateKey.java | 40 protected transient OpenSSLKey key; 44 public OpenSSLECPrivateKey(OpenSSLECGroupContext group, OpenSSLKey key) { in OpenSSLECPrivateKey() 49 public OpenSSLECPrivateKey(OpenSSLKey key) { in OpenSSLECPrivateKey() 59 key = new OpenSSLKey(NativeCrypto.EVP_PKEY_new_EC_KEY(group.getNativeRef(), null, in OpenSSLECPrivateKey() 66 public static OpenSSLKey wrapPlatformKey(ECPrivateKey ecPrivateKey) throws InvalidKeyException { in wrapPlatformKey() 81 static OpenSSLKey wrapJCAPrivateKeyForTLSStackOnly(PrivateKey privateKey, in wrapJCAPrivateKeyForTLSStackOnly() 101 static OpenSSLKey wrapJCAPrivateKeyForTLSStackOnly(PrivateKey privateKey, in wrapJCAPrivateKeyForTLSStackOnly() 119 return new OpenSSLKey( in wrapJCAPrivateKeyForTLSStackOnly() 123 private static OpenSSLKey wrapPlatformKey(ECPrivateKey ecPrivateKey, in wrapPlatformKey() 125 return new OpenSSLKey(NativeCrypto.getECPrivateKeyWrapper(ecPrivateKey, in wrapPlatformKey() [all …]
|
D | OpenSSLSecretKey.java | 35 private transient OpenSSLKey key; 42 key = new OpenSSLKey(NativeCrypto.EVP_PKEY_new_mac_key(type, encoded)); in OpenSSLSecretKey() 45 public OpenSSLSecretKey(String algorithm, OpenSSLKey key) { in OpenSSLSecretKey() 53 public static OpenSSLKey getInstance(SecretKey key) throws InvalidKeyException { in getInstance() 55 return new OpenSSLKey(NativeCrypto.EVP_PKEY_new_mac_key(NativeConstants.EVP_PKEY_HMAC, in getInstance() 86 public OpenSSLKey getOpenSSLKey() { in getOpenSSLKey() 127 key = new OpenSSLKey(NativeCrypto.EVP_PKEY_new_mac_key(type, encoded)); in readObject()
|
D | OpenSSLECPublicKey.java | 36 protected transient OpenSSLKey key; 40 public OpenSSLECPublicKey(OpenSSLECGroupContext group, OpenSSLKey key) { in OpenSSLECPublicKey() 45 public OpenSSLECPublicKey(OpenSSLKey key) { in OpenSSLECPublicKey() 56 key = new OpenSSLKey(NativeCrypto.EVP_PKEY_new_EC_KEY(group.getNativeRef(), in OpenSSLECPublicKey() 63 public static OpenSSLKey getInstance(ECPublicKey ecPublicKey) throws InvalidKeyException { in getInstance() 70 return new OpenSSLKey(NativeCrypto.EVP_PKEY_new_EC_KEY(group.getNativeRef(), in getInstance() 110 public OpenSSLKey getOpenSSLKey() { in getOpenSSLKey() 158 key = new OpenSSLKey(NativeCrypto.d2i_PUBKEY(encoded)); in readObject()
|
D | OpenSSLRSAPublicKey.java | 31 private transient OpenSSLKey key; 39 OpenSSLRSAPublicKey(OpenSSLKey key) { in OpenSSLRSAPublicKey() 44 public OpenSSLKey getOpenSSLKey() { in getOpenSSLKey() 50 key = new OpenSSLKey(NativeCrypto.EVP_PKEY_new_RSA( in OpenSSLRSAPublicKey() 64 static OpenSSLKey getInstance(RSAPublicKey rsaPublicKey) throws InvalidKeyException { in getInstance() 66 return new OpenSSLKey(NativeCrypto.EVP_PKEY_new_RSA( in getInstance() 173 key = new OpenSSLKey(NativeCrypto.EVP_PKEY_new_RSA( in readObject()
|
D | OpenSSLECDHKeyAgreement.java | 37 private OpenSSLKey mOpenSslPrivateKey; 63 OpenSSLKey openSslPublicKey = OpenSSLKey.fromPublicKey((PublicKey) key); in engineDoPhase() 126 OpenSSLKey openSslKey = OpenSSLKey.fromPrivateKey((PrivateKey) key); in engineInit()
|
D | OpenSSLSignature.java | 41 private OpenSSLKey key; 107 private void checkEngineType(OpenSSLKey pkey) throws InvalidKeyException { in checkEngineType() 128 private void initInternal(OpenSSLKey newKey, boolean signing) throws InvalidKeyException { in initInternal() 138 initInternal(OpenSSLKey.fromPrivateKey(privateKey), true); in engineInitSign() 150 final OpenSSLKey key = this.key; in enableDSASignatureNonceHardeningIfApplicable() 162 initInternal(OpenSSLKey.fromPublicKey(publicKey), false); in engineInitVerify()
|
D | OpenSSLEngine.java | 99 OpenSSLKey pkey = new OpenSSLKey(keyRef, this, id); in getPrivateKeyById() 117 OpenSSLKey pkey = new OpenSSLKey(keyRef, this, id); in getSecretKeyById()
|
D | OpenSSLRSAPrivateCrtKey.java | 45 OpenSSLRSAPrivateCrtKey(OpenSSLKey key) { in OpenSSLRSAPrivateCrtKey() 49 OpenSSLRSAPrivateCrtKey(OpenSSLKey key, byte[][] params) { in OpenSSLRSAPrivateCrtKey() 57 private static OpenSSLKey init(RSAPrivateCrtKeySpec rsaKeySpec) throws InvalidKeySpecException { in init() 81 return new OpenSSLKey(NativeCrypto.EVP_PKEY_new_RSA( in init() 95 static OpenSSLKey getInstance(RSAPrivateCrtKey rsaPrivateKey) throws InvalidKeyException { in getInstance() 127 return new OpenSSLKey(NativeCrypto.EVP_PKEY_new_RSA( in getInstance() 317 key = new OpenSSLKey(NativeCrypto.EVP_PKEY_new_RSA( in readObject()
|
D | OpenSSLMac.java | 45 private OpenSSLKey macKey; 87 macKey = new OpenSSLKey(NativeCrypto.EVP_PKEY_new_mac_key(evp_pkey_type, keyBytes)); in engineInit() 97 final OpenSSLKey macKey = this.macKey; in resetContext()
|
D | OpenSSLRSAKeyPairGenerator.java | 44 final OpenSSLKey key = new OpenSSLKey(NativeCrypto.RSA_generate_key_ex(modulusBits, in generateKeyPair()
|
D | OpenSSLECKeyPairGenerator.java | 63 final OpenSSLKey key = new OpenSSLKey( in generateKeyPair()
|
D | OpenSSLKeyHolder.java | 20 public OpenSSLKey getOpenSSLKey(); in getOpenSSLKey()
|
D | OpenSSLX509Certificate.java | 345 private void verifyOpenSSL(OpenSSLKey pkey) throws CertificateException, in verifyOpenSSL() 383 OpenSSLKey pkey = ((OpenSSLKeyHolder) key).getOpenSSLKey(); in verify() 414 OpenSSLKey pkey = new OpenSSLKey(NativeCrypto.X509_get_pubkey(mContext)); in getPublicKey()
|
D | OpenSSLECKeyFactory.java | 47 … return OpenSSLKey.getPublicKey((X509EncodedKeySpec) keySpec, NativeConstants.EVP_PKEY_EC); in engineGeneratePublic() 62 return OpenSSLKey.getPrivateKey((PKCS8EncodedKeySpec) keySpec, in engineGeneratePrivate()
|
D | OpenSSLRSAKeyFactory.java | 47 … return OpenSSLKey.getPublicKey((X509EncodedKeySpec) keySpec, NativeConstants.EVP_PKEY_RSA); in engineGeneratePublic() 64 return OpenSSLKey.getPrivateKey((PKCS8EncodedKeySpec) keySpec, in engineGeneratePrivate()
|
D | OpenSSLX509CRL.java | 196 private void verifyOpenSSL(OpenSSLKey pkey) throws CRLException, NoSuchAlgorithmException, in verifyOpenSSL() 227 OpenSSLKey pkey = ((OpenSSLKeyHolder) key).getOpenSSLKey(); in verify()
|
D | OpenSSLSignatureRawRSA.java | 37 private OpenSSLKey key;
|
D | SSLParametersImpl.java | 388 void setTlsChannelId(long sslNativePointer, OpenSSLKey channelIdPrivateKey) in setTlsChannelId() 444 final OpenSSLKey key; in setCertificate() 446 key = OpenSSLKey.fromPrivateKeyForTLSStackOnly(privateKey, publicKey); in setCertificate()
|
D | OpenSSLSocketImpl.java | 158 OpenSSLKey channelIdPrivateKey; 979 OpenSSLKey.fromECPrivateKeyForTLSStackOnly(privateKey, ecParams); in setChannelIdPrivateKey()
|
D | OpenSSLCipherRSA.java | 50 private OpenSSLKey key;
|
/external/conscrypt/src/compat/java/org/conscrypt/ |
D | Platform.java | 175 public static OpenSSLKey wrapRsaKey(PrivateKey javaKey) { in wrapRsaKey() 251 return new OpenSSLKey(evp_pkey); in wrapRsaKey()
|
/external/conscrypt/src/test/java/org/conscrypt/ |
D | NativeCryptoTest.java | 77 private static OpenSSLKey SERVER_PRIVATE_KEY; 80 private static OpenSSLKey CLIENT_PRIVATE_KEY; 84 private static OpenSSLKey CHANNEL_ID_PRIVATE_KEY; 92 private static OpenSSLKey getServerPrivateKey() { in getServerPrivateKey() 102 private static OpenSSLKey getClientPrivateKey() { in getClientPrivateKey() 128 SERVER_PRIVATE_KEY = OpenSSLKey.fromPrivateKey(serverPrivateKeyEntry.getPrivateKey()); in initCerts() 135 CLIENT_PRIVATE_KEY = OpenSSLKey.fromPrivateKey(clientPrivateKeyEntry.getPrivateKey()); in initCerts() 636 private OpenSSLKey channelIdPrivateKey; 861 private final OpenSSLKey privateKey; 873 public ServerHooks(OpenSSLKey privateKey, long[] certificates) { in ServerHooks() [all …]
|
/external/conscrypt/src/platform/java/org/conscrypt/ |
D | Platform.java | 125 public static OpenSSLKey wrapRsaKey(PrivateKey key) { in wrapRsaKey()
|