Searched refs:length_needed (Results 1 – 2 of 2) sorted by relevance
416 size_t saved_length, saved_offset, length_needed; in aes_encrypt() local438 length_needed = plaintext->cd_length + aes_ctx->ac_mac_len; in aes_encrypt()441 length_needed = plaintext->cd_length + aes_ctx->ac_tag_len; in aes_encrypt()444 length_needed = AES_BLOCK_LEN; in aes_encrypt()450 length_needed = aes_ctx->ac_tag_len; in aes_encrypt()453 length_needed = plaintext->cd_length; in aes_encrypt()456 if (ciphertext->cd_length < length_needed) { in aes_encrypt()457 ciphertext->cd_length = length_needed; in aes_encrypt()542 size_t saved_length, length_needed; in aes_decrypt() local568 length_needed = aes_ctx->ac_processed_data_len; in aes_decrypt()[all …]
330 size_t length_needed; in soft_aes_encrypt() local377 length_needed = ulDataLen + aes_ctx->ac_mac_len; in soft_aes_encrypt()380 length_needed = ulDataLen + aes_ctx->ac_tag_len; in soft_aes_encrypt()384 length_needed = AES_BLOCK_LEN; in soft_aes_encrypt()388 length_needed = ulDataLen + AES_BLOCK_LEN - remainder; in soft_aes_encrypt()391 length_needed = ulDataLen; in soft_aes_encrypt()401 *pulEncryptedDataLen = length_needed; in soft_aes_encrypt()405 if (*pulEncryptedDataLen < length_needed) { in soft_aes_encrypt()406 *pulEncryptedDataLen = length_needed; in soft_aes_encrypt()640 size_t length_needed; in soft_aes_decrypt() local[all …]