[PATCH v4 24/29] lib/crypto: Adapt mscode_parser to MbedTLS