Lines Matching refs:inLen
397 int32_t SoftBusEncryptData(AesGcmCipherKey *cipherKey, const unsigned char *input, uint32_t inLen,
400 if (cipherKey == NULL || input == NULL || inLen == 0 || encryptData == NULL || encryptLen == NULL) {
408 uint32_t outLen = inLen + OVERHEAD_LEN;
409 int32_t result = SslAesGcmEncrypt(cipherKey, input, inLen, encryptData, outLen);
417 int32_t SoftBusEncryptDataWithSeq(AesGcmCipherKey *cipherKey, const unsigned char *input, uint32_t inLen,
420 if (cipherKey == NULL || input == NULL || inLen == 0 || encryptData == NULL || encryptLen == NULL) {
430 uint32_t outLen = inLen + OVERHEAD_LEN;
431 int32_t result = SslAesGcmEncrypt(cipherKey, input, inLen, encryptData, outLen);
439 int32_t SoftBusDecryptData(AesGcmCipherKey *cipherKey, const unsigned char *input, uint32_t inLen,
442 if (cipherKey == NULL || input == NULL || inLen < GCM_IV_LEN || decryptData == NULL || decryptLen == NULL) {
450 uint32_t outLen = inLen - OVERHEAD_LEN;
451 int32_t result = SslAesGcmDecrypt(cipherKey, input, inLen, decryptData, outLen);
459 int32_t SoftBusDecryptDataWithSeq(AesGcmCipherKey *cipherKey, const unsigned char *input, uint32_t inLen,
463 return SoftBusDecryptData(cipherKey, input, inLen, decryptData, decryptLen);
485 AesCtrCipherKey *key, const unsigned char *input, uint32_t inLen, unsigned char *encryptData, uint32_t *encryptLen)
487 if (key == NULL || input == NULL || inLen == 0 || encryptData == NULL || encryptLen == NULL) {
503 if (EVP_EncryptUpdate(ctx, encryptData, &len, input, inLen) != 1) {
516 AesCtrCipherKey *key, const unsigned char *input, uint32_t inLen, unsigned char *decryptData, uint32_t *decryptLen)
518 if (key == NULL || input == NULL || inLen == 0 || decryptData == NULL || decryptLen == NULL) {
534 if (EVP_DecryptUpdate(ctx, decryptData, &len, input, inLen) != 1) {