[PATCH v6 17/28] lib/crypto: Adapt public_key header with MbedTLS