-
Notifications
You must be signed in to change notification settings - Fork 159
/
hash-data-using-ripemd256.yml
executable file
·27 lines (27 loc) · 1.21 KB
/
hash-data-using-ripemd256.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
rule:
meta:
name: hash data using RIPEMD256
namespace: data-manipulation/hashing/ripemd256
authors:
- raymond.leong@mandiant.com
scope: function
references:
- https://en.wikipedia.org/wiki/RIPEMD-256
features:
- and:
- or:
- and:
- description: Magic initialization constants used in RIPEMD-256
- number: 0x67452301 = also used in MD5, SHA1, RIPEMD-128, RIPEMD-256, and RIPEMD-320
- number: 0xEFCDAB89 = also used in MD5, SHA1, RIPEMD-128, RIPEMD-256, and RIPEMD-320
- number: 0x98BADCFE = also used in MD5, SHA1, RIPEMD-128, RIPEMD-256, and RIPEMD-320
- number: 0x10325476 = also used in MD5, SHA1, RIPEMD-128, RIPEMD-256, and RIPEMD-320
- number: 0x76543210 = also used in RIPEMD-320
- number: 0xFEDCBA98 = also used in RIPEMD-320
- number: 0x89ABCDEF = also used in RIPEMD-320
- number: 0x01234567 = also used in RIPEMD-320
- bytes: 01 23 45 67 89 AB CD EF FE DC BA 98 76 54 32 10 10 32 54 76 98 BA DC FE EF CD AB 89 67 45 23 01
- not:
- or:
- number: 0xC3D2E1F0 = RIPEMD-160, RIPEMD-320, SHA1 constant
- number: 0x3C2D1E0F = RIPEMD-320 constant