uencrypt: add support for mbedtls