Home
last modified time | relevance | path

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

/external/conscrypt/common/src/main/java/org/conscrypt/
DOpenSSLCipher.java990 long evpAead; field in OpenSSLCipher.EVP_AEAD
1064 evpAead = getEVP_AEAD(encodedKey.length); in engineInitInternal()
1066 final int expectedIvLength = NativeCrypto.EVP_AEAD_nonce_length(evpAead); in engineInitInternal()
1140 bytesWritten = NativeCrypto.EVP_AEAD_CTX_seal(evpAead, encodedKey, in doFinalInternal()
1143 bytesWritten = NativeCrypto.EVP_AEAD_CTX_open(evpAead, encodedKey, in doFinalInternal()
1164 + (isEncrypting() ? NativeCrypto.EVP_AEAD_max_overhead(evpAead) : 0); in getOutputSizeForFinal()
DNativeCrypto.java288 static native int EVP_AEAD_max_overhead(long evpAead); in EVP_AEAD_max_overhead() argument
290 static native int EVP_AEAD_nonce_length(long evpAead); in EVP_AEAD_nonce_length() argument
292 static native int EVP_AEAD_CTX_seal(long evpAead, byte[] key, int tagLengthInBytes, byte[] out, in EVP_AEAD_CTX_seal() argument
296 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/
DNativeCrypto.cpp3180 const EVP_AEAD* evpAead = reinterpret_cast<const EVP_AEAD*>(evpAeadRef); in NativeCrypto_EVP_AEAD_max_overhead() local
3181 JNI_TRACE("EVP_AEAD_max_overhead(%p)", evpAead); in NativeCrypto_EVP_AEAD_max_overhead()
3182 if (evpAead == nullptr) { in NativeCrypto_EVP_AEAD_max_overhead()
3186 jint maxOverhead = static_cast<jint>(EVP_AEAD_max_overhead(evpAead)); in NativeCrypto_EVP_AEAD_max_overhead()
3187 JNI_TRACE("EVP_AEAD_max_overhead(%p) => %d", evpAead, maxOverhead); in NativeCrypto_EVP_AEAD_max_overhead()
3192 const EVP_AEAD* evpAead = reinterpret_cast<const EVP_AEAD*>(evpAeadRef); in NativeCrypto_EVP_AEAD_nonce_length() local
3193 JNI_TRACE("EVP_AEAD_nonce_length(%p)", evpAead); in NativeCrypto_EVP_AEAD_nonce_length()
3194 if (evpAead == nullptr) { in NativeCrypto_EVP_AEAD_nonce_length()
3198 jint nonceLength = static_cast<jint>(EVP_AEAD_nonce_length(evpAead)); in NativeCrypto_EVP_AEAD_nonce_length()
3199 JNI_TRACE("EVP_AEAD_nonce_length(%p) => %d", evpAead, nonceLength); in NativeCrypto_EVP_AEAD_nonce_length()
[all …]