Lines Matching defs:inLen

269 int32_t SoftBusEncryptData(AesGcmCipherKey *cipherKey, const unsigned char *input, uint32_t inLen,
272 if (cipherKey == NULL || input == NULL || inLen == 0 || encryptData == NULL || encryptLen == NULL) {
280 uint32_t outLen = inLen + OVERHEAD_LEN;
281 int32_t result = MbedAesGcmEncrypt(cipherKey, input, inLen, encryptData, outLen);
289 int32_t SoftBusEncryptDataWithSeq(AesGcmCipherKey *cipherKey, const unsigned char *input, uint32_t inLen,
292 if (cipherKey == NULL || input == NULL || inLen == 0 || encryptData == NULL || encryptLen == NULL) {
302 uint32_t outLen = inLen + OVERHEAD_LEN;
303 int32_t result = MbedAesGcmEncrypt(cipherKey, input, inLen, encryptData, outLen);
311 int32_t SoftBusDecryptData(AesGcmCipherKey *cipherKey, const unsigned char *input, uint32_t inLen,
314 if (cipherKey == NULL || input == NULL || inLen < GCM_IV_LEN || decryptData == NULL || decryptLen == NULL) {
322 uint32_t outLen = inLen - OVERHEAD_LEN;
323 int32_t result = MbedAesGcmDecrypt(cipherKey, input, inLen, decryptData, outLen);
331 int32_t SoftBusDecryptDataWithSeq(AesGcmCipherKey *cipherKey, const unsigned char *input, uint32_t inLen,
335 return SoftBusDecryptData(cipherKey, input, inLen, decryptData, decryptLen);
356 int32_t SoftBusEncryptDataByCtr(AesCtrCipherKey *key, const unsigned char *input, uint32_t inLen,
359 if (key == NULL || input == NULL || inLen == 0 || encryptData == NULL || encryptLen == NULL) {
384 if (mbedtls_cipher_update(&ctx, input, inLen, encryptData, &len) != 0) {
396 int32_t SoftBusDecryptDataByCtr(AesCtrCipherKey *key, const unsigned char *input, uint32_t inLen,
399 return SoftBusEncryptDataByCtr(key, input, inLen, decryptData, decryptLen);