Lines Matching refs:ctx
20 int EVP_SealInit(EVP_CIPHER_CTX *ctx, const EVP_CIPHER *type,
33 EVP_CIPHER_CTX_reset(ctx);
34 if (!EVP_EncryptInit_ex(ctx, type, NULL, NULL, NULL))
37 if ((cipher = EVP_CIPHER_CTX_get0_cipher(ctx)) != NULL
43 if (EVP_CIPHER_CTX_rand_key(ctx, key) <= 0)
46 len = EVP_CIPHER_CTX_get_iv_length(ctx);
50 len = EVP_CIPHER_CTX_get_key_length(ctx);
54 if (!EVP_EncryptInit_ex(ctx, NULL, NULL, key, iv))
80 int EVP_SealFinal(EVP_CIPHER_CTX *ctx, unsigned char *out, int *outl)
83 i = EVP_EncryptFinal_ex(ctx, out, outl);
85 i = EVP_EncryptInit_ex(ctx, NULL, NULL, NULL, NULL);