Searched refs:cipherTextSize (Results 1 – 5 of 5) sorted by relevance
/ohos5.0/foundation/communication/dsoftbus/adapter/common/mbedtls/ |
H A D | softbus_adapter_crypto.c | 121 uint32_t cipherTextSize, unsigned char *plain, uint32_t plainLen) in MbedAesGcmDecrypt() argument 123 …if ((cipherKey == NULL) || (cipherText == NULL) || (cipherTextSize <= OVERHEAD_LEN) || plain == NU… in MbedAesGcmDecrypt() 124 (plainLen < cipherTextSize - OVERHEAD_LEN)) { in MbedAesGcmDecrypt() 139 int32_t actualPlainLen = (int32_t)(cipherTextSize - OVERHEAD_LEN); in MbedAesGcmDecrypt() 140 …ret = mbedtls_gcm_auth_decrypt(&aesContext, cipherTextSize - OVERHEAD_LEN, cipherKey->iv, GCM_IV_L… in MbedAesGcmDecrypt()
|
/ohos5.0/foundation/communication/dsoftbus/adapter/common/openssl/ |
H A D | softbus_adapter_crypto.c | 171 uint32_t cipherTextSize, unsigned char *plain, uint32_t plainLen) in SslAesGcmDecrypt() argument 173 …if ((cipherkey == NULL) || (cipherText == NULL) || (cipherTextSize <= OVERHEAD_LEN) || plain == NU… in SslAesGcmDecrypt() 174 (plainLen < cipherTextSize - OVERHEAD_LEN)) { in SslAesGcmDecrypt() 191 …ER_CTX_ctrl(ctx, EVP_CTRL_GCM_SET_TAG, TAG_LEN, (void *)(cipherText + (cipherTextSize - TAG_LEN))); in SslAesGcmDecrypt() 196 …yptUpdate(ctx, plain, (int32_t *)&plainLen, cipherText + GCM_IV_LEN, cipherTextSize - OVERHEAD_LEN… in SslAesGcmDecrypt()
|
/ohos5.0/base/security/crypto_framework/plugin/openssl_plugin/common/src/ |
H A D | openssl_adapter.c | 1178 …slSm2CipherTextSize(const EC_KEY *key, const EVP_MD *digest, size_t msgLen, size_t *cipherTextSize) in OpensslSm2CipherTextSize() argument 1180 return ossl_sm2_ciphertext_size(key, digest, msgLen, cipherTextSize); in OpensslSm2CipherTextSize() 1183 int OpensslSm2PlainTextSize(const unsigned char *cipherText, size_t cipherTextSize, size_t *plainTe… in OpensslSm2PlainTextSize() argument 1185 return ossl_sm2_plaintext_size(cipherText, cipherTextSize, plainTextSize); in OpensslSm2PlainTextSize()
|
/ohos5.0/drivers/peripheral/pin_auth/hdi_service/database/src/ |
H A D | pin_db.c | 929 uint32_t cipherTextSize = pinData->contentSize - AES_GCM_256_IV_SIZE - AES_GCM_256_TAG_SIZE; in GenerateDecodeCredential() local 931 pinData->buf + AES_GCM_256_IV_SIZE + AES_GCM_256_TAG_SIZE, cipherTextSize, cipherTextSize); in GenerateDecodeCredential()
|
/ohos5.0/base/security/crypto_framework/plugin/openssl_plugin/common/inc/ |
H A D | openssl_adapter.h | 299 …lSm2CipherTextSize(const EC_KEY *key, const EVP_MD *digest, size_t msgLen, size_t *cipherTextSize); 300 int OpensslSm2PlainTextSize(const unsigned char *cipherText, size_t cipherTextSize, size_t *plainTe…
|