diff --git a/README b/README index e66f71453..8f4e61ee8 100644 --- a/README +++ b/README @@ -683,8 +683,8 @@ Release Candidate 2 for CyaSSL 1.0.0 adds bug fixes and adds two new stream ciphers along with their respective cipher suites. CyaSSL adds support for HC-128 and RABBIT stream ciphers. The new suites are: -TLS_RSA_WITH_HC_128_CBC_SHA -TLS_RSA_WITH_RABBIT_CBC_SHA +TLS_RSA_WITH_HC_128_SHA +TLS_RSA_WITH_RABBIT_SHA And the corresponding cipher names are diff --git a/cyassl/internal.h b/cyassl/internal.h index 6a87ec8bb..e1b386e5c 100644 --- a/cyassl/internal.h +++ b/cyassl/internal.h @@ -266,7 +266,7 @@ void c32to24(word32 in, word24 out); #if !defined(NO_RABBIT) && !defined(NO_TLS) && !defined(NO_RSA) #if !defined(NO_SHA) - #define BUILD_TLS_RSA_WITH_RABBIT_CBC_SHA + #define BUILD_TLS_RSA_WITH_RABBIT_SHA #endif #endif @@ -395,7 +395,7 @@ void c32to24(word32 in, word24 out); #define BUILD_HC128 #endif -#if defined(BUILD_TLS_RSA_WITH_RABBIT_CBC_SHA) +#if defined(BUILD_TLS_RSA_WITH_RABBIT_SHA) #define BUILD_RABBIT #endif @@ -472,7 +472,7 @@ enum { /* CyaSSL extension - eSTREAM */ TLS_RSA_WITH_HC_128_CBC_MD5 = 0xFB, TLS_RSA_WITH_HC_128_CBC_SHA = 0xFC, - TLS_RSA_WITH_RABBIT_CBC_SHA = 0xFD, + TLS_RSA_WITH_RABBIT_SHA = 0xFD, /* CyaSSL extension - Blake2b 256 */ TLS_RSA_WITH_AES_128_CBC_B2B256 = 0xF8, diff --git a/src/internal.c b/src/internal.c index fa53b3369..1e34b052c 100644 --- a/src/internal.c +++ b/src/internal.c @@ -1126,10 +1126,10 @@ void InitSuites(Suites* suites, ProtocolVersion pv, byte haveRSA, byte havePSK, } #endif -#ifdef BUILD_TLS_RSA_WITH_RABBIT_CBC_SHA +#ifdef BUILD_TLS_RSA_WITH_RABBIT_SHA if (tls && haveRSA) { suites->suites[idx++] = 0; - suites->suites[idx++] = TLS_RSA_WITH_RABBIT_CBC_SHA; + suites->suites[idx++] = TLS_RSA_WITH_RABBIT_SHA; } #endif @@ -6175,7 +6175,7 @@ const char* const cipher_names[] = "AES256-B2B256", #endif -#ifdef BUILD_TLS_RSA_WITH_RABBIT_CBC_SHA +#ifdef BUILD_TLS_RSA_WITH_RABBIT_SHA "RABBIT-SHA", #endif @@ -6495,8 +6495,8 @@ int cipher_name_idx[] = TLS_RSA_WITH_AES_256_CBC_B2B256, #endif -#ifdef BUILD_TLS_RSA_WITH_RABBIT_CBC_SHA - TLS_RSA_WITH_RABBIT_CBC_SHA, +#ifdef BUILD_TLS_RSA_WITH_RABBIT_SHA + TLS_RSA_WITH_RABBIT_SHA, #endif #ifdef BUILD_TLS_NTRU_RSA_WITH_RC4_128_SHA @@ -9361,7 +9361,7 @@ static void PickHashSigAlgo(CYASSL* ssl, return 1; break; - case TLS_RSA_WITH_RABBIT_CBC_SHA : + case TLS_RSA_WITH_RABBIT_SHA : if (requirement == REQUIRES_RSA) return 1; break; diff --git a/src/keys.c b/src/keys.c index 8ce2de04b..91c0bdf36 100644 --- a/src/keys.c +++ b/src/keys.c @@ -1173,8 +1173,8 @@ int SetCipherSpecs(CYASSL* ssl) break; #endif -#ifdef BUILD_TLS_RSA_WITH_RABBIT_CBC_SHA - case TLS_RSA_WITH_RABBIT_CBC_SHA : +#ifdef BUILD_TLS_RSA_WITH_RABBIT_SHA + case TLS_RSA_WITH_RABBIT_SHA : ssl->specs.bulk_cipher_algorithm = cyassl_rabbit; ssl->specs.cipher_type = stream; ssl->specs.mac_algorithm = sha_mac; diff --git a/src/ssl.c b/src/ssl.c index 164060186..942db276d 100644 --- a/src/ssl.c +++ b/src/ssl.c @@ -7594,8 +7594,8 @@ CYASSL_X509* CyaSSL_X509_load_certificate_file(const char* fname, int format) #endif /* NO_HC128 */ #ifndef NO_SHA #ifndef NO_RABBIT - case TLS_RSA_WITH_RABBIT_CBC_SHA : - return "TLS_RSA_WITH_RABBIT_CBC_SHA"; + case TLS_RSA_WITH_RABBIT_SHA : + return "TLS_RSA_WITH_RABBIT_SHA"; #endif #ifdef HAVE_NTRU #ifndef NO_RC4