the latest tfm version has fp_rand() available, so we can test this now
This commit is contained in:
parent
a4671110d5
commit
fec05471ae
@ -7,6 +7,7 @@ addons:
|
|||||||
packages:
|
packages:
|
||||||
- binutils
|
- binutils
|
||||||
- libtommath-dev
|
- libtommath-dev
|
||||||
|
- libtfm-dev
|
||||||
|
|
||||||
before_script:
|
before_script:
|
||||||
- gem install coveralls-lcov
|
- gem install coveralls-lcov
|
||||||
@ -22,9 +23,9 @@ branches:
|
|||||||
compiler:
|
compiler:
|
||||||
- gcc
|
- gcc
|
||||||
- clang
|
- clang
|
||||||
|
script:
|
||||||
script: bash "${BUILDSCRIPT}" "${BUILDNAME}" "${BUILDOPTIONS}" "makefile V=1" "-DUSE_LTM -DLTM_DESC -I/usr/include" "/usr/lib/x86_64-linux-gnu/libtommath.a"
|
- bash "${BUILDSCRIPT}" "${BUILDNAME}" "${BUILDOPTIONS}" "makefile" "-DUSE_LTM -DLTM_DESC -DTFM_DESC -I/usr/include" "/usr/lib/x86_64-linux-gnu/libtommath.a"
|
||||||
|
- bash "${BUILDSCRIPT}" "${BUILDNAME}" "${BUILDOPTIONS}" "makefile.shared" "-DUSE_TFM -DLTM_DESC -DTFM_DESC -I/usr/include" "/usr/lib/x86_64-linux-gnu/libtfm.so"
|
||||||
env:
|
env:
|
||||||
- |
|
- |
|
||||||
BUILDSCRIPT="check_source.sh"
|
BUILDSCRIPT="check_source.sh"
|
||||||
|
@ -492,11 +492,6 @@
|
|||||||
#define LTC_PKCS_1
|
#define LTC_PKCS_1
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined(TFM_DESC) && defined(LTC_RSA_BLINDING)
|
|
||||||
#warning RSA blinding currently not supported in combination with TFM
|
|
||||||
#undef LTC_RSA_BLINDING
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#if defined(LTC_PELICAN) && !defined(LTC_RIJNDAEL)
|
#if defined(LTC_PELICAN) && !defined(LTC_RIJNDAEL)
|
||||||
#error Pelican-MAC requires LTC_RIJNDAEL
|
#error Pelican-MAC requires LTC_RIJNDAEL
|
||||||
#endif
|
#endif
|
||||||
|
@ -699,6 +699,13 @@ static int tfm_ecc_projective_add_point(ecc_point *P, ecc_point *Q, ecc_point *R
|
|||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
static int set_rand(void *a, int size)
|
||||||
|
{
|
||||||
|
LTC_ARGCHK(a != NULL);
|
||||||
|
fp_rand(a, size);
|
||||||
|
return CRYPT_OK;
|
||||||
|
}
|
||||||
|
|
||||||
const ltc_math_descriptor tfm_desc = {
|
const ltc_math_descriptor tfm_desc = {
|
||||||
|
|
||||||
"TomsFastMath",
|
"TomsFastMath",
|
||||||
@ -788,7 +795,7 @@ const ltc_math_descriptor tfm_desc = {
|
|||||||
&addmod,
|
&addmod,
|
||||||
&submod,
|
&submod,
|
||||||
|
|
||||||
NULL,
|
set_rand,
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user