144 Commits

Author SHA1 Message Date
Riccardo Schirone
54176f1bbc
Openssl meson (#10909)
* meson: allow to build with openssl
* use MD4 from openssl
* meson: use MD5 from openssl too
* meson: use SHA* functions from ssl library
* libr/hash: fix makefile when using openssl
2018-08-10 10:17:48 +02:00
Riccardo Schirone
1b129f4862 Make xxhash dependency optional in acr and meson (#10901) 2018-08-06 15:18:50 +02:00
Riccardo Schirone
7572f315ea
meson improvements (#10617)
* meson.build: fix meson build when not on git
* meson.build: make capstone a dependency
* meson.build: make r_magic library optional
* meson.build: capstone include is already in the dependency
* meson.build: use dependencies instead of manual linking + includes
* meson.build: add travis
* flag/meson.build: include sdb dependency
* travis-script: print messages based on install system
* io/meson.build: add sdb as dependency
* syscall/meson.build: missing sdb dependency
* {parse,config}/meson.build: add sdb dependency
* travis.yml: pass INSTALL_SYSTEM var to docker
* {bin/shlr}/meson.build: add sdb_dep to r2java and bin
* install meson and ninja-build in r2-travis docker
* travis.yml: allow meson build to fail for now
* anal/meson.build: add sdb and java dependencies
* egg/meson.build: add sdb dependency
* travis.yml: meson build env should be also in the includes list
* core/meson.build: add java dep
* meson.build: use dependencies also to create main r2 dependency
* rasm2/meson.build: replace link_with with dependencies
* rasm2/meson.build: add sdb as dependency
* meson.builds: convert link_with to dependencies and fix tabs
* travis-script: change meson install prefix and set PKG_CONFIG_PATH
* travis-script: add lib64 to LD_LIBRARY_PATH
2018-07-09 16:58:38 +02:00
David CARLIER
44cb24f1bf Using safe memory clearance for sensitive data. (#10337)
* Native one if possible or using memory barrier.
* Usage in few places at the moment.
* Attempt to fix OSx linkage issue, Meson linking to utils anyway
2018-06-13 16:38:08 +02:00
pancake
91a2e5fb9d More killing of strcasecmp/strncasecmp 2018-05-21 22:13:07 +02:00
Paul I
cc90ec6be5 [WIP] Move hardcoded paths to r_userconf.h (#9959)
* Move hardcoded paths to r_userconf.h

* Add R2_HOME_* macros

* Some cleanup
2018-04-28 10:02:55 +02:00
Paul I
40b4a5b557 Meson: disable libversion info for Windows (#9858) 2018-04-10 22:44:54 +02:00
Paul I
ca3652da4b Meson: Add version info for shared libs (#9763) 2018-03-24 18:18:32 +01:00
Paul I
4e73ad7d19 Meson: some cleanup (#9753) 2018-03-23 07:47:46 +01:00
pancake
fe7ae5d0af Fix last 20 coverity issues 2018-03-19 11:51:04 +01:00
Florian Märkl
5e1f811ec0 Fix meson indentation (#9567) 2018-03-03 22:08:37 +01:00
Florian Märkl
95a1b75784 Install Headers and .pc Files with Meson (#9548)
Use meson pkgconfig for .pc files

meson 0.44

Install same headers as acr
2018-03-03 20:00:18 +08:00
pancake
324500731b Fix build. no need to make rhash depend on rutil 2018-02-26 15:09:10 +01:00
Farid AYOUJIL
2520fd4e73 Fix entropy for issue #9366 (#9510)
* Fix entropy for issue #9366

* Using 'r_str_newf' and adding spaces before '('
2018-02-26 12:42:15 +01:00
Paul I
bb4f61580e Cleanup meson files (#9424) 2018-02-20 09:33:19 +01:00
vertur
3a91bf0e97 Wide CRC hashes
* Avoid explicit size for CRC hash.
* Add more CRC8 hashing presets.
* Add more CRC16 hashing presets.
* Add more CRC32 hashing presets.
* Add CRC64 hashing presets (disabled).
* Regroup CRC presets and make they presence configurable. Disable CRC16 and enable CRC64 hashing.
* Prevent from bitset overflow. Enable all CRC hashes.
* Regroup CRC presets again. Enable all original and disable rare-used presets.
* Fix issue with mismatched bitset types.
2018-01-07 20:41:53 +01:00
Lowly Worm
5e70e0f8b6 update incorrect FSF addresses
closes #8123
2017-08-15 22:28:30 -07:00
Guillaume Valadon
ea8adc48da Use void in prototypes (#7974) 2017-07-20 14:50:13 +02:00
pancake
c0c5f81be8 Fix travis again 2017-07-19 13:28:27 +02:00
Fangrui Song
6b4d140d6c Fix help for pi, add comments to switch cases => case d: // "pid" (#7952)
Indent `p=`, fix r_hash_entryopy_fraction (multiplier 256 is changed to 255 to avoid ut8 overflow, avoid ERANGE when calculating log(0), scan data once instead of 256 times)
2017-07-18 10:24:46 +02:00
SkUaTeR
c31d81da26 support for static build (#7822)
* support for static build
* improved sharard/static build
2017-06-28 22:54:40 +02:00
SkUaTeR
dc7914644e Meson improvements 2017-05-31 13:38:47 +02:00
SkUaTeR
9a1337512a meson.build fixes to build with MSVC 2017-05-14 23:06:00 +02:00
SkUaTeR
beb80cfc16 Fixes for MSVC 2017-05-09 23:53:20 +02:00
alvarofe
4e19275c1a Fix minor warnings while compiling 2017-05-06 22:56:50 +02:00
pancake
3e0c7bc650 Support meson build for Linux (Requires meson 0.40) 2017-05-02 14:18:36 +02:00
pancake
60f9667654 Remove support for bjam build system
- Delete all Jamroot files
2017-05-02 05:48:40 +02:00
pancake
fa671b9a16 Initial support for the Meson build system
- Integrated with current ACR
- Fix some stale fails got removed
2017-05-02 05:05:36 +02:00
Giovanni
e9a9ad5f43 Use stdout in rahash2 -h 2017-04-13 11:53:40 +02:00
Giovanni
2b6f6262fc Integrate crca in rahash2 and r2 2017-04-11 22:47:16 +02:00
alvarofe
4d2789fe7b Fix regression introduced in md5 with len == 0 2017-03-05 20:44:09 +01:00
radare
93e11e9d80 RHash cleanup 2017-03-01 09:02:28 +01:00
pancake
46e91531a3 Eliminate assert from sha2.c and r2-indent the whole libr/hash 2017-02-27 00:40:36 +01:00
Maijin
266eee75ae Fix #6560 Unify Windows/Win32 define 2017-02-26 16:51:03 +01:00
alvarofe
39dd847c1f Fix build plus indentation issues 2017-02-24 23:42:17 +01:00
Álvaro Felipe Melchor
88d4649cc6 fix more coverities 2016-12-19 17:23:30 +01:00
pancake
521458908b Fix div by zero and help for $fl 2016-12-19 04:27:13 +01:00
pancake
748ba2ce4a Fix md5 issue for size(0) in rabin2 -SK md5 2016-12-09 19:01:59 +01:00
pancake
baf53e4869 Fix #6127 - ph was breaking tmpseek 2016-11-07 02:33:09 +01:00
pancake
35d9eef757 Fix 20 more covs (divBy0, dbl3, negidx, bufovr, ..) 2016-10-20 15:39:36 +02:00
pancake
75fd458df8 Fix #5007 - Clarify the difference of hash/encoder/crypto 2016-08-15 01:10:42 +02:00
Moritz Eckert
143d2c3791 Fix #4965. Add support for luhn searching and hashing. 2016-08-01 12:34:54 +02:00
Maijin
7938640445 Move all /t/ from r2 to r2r 2016-07-27 19:19:30 +02:00
Maijin
c274afe748 Fix #3286 - Use stdbool.h 2016-07-12 22:15:19 +02:00
pancake
2582e5fd0e Fix #5134 - rahash2 -K entropy was randomized by uninitalized values 2016-06-14 20:29:49 +02:00
Sven Steinbauer
547f8bbc5c Infer fixes Round 2 (#4993) 2016-05-24 22:22:15 +02:00
pancake
d9cdd29268 Fix endian issue in crc16 and crc32 2016-05-16 02:08:59 +02:00
Riccardo Schirone
d9e3a290c1 libr: fix compilation warnings
libr/util/graph: add some comments to the API
2016-05-13 09:57:55 +02:00
Rakholiya Jenish
502870f07b list all encoders/decoders supported by woE/woD and rahash2 -E/-D (fix #4851)
list all encoders/decoders supported by woE/woD and rahash2 -E/-D (fix #4851)
2016-05-11 22:25:54 +02:00
Damien Zammit
9cb03bab32 Cleanup endianness in crc32 and xxhash 2016-05-09 08:56:48 +02:00