/external/conscrypt/common/src/main/java/org/conscrypt/ |
D | NativeCrypto.java | 70 static native int EVP_PKEY_type(NativeRef.EVP_PKEY pkey); in EVP_PKEY_type() 72 static native String EVP_PKEY_print_public(NativeRef.EVP_PKEY pkeyRef); in EVP_PKEY_print_public() 74 static native String EVP_PKEY_print_params(NativeRef.EVP_PKEY pkeyRef); in EVP_PKEY_print_params() 78 static native int EVP_PKEY_cmp(NativeRef.EVP_PKEY pkey1, NativeRef.EVP_PKEY pkey2); in EVP_PKEY_cmp() 80 static native byte[] EVP_marshal_private_key(NativeRef.EVP_PKEY pkey); in EVP_marshal_private_key() 84 static native byte[] EVP_marshal_public_key(NativeRef.EVP_PKEY pkey); in EVP_marshal_public_key() 94 static native long getECPrivateKeyWrapper(PrivateKey key, NativeRef.EC_GROUP ecGroupRef); in getECPrivateKeyWrapper() 98 static native int RSA_size(NativeRef.EVP_PKEY pkey); in RSA_size() 101 int flen, byte[] from, byte[] to, NativeRef.EVP_PKEY pkey, int padding); in RSA_private_encrypt() 103 static native int RSA_public_decrypt(int flen, byte[] from, byte[] to, NativeRef.EVP_PKEY pkey, in RSA_public_decrypt() [all …]
|
D | NativeRef.java | 23 abstract class NativeRef { class 26 NativeRef(long context) { in NativeRef() method in NativeRef 36 if (!(o instanceof NativeRef)) { in equals() 40 return ((NativeRef) o).context == context; in equals() 61 static final class EC_GROUP extends NativeRef { 72 static final class EC_POINT extends NativeRef { 83 static final class EVP_CIPHER_CTX extends NativeRef { 94 static final class EVP_MD_CTX extends NativeRef { 105 static final class EVP_PKEY extends NativeRef { 116 static final class EVP_PKEY_CTX extends NativeRef { [all …]
|
D | OpenSSLMessageDigestJDK.java | 30 private final NativeRef.EVP_MD_CTX ctx; 58 NativeRef.EVP_MD_CTX ctxLocal = new NativeRef.EVP_MD_CTX(NativeCrypto.EVP_MD_CTX_create()); in OpenSSLMessageDigestJDK() 62 private OpenSSLMessageDigestJDK(long evp_md, int size, NativeRef.EVP_MD_CTX ctx, in OpenSSLMessageDigestJDK() 72 final NativeRef.EVP_MD_CTX ctxLocal = ctx; in ensureDigestInitializedInContext() 83 final NativeRef.EVP_MD_CTX ctxLocal = ctx; in engineReset() 198 NativeRef.EVP_MD_CTX ctxCopy = new NativeRef.EVP_MD_CTX(NativeCrypto.EVP_MD_CTX_create()); in clone()
|
D | OpenSSLECGroupContext.java | 32 private final NativeRef.EC_GROUP groupCtx; 34 OpenSSLECGroupContext(NativeRef.EC_GROUP groupCtx) { in OpenSSLECGroupContext() 49 NativeRef.EC_GROUP groupRef = new NativeRef.EC_GROUP(ctx); in getCurveByName() 65 NativeRef.EC_GROUP getNativeRef() { in getNativeRef() 152 NativeRef.EC_GROUP groupRef = new NativeRef.EC_GROUP(group); in getInstance() 170 new NativeRef.EC_POINT(NativeCrypto.EC_GROUP_get_generator(groupCtx))); in getECParameterSpec()
|
D | OpenSSLMac.java | 35 private NativeRef.HMAC_CTX ctx; 88 NativeRef.HMAC_CTX ctxLocal = new NativeRef.HMAC_CTX(NativeCrypto.HMAC_CTX_new()); in resetContext() 104 final NativeRef.HMAC_CTX ctxLocal = ctx; in engineUpdate() 142 final NativeRef.HMAC_CTX ctxLocal = ctx; in engineUpdate() 149 final NativeRef.HMAC_CTX ctxLocal = ctx; in engineDoFinal()
|
D | OpenSSLECPointContext.java | 24 private final NativeRef.EC_POINT pointCtx; 26 OpenSSLECPointContext(OpenSSLECGroupContext group, NativeRef.EC_POINT pointCtx) { in OpenSSLECPointContext() 50 NativeRef.EC_POINT getNativeRef() { in getNativeRef() 56 OpenSSLECPointContext point = new OpenSSLECPointContext(group, new NativeRef.EC_POINT( in getInstance()
|
D | OpenSSLSignature.java | 47 private NativeRef.EVP_MD_CTX ctx; 90 NativeRef.EVP_MD_CTX ctxLocal = new NativeRef.EVP_MD_CTX(NativeCrypto.EVP_MD_CTX_create()); in resetContext() 118 final NativeRef.EVP_MD_CTX ctxLocal = ctx; in engineUpdate() 160 final NativeRef.EVP_MD_CTX ctxLocal = ctx; in engineUpdate() 226 final NativeRef.EVP_MD_CTX ctxLocal = ctx; in engineSign() 247 final NativeRef.EVP_MD_CTX ctxLocal = ctx; in engineVerify()
|
D | OpenSSLECPublicKey.java | 48 this.group = new OpenSSLECGroupContext(new NativeRef.EC_GROUP( in OpenSSLECPublicKey() 100 new NativeRef.EC_POINT(NativeCrypto.EC_KEY_get_public_key(key.getNativeRef()))); in getPublicKey() 160 group = new OpenSSLECGroupContext(new NativeRef.EC_GROUP( in readObject()
|
D | SslSessionWrapper.java | 49 static SslSessionWrapper newInstance(NativeRef.SSL_SESSION ref, ActiveSession activeSession) in newInstance() 150 NativeRef.SSL_SESSION ref = in newInstance() 151 new NativeRef.SSL_SESSION(NativeCrypto.d2i_SSL_SESSION(sessionData)); in newInstance() 210 private final NativeRef.SSL_SESSION ref; 222 private Impl(AbstractSessionContext context, NativeRef.SSL_SESSION ref, String host, in Impl()
|
D | OpenSSLKey.java | 35 private final NativeRef.EVP_PKEY ctx; 44 this.ctx = new NativeRef.EVP_PKEY(ctx); in OpenSSLKey() 51 NativeRef.EVP_PKEY getNativeRef() { in getNativeRef()
|
D | OpenSSLECPrivateKey.java | 52 this.group = new OpenSSLECGroupContext(new NativeRef.EC_GROUP( in OpenSSLECPrivateKey() 235 group = new OpenSSLECGroupContext(new NativeRef.EC_GROUP( in readObject()
|
D | OpenSSLECDHKeyAgreement.java | 130 int fieldSizeBits = NativeCrypto.EC_GROUP_get_degree(new NativeRef.EC_GROUP( in engineInit()
|
D | OpenSSLCipherRSA.java | 413 private NativeRef.EVP_PKEY_CTX pkeyCtx; 507 pkeyCtx = new NativeRef.EVP_PKEY_CTX(encrypting in doCryptoInit()
|
D | ConscryptFileDescriptorSocket.java | 46 import org.conscrypt.NativeRef.SSL_SESSION; 362 NativeRef.SSL_SESSION ref = new SSL_SESSION(sslSessionNativePtr); in onNewSessionEstablished()
|
D | ConscryptEngine.java | 92 import org.conscrypt.NativeRef.SSL_SESSION; 1542 NativeRef.SSL_SESSION ref = new SSL_SESSION(sslSessionNativePtr); in onNewSessionEstablished()
|
D | OpenSSLCipher.java | 46 import org.conscrypt.NativeRef.EVP_CIPHER_CTX;
|
/external/conscrypt/openjdk/src/test/java/org/conscrypt/ |
D | NativeCryptoTest.java | 218 private static NativeRef.EVP_PKEY getRsaPkey(RSAPrivateCrtKey privKey) throws Exception { in getRsaPkey() 219 return new NativeRef.EVP_PKEY(NativeCrypto.EVP_PKEY_new_RSA( in getRsaPkey() 258 NativeRef.EVP_PKEY pkey1 = getRsaPkey(privKey1); in EVP_PKEY_cmp_withNullShouldThrow() 267 NativeRef.EVP_PKEY pkey1 = getRsaPkey(privKey1); in test_EVP_PKEY_cmp() 270 NativeRef.EVP_PKEY pkey1_copy = getRsaPkey(privKey1); in test_EVP_PKEY_cmp() 273 NativeRef.EVP_PKEY pkey2 = getRsaPkey(generateRsaKey()); in test_EVP_PKEY_cmp() 2644 NativeRef.EVP_PKEY pkey; in test_EVP_DigestSignInit() 2645 pkey = new NativeRef.EVP_PKEY(NativeCrypto.EVP_PKEY_new_RSA( in test_EVP_DigestSignInit() 2653 final NativeRef.EVP_MD_CTX ctx = new NativeRef.EVP_MD_CTX(NativeCrypto.EVP_MD_CTX_create()); in test_EVP_DigestSignInit() 2682 NativeRef.EC_GROUP group = new NativeRef.EC_GROUP(groupCtx); in test_get_RSA_private_params() [all …]
|
D | NativeRefTest.java | 24 new NativeRef(0) { in test_zeroContextThrowsNullPointException()
|