OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
defs:NativeCrypto
(Results
1 - 9
of
9
) sorted by null
/libcore/luni/src/test/java/org/apache/harmony/xnet/provider/jsse/
NativeCryptoTest.java
48
import org.apache.harmony.xnet.provider.jsse.
NativeCrypto
.SSLHandshakeCallbacks;
49
import static org.apache.harmony.xnet.provider.jsse.
NativeCrypto
.SSL_MODE_HANDSHAKE_CUTTHROUGH;
103
SERVER_CERTIFICATES =
NativeCrypto
.encodeCertificates(
109
CLIENT_CERTIFICATES =
NativeCrypto
.encodeCertificates(
123
assertEqualByteArrays(
NativeCrypto
.SSL_SESSION_session_id(expected),
124
NativeCrypto
.SSL_SESSION_session_id(actual));
142
NativeCrypto
.EVP_PKEY_cmp(NULL, NULL);
158
pkey1 =
NativeCrypto
.EVP_PKEY_new_RSA(privKey1.getModulus().toByteArray(),
168
pkey1_copy =
NativeCrypto
.EVP_PKEY_new_RSA(privKey1.getModulus().toByteArray(),
178
pkey2 =
NativeCrypto
.EVP_PKEY_new_RSA(privKey2.getModulus().toByteArray()
[
all
...]
/libcore/luni/src/main/java/org/apache/harmony/xnet/provider/jsse/
OpenSSLSocketImpl.java
64
implements
NativeCrypto
.SSLHandshakeCallbacks {
173
NativeCrypto
.getDefaultProtocols(),
174
NativeCrypto
.getDefaultCipherSuites());
254
final int seedLengthInBytes =
NativeCrypto
.RAND_SEED_LENGTH_IN_BYTES;
257
NativeCrypto
.RAND_load_file("/dev/urandom", seedLengthInBytes);
259
NativeCrypto
.RAND_seed(secureRandom.generateSeed(seedLengthInBytes));
271
sslNativePointer =
NativeCrypto
.SSL_new(sslCtxNativePointer);
275
NativeCrypto
.SSL_CTX_enable_npn(sslCtxNativePointer);
283
if (enabledCipherSuite.equals(
NativeCrypto
.TLS_EMPTY_RENEGOTIATION_INFO_SCSV)) {
302
NativeCrypto
.setEnabledProtocols(sslNativePointer, enabledProtocols)
[
all
...]
ServerSessionContext.java
45
NativeCrypto
.SSL_CTX_set_session_id_context(sslCtxNativePointer, new byte[] { ' ' });
OpenSSLEngine.java
24
NativeCrypto
.ENGINE_load_dynamic();
39
engineCtx =
NativeCrypto
.ENGINE_by_id(engine);
44
NativeCrypto
.ENGINE_add(engineCtx);
53
if (
NativeCrypto
.ENGINE_init(engineCtx) == 0) {
54
NativeCrypto
.ENGINE_free(engineCtx);
64
final int keyRef =
NativeCrypto
.ENGINE_load_private_key(ctx, id);
69
final int keyType =
NativeCrypto
.EVP_PKEY_type(keyRef);
71
case
NativeCrypto
.EVP_PKEY_RSA:
73
case
NativeCrypto
.EVP_PKEY_DSA:
87
NativeCrypto
.ENGINE_finish(ctx)
[
all
...]
OpenSSLSignatureRawRSA.java
109
int maxSize =
NativeCrypto
.RSA_size(key.getPkeyContext());
127
int maxSize =
NativeCrypto
.RSA_size(key.getPkeyContext());
150
NativeCrypto
.RSA_private_encrypt(inputOffset, inputBuffer, outputBuffer,
151
key.getPkeyContext(),
NativeCrypto
.RSA_PKCS1_PADDING);
175
resultSize =
NativeCrypto
.RSA_public_decrypt(sigBytes.length, sigBytes,
176
outputBuffer, key.getPkeyContext(),
NativeCrypto
.RSA_PKCS1_PADDING);
OpenSSLSignature.java
95
ctx =
NativeCrypto
.EVP_SignInit(evpAlgorithm);
101
NativeCrypto
.EVP_SignUpdate(ctx, input, offset, len);
105
ctx =
NativeCrypto
.EVP_VerifyInit(evpAlgorithm);
111
NativeCrypto
.EVP_VerifyUpdate(ctx, input, offset, len);
214
byte[] buffer = new byte[
NativeCrypto
.EVP_PKEY_size(key.getPkeyContext())];
215
int bytesWritten =
NativeCrypto
.EVP_SignFinal(ctx, buffer, 0, key.getPkeyContext());
240
int result =
NativeCrypto
.EVP_VerifyFinal(ctx, sigBytes, 0, sigBytes.length,
256
NativeCrypto
.EVP_MD_CTX_destroy(ctx);
265
NativeCrypto
.EVP_MD_CTX_destroy(ctx);
OpenSSLRSAPrivateKey.java
65
return new OpenSSLKey(
NativeCrypto
.EVP_PKEY_new_RSA(
80
byte[][] params =
NativeCrypto
.get_RSA_private_params(key.getPkeyContext());
98
return new OpenSSLKey(
NativeCrypto
.EVP_PKEY_new_RSA(
116
readParams(
NativeCrypto
.get_RSA_private_params(key.getPkeyContext()));
158
return
NativeCrypto
.i2d_PKCS8_PRIV_KEY_INFO(key.getPkeyContext());
204
return
NativeCrypto
.EVP_PKEY_cmp(getPkeyContext(), other.getPkeyContext()) == 1;
OpenSSLSessionImpl.java
80
this(
NativeCrypto
.d2i_SSL_SESSION(derData),
112
id =
NativeCrypto
.SSL_SESSION_session_id(sslSessionNativePointer);
120
return
NativeCrypto
.i2d_SSL_SESSION(sslSessionNativePointer);
129
creationTime =
NativeCrypto
.SSL_SESSION_get_time(sslSessionNativePointer);
309
String name =
NativeCrypto
.SSL_SESSION_cipher(sslSessionNativePointer);
310
cipherSuite =
NativeCrypto
.OPENSSL_TO_STANDARD_CIPHER_SUITES.get(name);
324
protocol =
NativeCrypto
.SSL_SESSION_get_version(sslSessionNativePointer);
446
NativeCrypto
.SSL_SESSION_free(sslSessionNativePointer);
NativeCrypto.java
43
public final class
NativeCrypto
{
Completed in 155 milliseconds