app: add library context and propq arguments to opt_md() and opt_cipher()