FreeRTOS-Plus/ThirdParty/WolfSSL-FIPS-Ready/wolfcrypt/src/asn.c
/* Get the human readable string for a signature type
 *
 * oid  Oid value for signature
 */
Get the human readable string for a signature type
oid  Oid value for signature
Get the human readable string for a signature type oid Oid value for signature
const char* GetSigName(int oid) {
    switch (oid) {
    #if !defined(NO_DSA) && !defined(NO_SHA)
        case CTC_SHAwDSA:
            return sigSha1wDsaName;
    #endif 
    #ifndef NO_RSA
        #ifdef WOLFSSL_MD2
        case CTC_MD2wRSA:
            return sigMd2wRsaName;
        #endif
        #ifndef NO_MD5
        case CTC_MD5wRSA:
            return sigMd5wRsaName;
        #endif
        #ifndef NO_SHA
        case CTC_SHAwRSA:
            return sigSha1wRsaName;
        #endif
        #ifdef WOLFSSL_SHA224
        case CTC_SHA224wRSA:
            return sigSha224wRsaName;
        #endif
        #ifndef NO_SHA256
        case CTC_SHA256wRSA:
            return sigSha256wRsaName;
        #endif
        #ifdef WOLFSSL_SHA384
        case CTC_SHA384wRSA:
            return sigSha384wRsaName;
        #endif
        #ifdef WOLFSSL_SHA512
        case CTC_SHA512wRSA:
            return sigSha512wRsaName;
        #endif
    #endif 
    #ifdef HAVE_ECC
        #ifndef NO_SHA
        case CTC_SHAwECDSA:
            return sigSha1wEcdsaName;
        #endif
        #ifdef WOLFSSL_SHA224
        case CTC_SHA224wECDSA:
            return sigSha224wEcdsaName;
        #endif
        #ifndef NO_SHA256
        case CTC_SHA256wECDSA:
            return sigSha256wEcdsaName;
        #endif
        #ifdef WOLFSSL_SHA384
        case CTC_SHA384wECDSA:
            return sigSha384wEcdsaName;
        #endif
        #ifdef WOLFSSL_SHA512
        case CTC_SHA512wECDSA:
            return sigSha512wEcdsaName;
        #endif
    #endif 
        default:
            return sigUnknownName;
    }
}
const char * GetSigName ( int oid ) { switch ( oid ) { #if ! defined ( NO_DSA ) && ! defined ( NO_SHA ) case CTC_SHAwDSA : return sigSha1wDsaName ; #endif #ifndef NO_RSA #ifdef WOLFSSL_MD2 case CTC_MD2wRSA : return sigMd2wRsaName ; #endif #ifndef NO_MD5 case CTC_MD5wRSA : return sigMd5wRsaName ; #endif #ifndef NO_SHA case CTC_SHAwRSA : return sigSha1wRsaName ; #endif #ifdef WOLFSSL_SHA224 case CTC_SHA224wRSA : return sigSha224wRsaName ; #endif #ifndef NO_SHA256 case CTC_SHA256wRSA : return sigSha256wRsaName ; #endif #ifdef WOLFSSL_SHA384 case CTC_SHA384wRSA : return sigSha384wRsaName ; #endif #ifdef WOLFSSL_SHA512 case CTC_SHA512wRSA : return sigSha512wRsaName ; #endif #endif #ifdef HAVE_ECC #ifndef NO_SHA case CTC_SHAwECDSA : return sigSha1wEcdsaName ; #endif #ifdef WOLFSSL_SHA224 case CTC_SHA224wECDSA : return sigSha224wEcdsaName ; #endif #ifndef NO_SHA256 case CTC_SHA256wECDSA : return sigSha256wEcdsaName ; #endif #ifdef WOLFSSL_SHA384 case CTC_SHA384wECDSA : return sigSha384wEcdsaName ; #endif #ifdef WOLFSSL_SHA512 case CTC_SHA512wECDSA : return sigSha512wEcdsaName ; #endif #endif default : return sigUnknownName ; } }
Get the human readable string for a signature type
 oid  Oid value for signature
Get the human readable string for a signature type oid Oid value for signature
/* NO_DSA && NO_SHA */ /* NO_RSA */ /* HAVE_ECC */