Home
last modified time | relevance | path

Searched refs:evpAead (Results 1 – 5 of 5) sorted by relevance

/external/conscrypt/common/src/main/java/org/conscrypt/
DOpenSSLCipher.java1035 long evpAead; field in OpenSSLCipher.EVP_AEAD
1130 evpAead = getEVP_AEAD(encodedKey.length); in engineInitInternal()
1132 final int expectedIvLength = NativeCrypto.EVP_AEAD_nonce_length(evpAead); in engineInitInternal()
1237 bytesWritten = NativeCrypto.EVP_AEAD_CTX_seal(evpAead, encodedKey, in doFinalInternal()
1240 bytesWritten = NativeCrypto.EVP_AEAD_CTX_open(evpAead, encodedKey, in doFinalInternal()
1272 + (isEncrypting() ? NativeCrypto.EVP_AEAD_max_overhead(evpAead) : 0); in getOutputSizeForFinal()
DNativeCrypto.java324 static native int EVP_AEAD_max_overhead(long evpAead); in EVP_AEAD_max_overhead() argument
326 static native int EVP_AEAD_nonce_length(long evpAead); in EVP_AEAD_nonce_length() argument
328 static native int EVP_AEAD_CTX_seal(long evpAead, byte[] key, int tagLengthInBytes, byte[] out, in EVP_AEAD_CTX_seal() argument
332 static native int EVP_AEAD_CTX_open(long evpAead, byte[] key, int tagLengthInBytes, byte[] out, in EVP_AEAD_CTX_open() argument
/external/conscrypt/repackaged/common/src/main/java/com/android/org/conscrypt/
DOpenSSLCipher.java1176 long evpAead; field in OpenSSLCipher.EVP_AEAD
1271 evpAead = getEVP_AEAD(encodedKey.length); in engineInitInternal()
1273 final int expectedIvLength = NativeCrypto.EVP_AEAD_nonce_length(evpAead); in engineInitInternal()
1378 bytesWritten = NativeCrypto.EVP_AEAD_CTX_seal(evpAead, encodedKey, in doFinalInternal()
1381 bytesWritten = NativeCrypto.EVP_AEAD_CTX_open(evpAead, encodedKey, in doFinalInternal()
1413 + (isEncrypting() ? NativeCrypto.EVP_AEAD_max_overhead(evpAead) : 0); in getOutputSizeForFinal()
DNativeCrypto.java339 static native int EVP_AEAD_max_overhead(long evpAead); in EVP_AEAD_max_overhead() argument
341 static native int EVP_AEAD_nonce_length(long evpAead); in EVP_AEAD_nonce_length() argument
343 static native int EVP_AEAD_CTX_seal(long evpAead, byte[] key, int tagLengthInBytes, byte[] out, in EVP_AEAD_CTX_seal() argument
347 static native int EVP_AEAD_CTX_open(long evpAead, byte[] key, int tagLengthInBytes, byte[] out, in EVP_AEAD_CTX_open() argument
/external/conscrypt/common/src/jni/main/cpp/conscrypt/
Dnative_crypto.cc3467 const EVP_AEAD* evpAead = reinterpret_cast<const EVP_AEAD*>(evpAeadRef); in NativeCrypto_EVP_AEAD_max_overhead() local
3468 JNI_TRACE("EVP_AEAD_max_overhead(%p)", evpAead); in NativeCrypto_EVP_AEAD_max_overhead()
3469 if (evpAead == nullptr) { in NativeCrypto_EVP_AEAD_max_overhead()
3473 jint maxOverhead = static_cast<jint>(EVP_AEAD_max_overhead(evpAead)); in NativeCrypto_EVP_AEAD_max_overhead()
3474 JNI_TRACE("EVP_AEAD_max_overhead(%p) => %d", evpAead, maxOverhead); in NativeCrypto_EVP_AEAD_max_overhead()
3480 const EVP_AEAD* evpAead = reinterpret_cast<const EVP_AEAD*>(evpAeadRef); in NativeCrypto_EVP_AEAD_nonce_length() local
3481 JNI_TRACE("EVP_AEAD_nonce_length(%p)", evpAead); in NativeCrypto_EVP_AEAD_nonce_length()
3482 if (evpAead == nullptr) { in NativeCrypto_EVP_AEAD_nonce_length()
3486 jint nonceLength = static_cast<jint>(EVP_AEAD_nonce_length(evpAead)); in NativeCrypto_EVP_AEAD_nonce_length()
3487 JNI_TRACE("EVP_AEAD_nonce_length(%p) => %d", evpAead, nonceLength); in NativeCrypto_EVP_AEAD_nonce_length()
[all …]