This commit is contained in:
kaleb-himes 2014-12-31 17:03:33 -07:00
commit 98fa85ed83
5 changed files with 23 additions and 26 deletions

View File

@ -102,7 +102,7 @@ void wc_Arc4Process(Arc4* arc4, byte* out, const byte* in, word32 length)
#ifdef HAVE_CAVIUM #ifdef HAVE_CAVIUM
#include <cyassl/ctaocrypt/logging.h> #include <wolfssl/wolfcrypt/logging.h>
#include "cavium_common.h" #include "cavium_common.h"
/* Initiliaze Arc4 for use with Nitrox device */ /* Initiliaze Arc4 for use with Nitrox device */

View File

@ -36,7 +36,7 @@
#include <config.h> #include <config.h>
#endif #endif
#include <cyassl/ctaocrypt/settings.h> #include <wolfssl/wolfcrypt/settings.h>
#ifdef HAVE_BLAKE2 #ifdef HAVE_BLAKE2

View File

@ -56,22 +56,19 @@
#include <config.h> #include <config.h>
#endif #endif
#include <cyassl/ctaocrypt/settings.h> #include <wolfssl/wolfcrypt/settings.h>
#ifdef HAVE_CAMELLIA #ifdef HAVE_CAMELLIA
#include <cyassl/ctaocrypt/camellia.h> #include <wolfssl/wolfcrypt/camellia.h>
#include <cyassl/ctaocrypt/error-crypt.h> #include <wolfssl/wolfcrypt/error-crypt.h>
#include <cyassl/ctaocrypt/logging.h> #include <wolfssl/wolfcrypt/logging.h>
#ifdef NO_INLINE #ifdef NO_INLINE
#include <cyassl/ctaocrypt/misc.h> #include <wolfssl/wolfcrypt/misc.h>
#else #else
#include <ctaocrypt/src/misc.c> #include <wolfcrypt/src/misc.c>
#endif #endif
/* u32 must be 32bit word */ /* u32 must be 32bit word */
typedef unsigned int u32; typedef unsigned int u32;
typedef unsigned char u8; typedef unsigned char u8;

View File

@ -23,13 +23,13 @@
#include <config.h> #include <config.h>
#endif #endif
#include <cyassl/ctaocrypt/settings.h> #include <wolfssl/wolfcrypt/settings.h>
#ifndef NO_CODING #ifndef NO_CODING
#include <cyassl/ctaocrypt/coding.h> #include <wolfssl/wolfcrypt/coding.h>
#include <cyassl/ctaocrypt/error-crypt.h> #include <wolfssl/wolfcrypt/error-crypt.h>
#include <cyassl/ctaocrypt/logging.h> #include <wolfssl/wolfcrypt/logging.h>
enum { enum {
@ -81,12 +81,12 @@ int Base64_Decode(const byte* in, word32 inLen, byte* out, word32* outLen)
pad4 = 1; pad4 = 1;
if (e1 < 0x2B || e2 < 0x2B || e3 < 0x2B || e4 < 0x2B) { if (e1 < 0x2B || e2 < 0x2B || e3 < 0x2B || e4 < 0x2B) {
CYASSL_MSG("Bad Base64 Decode data, too small"); WOLFSSL_MSG("Bad Base64 Decode data, too small");
return ASN_INPUT_E; return ASN_INPUT_E;
} }
if (e1 > maxIdx || e2 > maxIdx || e3 > maxIdx || e4 > maxIdx) { if (e1 > maxIdx || e2 > maxIdx || e3 > maxIdx || e4 > maxIdx) {
CYASSL_MSG("Bad Base64 Decode data, too big"); WOLFSSL_MSG("Bad Base64 Decode data, too big");
return ASN_INPUT_E; return ASN_INPUT_E;
} }
@ -122,7 +122,7 @@ int Base64_Decode(const byte* in, word32 inLen, byte* out, word32* outLen)
} }
} }
if (endLine != '\n') { if (endLine != '\n') {
CYASSL_MSG("Bad end of line in Base64 Decode"); WOLFSSL_MSG("Bad end of line in Base64 Decode");
return ASN_INPUT_E; return ASN_INPUT_E;
} }
} }
@ -133,7 +133,7 @@ int Base64_Decode(const byte* in, word32 inLen, byte* out, word32* outLen)
} }
#if defined(OPENSSL_EXTRA) || defined (SESSION_CERTS) || defined(CYASSL_KEY_GEN) || defined(CYASSL_CERT_GEN) || defined(HAVE_WEBSERVER) #if defined(OPENSSL_EXTRA) || defined (SESSION_CERTS) || defined(WOLFSSL_KEY_GEN) || defined(CYASSL_CERT_GEN) || defined(HAVE_WEBSERVER)
static static
const byte base64Encode[] = { 'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', const byte base64Encode[] = { 'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J',
@ -192,7 +192,7 @@ static int CEscape(int escaped, byte e, byte* out, word32* i, word32 max,
/* check size */ /* check size */
if ( (idx+needed) > max) { if ( (idx+needed) > max) {
CYASSL_MSG("Escape buffer max too small"); WOLFSSL_MSG("Escape buffer max too small");
return BUFFER_E; return BUFFER_E;
} }
@ -324,7 +324,7 @@ int Base64_EncodeEsc(const byte* in, word32 inLen, byte* out, word32* outLen)
} }
#endif /* defined(OPENSSL_EXTRA) || defined (SESSION_CERTS) || defined(CYASSL_KEY_GEN) || defined(CYASSL_CERT_GEN) || defined(HAVE_WEBSERVER) */ #endif /* defined(OPENSSL_EXTRA) || defined (SESSION_CERTS) || defined(WOLFSSL_KEY_GEN) || defined(WOLFSSL_CERT_GEN) || defined(HAVE_WEBSERVER) */
#if defined(OPENSSL_EXTRA) || defined(HAVE_WEBSERVER) || defined(HAVE_FIPS) #if defined(OPENSSL_EXTRA) || defined(HAVE_WEBSERVER) || defined(HAVE_FIPS)

View File

@ -23,14 +23,14 @@
#include <config.h> #include <config.h>
#endif #endif
#include <cyassl/ctaocrypt/settings.h> #include <wolfssl/wolfcrypt/settings.h>
#ifndef NO_DSA #ifndef NO_DSA
#include <cyassl/ctaocrypt/dsa.h> #include <wolfssl/wolfcrypt/dsa.h>
#include <cyassl/ctaocrypt/sha.h> #include <wolfssl/wolfcrypt/sha.h>
#include <cyassl/ctaocrypt/random.h> #include <wolfssl/wolfcrypt/random.h>
#include <cyassl/ctaocrypt/error-crypt.h> #include <wolfssl/wolfcrypt/error-crypt.h>
enum { enum {