Lines Matching refs:ctx
46 EVP_ENCODE_CTX *ctx;
61 ctx = EVP_ENCODE_CTX_new();
62 if (ctx == NULL)
82 EVP_DecodeInit(ctx);
83 evp_encode_ctx_set_flags(ctx, EVP_ENCODE_CTX_USE_SRP_ALPHABET);
87 && EVP_DecodeUpdate(ctx, a, &outl, pad, padsize) < 0) {
91 if (EVP_DecodeUpdate(ctx, a, &outl2, (const unsigned char *)src, size) < 0) {
96 EVP_DecodeFinal(ctx, a + outl, &outl2);
124 EVP_ENCODE_CTX_free(ctx);
135 EVP_ENCODE_CTX *ctx = EVP_ENCODE_CTX_new();
140 if (ctx == NULL)
143 EVP_EncodeInit(ctx);
144 evp_encode_ctx_set_flags(ctx, EVP_ENCODE_CTX_NO_NEWLINES
154 && !EVP_EncodeUpdate(ctx, (unsigned char *)dst, &outl, pad,
156 EVP_ENCODE_CTX_free(ctx);
160 if (!EVP_EncodeUpdate(ctx, (unsigned char *)dst + outl, &outl2, src,
162 EVP_ENCODE_CTX_free(ctx);
166 EVP_EncodeFinal(ctx, (unsigned char *)dst + outl, &outl2);
175 EVP_ENCODE_CTX_free(ctx);