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