[PATCH v3 20/25] lib/crypto: Adapt mscode_parser to MbedTLS