src/utils/crypto_utils/src/crypto_lib.c
Algorithm_Id AlgorithmIdFromString(const char* alg)
{
    Algorithm_Id algorithmId = Alg_NotSupported;
    if (strcasecmp(alg, "rs256") == 0)
    {
        algorithmId = Alg_RSA256;
    }
    return algorithmId;
}
/**
 * @brief Helper function that returns the Algoprithm_Id corresponding to the string @p alg
 * @details The comparison does not care about case
 * @param alg the string to be compared to find the algorithm.
 * @returns Alg_NotSupported if there is no algorithm related to the string @p alg, otherwise the Algorithm_Id
 */
@brief Helper function that returns the Algoprithm_Id corresponding to the string @p alg
@details The comparison does not care about case
@param alg the string to be compared to find the algorithm.
@returns Alg_NotSupported if there is no algorithm related to the string @p alg, otherwise the Algorithm_Id
@brief Helper function that returns the Algoprithm_Id corresponding to the string @p alg @details The comparison does not care about case @param alg the string to be compared to find the algorithm . @returns Alg_NotSupported if there is no algorithm related to the string @p alg otherwise the Algorithm_Id
Algorithm_Id AlgorithmIdFromString(const char* alg)
{
    Algorithm_Id algorithmId = Alg_NotSupported;
    if (strcasecmp(alg, "rs256") == 0)
    {
        algorithmId = Alg_RSA256;
    }
    return algorithmId;
}
Algorithm_Id AlgorithmIdFromString ( const char * alg ) { Algorithm_Id algorithmId = Alg_NotSupported ; if ( strcasecmp ( alg , " " ) == 0 ) { algorithmId = Alg_RSA256 ; } return algorithmId ; }
@brief Helper function that returns the Algoprithm_Id corresponding to the string @p alg
 @details The comparison does not care about case
 @param alg the string to be compared to find the algorithm.
@brief Helper function that returns the Algoprithm_Id corresponding to the string @p alg @details The comparison does not care about case @param alg the string to be compared to find the algorithm .