Convert alg string to type.
Returns an alg type based on the string representation.
@param alg A valid string algorithm type (e.g. "RS256"). @returns Returns an alg type matching the string or JWT_ALG_INVAL if no matches were found.
Note, this only works for algorithms that LibJWT supports or knows about.
See Implementation
Convert alg string to type.
Returns an alg type based on the string representation.
@param alg A valid string algorithm type (e.g. "RS256"). @returns Returns an alg type matching the string or JWT_ALG_INVAL if no matches were found.
Note, this only works for algorithms that LibJWT supports or knows about.