[PATCH v6 23/28] lib/crypto: Adapt mscode_parser to MbedTLS