Merge pull request #7892 from douzzer/20240822-fixes

20240822-fixes
This commit is contained in:
Juliusz Sosinowicz
2024-08-23 16:47:23 +02:00
committed by GitHub
2 changed files with 4 additions and 2 deletions

View File

@ -70719,6 +70719,9 @@ static int test_wolfssl_EVP_chacha20_poly1305(void)
EVP_CIPHER_CTX* ctx = NULL;
int outSz;
XMEMSET(key, 0, sizeof(key));
XMEMSET(iv, 0, sizeof(iv));
/* Encrypt. */
ExpectNotNull((ctx = EVP_CIPHER_CTX_new()));
ExpectIntEQ(EVP_EncryptInit_ex(ctx, EVP_chacha20_poly1305(), NULL, NULL,

View File

@ -165,8 +165,7 @@ struct WOLFSSL_ASN1_ITEM {
typedef struct WOLFSSL_ASN1_TEMPLATE WOLFSSL_ASN1_TEMPLATE;
typedef struct WOLFSSL_ASN1_ITEM WOLFSSL_ASN1_ITEM;
static WC_MAYBE_UNUSED const byte ASN1_BIT_STRING_FIRST_BYTE = ASN_BIT_STRING;
#define ASN1_BIT_STRING_FIRST_BYTE ASN_BIT_STRING
#define ASN1_TFLG_EXPLICIT (0x1 << 0)
#define ASN1_TFLG_SEQUENCE_OF (0x1 << 1)
#define ASN1_TFLG_IMPTAG (0x1 << 2)