forked from wolfSSL/wolfssl
Jenkins fixes.
This commit is contained in:
@ -25,6 +25,8 @@
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include <wolfssl/wolfcrypt/settings.h>
|
#include <wolfssl/wolfcrypt/settings.h>
|
||||||
|
#include <wolfssl/wolfcrypt/error-crypt.h>
|
||||||
|
#include <wolfssl/wolfcrypt/logging.h>
|
||||||
|
|
||||||
|
|
||||||
#ifndef NO_DES3
|
#ifndef NO_DES3
|
||||||
@ -39,6 +41,10 @@
|
|||||||
}
|
}
|
||||||
int wc_Des3_SetKey(Des3* des, const byte* key, const byte* iv, int dir)
|
int wc_Des3_SetKey(Des3* des, const byte* key, const byte* iv, int dir)
|
||||||
{
|
{
|
||||||
|
if (des == NULL || key == NULL || dir < 0) {
|
||||||
|
return BAD_FUNC_ARG;
|
||||||
|
}
|
||||||
|
|
||||||
return Des3_SetKey_fips(des, key, iv, dir);
|
return Des3_SetKey_fips(des, key, iv, dir);
|
||||||
}
|
}
|
||||||
int wc_Des_CbcEncrypt(Des* des, byte* out, const byte* in, word32 sz)
|
int wc_Des_CbcEncrypt(Des* des, byte* out, const byte* in, word32 sz)
|
||||||
@ -51,10 +57,16 @@
|
|||||||
}
|
}
|
||||||
int wc_Des3_CbcEncrypt(Des3* des, byte* out, const byte* in, word32 sz)
|
int wc_Des3_CbcEncrypt(Des3* des, byte* out, const byte* in, word32 sz)
|
||||||
{
|
{
|
||||||
|
if (des == NULL || out == NULL || in == NULL) {
|
||||||
|
return BAD_FUNC_ARG;
|
||||||
|
}
|
||||||
return Des3_CbcEncrypt_fips(des, out, in, sz);
|
return Des3_CbcEncrypt_fips(des, out, in, sz);
|
||||||
}
|
}
|
||||||
int wc_Des3_CbcDecrypt(Des3* des, byte* out, const byte* in, word32 sz)
|
int wc_Des3_CbcDecrypt(Des3* des, byte* out, const byte* in, word32 sz)
|
||||||
{
|
{
|
||||||
|
if (des == NULL || out == NULL || in == NULL) {
|
||||||
|
return BAD_FUNC_ARG;
|
||||||
|
}
|
||||||
return Des3_CbcDecrypt_fips(des, out, in, sz);
|
return Des3_CbcDecrypt_fips(des, out, in, sz);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -102,8 +114,6 @@
|
|||||||
#include <wolfcrypt/src/port/ti/ti-des3.c>
|
#include <wolfcrypt/src/port/ti/ti-des3.c>
|
||||||
#else
|
#else
|
||||||
|
|
||||||
#include <wolfssl/wolfcrypt/error-crypt.h>
|
|
||||||
#include <wolfssl/wolfcrypt/logging.h>
|
|
||||||
|
|
||||||
#ifdef NO_INLINE
|
#ifdef NO_INLINE
|
||||||
#include <wolfssl/wolfcrypt/misc.h>
|
#include <wolfssl/wolfcrypt/misc.h>
|
||||||
|
Reference in New Issue
Block a user