ENCODER: Refactor the OSSL_ENCODER API to be more like OSSL_DECODER