EVP_CipherInit
if (!EVP_CipherInit(ctx->header_evp, NULL, NULL, seqbuf, 1) ||
if (!EVP_CipherInit(ctx->main_evp, NULL, NULL, seqbuf, 1) ||
if (!EVP_CipherInit(ctx->header_evp, NULL, NULL, seqbuf, 0))
if (!EVP_CipherInit(ctx->main_evp, EVP_chacha20(), key, NULL, 1))
if (!EVP_CipherInit(ctx->header_evp, EVP_chacha20(), key + 32, NULL, 1))
if (!EVP_CipherInit(ctx->main_evp, NULL, NULL, seqbuf, 1) ||
if (EVP_CipherInit(cc->evp, type, NULL, (u_char *)iv,
if (EVP_CipherInit(cc->evp, NULL, (u_char *)key, NULL, -1) == 0) {
return EVP_CipherInit(ctx, cipher, key, iv, 1);
return EVP_CipherInit(ctx, cipher, key, iv, 0);
__owur int EVP_CipherInit(EVP_CIPHER_CTX *ctx, const EVP_CIPHER *cipher,
if (!EVP_CipherInit(ctx->cipher_ctxs[i], ctx->cipher, key, iv[i], enc))