Friday, 18 May 2012

DiceLockSecurity Knowledge

Windows - Source Code

Linux - Source Code

Apple Mac OS X

JAVA - Source Code

DOCUMENTATION - Inside Knowledge

DOCUMENTATION - Self browser view

HOW TO

arrow DiceLock-x 5.0.0.1 arrow baseRipemd160X.cpp (2)
baseRipemd160X.cpp (2) (base Ripemd 160 & 320 hash algorithm source code file) Print E-mail
Get C++ and Java source code with ready to use project files for Microsoft Visual Studio for Windows, Oracle JDeveloper for Java JRE, Xcode for Mac OS X and Eclipse CDT with Nokia QT for Linux ...
VisualStudio.pngjdeveloper.pngXcode.pngeclipse-cdt.pngqt.png

DiceLock is protected by US patent 7508945 and European Patent 1182777 where applicable.

DiceLock and DiceLock logo are trademarks or registered trademarks in the EC, USA and others.

License information can be obtained at our corporate web site




    FREE C++ Source Code  
Eclipse project and source files !!! visual-studio-2008.png

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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
 
  // Fifth transform set
  void BaseRipemd160X::Transform_J4(unsigned long int* a1, unsigned long int* b1, unsigned long int* c1, unsigned long int* d1, unsigned long int* e1, unsigned long int* X) {
 
    RIPEMD_Transform160X(RIPEMD_J, b1, c1, d1, e1, a1, X[ 4], this->rl_64_79[ 0], this->constant4);
    RIPEMD_Transform160X(RIPEMD_J, a1, b1, c1, d1, e1, X[ 0], this->rl_64_79[ 1], this->constant4);
    RIPEMD_Transform160X(RIPEMD_J, e1, a1, b1, c1, d1, X[ 5], this->rl_64_79[ 2], this->constant4);
    RIPEMD_Transform160X(RIPEMD_J, d1, e1, a1, b1, c1, X[ 9], this->rl_64_79[ 3], this->constant4);
    RIPEMD_Transform160X(RIPEMD_J, c1, d1, e1, a1, b1, X[ 7], this->rl_64_79[ 4], this->constant4);
    RIPEMD_Transform160X(RIPEMD_J, b1, c1, d1, e1, a1, X[12], this->rl_64_79[ 5], this->constant4);
    RIPEMD_Transform160X(RIPEMD_J, a1, b1, c1, d1, e1, X[ 2], this->rl_64_79[ 6], this->constant4);
    RIPEMD_Transform160X(RIPEMD_J, e1, a1, b1, c1, d1, X[10], this->rl_64_79[ 7], this->constant4);
    RIPEMD_Transform160X(RIPEMD_J, d1, e1, a1, b1, c1, X[14], this->rl_64_79[ 8], this->constant4);
    RIPEMD_Transform160X(RIPEMD_J, c1, d1, e1, a1, b1, X[ 1], this->rl_64_79[ 9], this->constant4);
    RIPEMD_Transform160X(RIPEMD_J, b1, c1, d1, e1, a1, X[ 3], this->rl_64_79[10], this->constant4);
    RIPEMD_Transform160X(RIPEMD_J, a1, b1, c1, d1, e1, X[ 8], this->rl_64_79[11], this->constant4);
    RIPEMD_Transform160X(RIPEMD_J, e1, a1, b1, c1, d1, X[11], this->rl_64_79[12], this->constant4);
    RIPEMD_Transform160X(RIPEMD_J, d1, e1, a1, b1, c1, X[ 6], this->rl_64_79[13], this->constant4);
    RIPEMD_Transform160X(RIPEMD_J, c1, d1, e1, a1, b1, X[15], this->rl_64_79[14], this->constant4);
    RIPEMD_Transform160X(RIPEMD_J, b1, c1, d1, e1, a1, X[13], this->rl_64_79[15], this->constant4);
  }
 
  // Sixth transform set
  void BaseRipemd160X::Transform_J5(unsigned long int* a2, unsigned long int* b2, unsigned long int* c2, unsigned long int* d2, unsigned long int* e2, unsigned long int* X) {
 
    RIPEMD_Transform160X(RIPEMD_J, a2, b2, c2, d2, e2, X[ 5], this->prime_rl_0_15[ 0], this->constant5);
    RIPEMD_Transform160X(RIPEMD_J, e2, a2, b2, c2, d2, X[14], this->prime_rl_0_15[ 1], this->constant5);
    RIPEMD_Transform160X(RIPEMD_J, d2, e2, a2, b2, c2, X[ 7], this->prime_rl_0_15[ 2], this->constant5);
    RIPEMD_Transform160X(RIPEMD_J, c2, d2, e2, a2, b2, X[ 0], this->prime_rl_0_15[ 3], this->constant5);
    RIPEMD_Transform160X(RIPEMD_J, b2, c2, d2, e2, a2, X[ 9], this->prime_rl_0_15[ 4], this->constant5);
    RIPEMD_Transform160X(RIPEMD_J, a2, b2, c2, d2, e2, X[ 2], this->prime_rl_0_15[ 5], this->constant5);
    RIPEMD_Transform160X(RIPEMD_J, e2, a2, b2, c2, d2, X[11], this->prime_rl_0_15[ 6], this->constant5);
    RIPEMD_Transform160X(RIPEMD_J, d2, e2, a2, b2, c2, X[ 4], this->prime_rl_0_15[ 7], this->constant5);
    RIPEMD_Transform160X(RIPEMD_J, c2, d2, e2, a2, b2, X[13], this->prime_rl_0_15[ 8], this->constant5);
    RIPEMD_Transform160X(RIPEMD_J, b2, c2, d2, e2, a2, X[ 6], this->prime_rl_0_15[ 9], this->constant5);
    RIPEMD_Transform160X(RIPEMD_J, a2, b2, c2, d2, e2, X[15], this->prime_rl_0_15[10], this->constant5);
    RIPEMD_Transform160X(RIPEMD_J, e2, a2, b2, c2, d2, X[ 8], this->prime_rl_0_15[11], this->constant5);
    RIPEMD_Transform160X(RIPEMD_J, d2, e2, a2, b2, c2, X[ 1], this->prime_rl_0_15[12], this->constant5);
    RIPEMD_Transform160X(RIPEMD_J, c2, d2, e2, a2, b2, X[10], this->prime_rl_0_15[13], this->constant5);
    RIPEMD_Transform160X(RIPEMD_J, b2, c2, d2, e2, a2, X[ 3], this->prime_rl_0_15[14], this->constant5);
    RIPEMD_Transform160X(RIPEMD_J, a2, b2, c2, d2, e2, X[12], this->prime_rl_0_15[15], this->constant5);
  }
 
  // Seventh transform set
  void BaseRipemd160X::Transform_I6(unsigned long int* a2, unsigned long int* b2, unsigned long int* c2, unsigned long int* d2, unsigned long int* e2, unsigned long int* X) {
 
    RIPEMD_Transform160X(RIPEMD_I, e2, a2, b2, c2, d2, X[ 6], this->prime_rl_16_31[ 0], this->constant6);
    RIPEMD_Transform160X(RIPEMD_I, d2, e2, a2, b2, c2, X[11], this->prime_rl_16_31[ 1], this->constant6);
    RIPEMD_Transform160X(RIPEMD_I, c2, d2, e2, a2, b2, X[ 3], this->prime_rl_16_31[ 2], this->constant6);
    RIPEMD_Transform160X(RIPEMD_I, b2, c2, d2, e2, a2, X[ 7], this->prime_rl_16_31[ 3], this->constant6);
    RIPEMD_Transform160X(RIPEMD_I, a2, b2, c2, d2, e2, X[ 0], this->prime_rl_16_31[ 4], this->constant6);
    RIPEMD_Transform160X(RIPEMD_I, e2, a2, b2, c2, d2, X[13], this->prime_rl_16_31[ 5], this->constant6);
    RIPEMD_Transform160X(RIPEMD_I, d2, e2, a2, b2, c2, X[ 5], this->prime_rl_16_31[ 6], this->constant6);
    RIPEMD_Transform160X(RIPEMD_I, c2, d2, e2, a2, b2, X[10], this->prime_rl_16_31[ 7], this->constant6);
    RIPEMD_Transform160X(RIPEMD_I, b2, c2, d2, e2, a2, X[14], this->prime_rl_16_31[ 8], this->constant6);
    RIPEMD_Transform160X(RIPEMD_I, a2, b2, c2, d2, e2, X[15], this->prime_rl_16_31[ 9], this->constant6);
    RIPEMD_Transform160X(RIPEMD_I, e2, a2, b2, c2, d2, X[ 8], this->prime_rl_16_31[10], this->constant6);
    RIPEMD_Transform160X(RIPEMD_I, d2, e2, a2, b2, c2, X[12], this->prime_rl_16_31[11], this->constant6);
    RIPEMD_Transform160X(RIPEMD_I, c2, d2, e2, a2, b2, X[ 4], this->prime_rl_16_31[12], this->constant6);
    RIPEMD_Transform160X(RIPEMD_I, b2, c2, d2, e2, a2, X[ 9], this->prime_rl_16_31[13], this->constant6);
    RIPEMD_Transform160X(RIPEMD_I, a2, b2, c2, d2, e2, X[ 1], this->prime_rl_16_31[14], this->constant6);
    RIPEMD_Transform160X(RIPEMD_I, e2, a2, b2, c2, d2, X[ 2], this->prime_rl_16_31[15], this->constant6);
  }
 
  // Eighth transform set
  void BaseRipemd160X::Transform_H7(unsigned long int* a2, unsigned long int* b2, unsigned long int* c2, unsigned long int* d2, unsigned long int* e2, unsigned long int* X) {
 
    RIPEMD_Transform160X(RIPEMD_H, d2, e2, a2, b2, c2, X[15], this->prime_rl_32_47[ 0], this->constant7);
    RIPEMD_Transform160X(RIPEMD_H, c2, d2, e2, a2, b2, X[ 5], this->prime_rl_32_47[ 1], this->constant7);
    RIPEMD_Transform160X(RIPEMD_H, b2, c2, d2, e2, a2, X[ 1], this->prime_rl_32_47[ 2], this->constant7);
    RIPEMD_Transform160X(RIPEMD_H, a2, b2, c2, d2, e2, X[ 3], this->prime_rl_32_47[ 3], this->constant7);
    RIPEMD_Transform160X(RIPEMD_H, e2, a2, b2, c2, d2, X[ 7], this->prime_rl_32_47[ 4], this->constant7);
    RIPEMD_Transform160X(RIPEMD_H, d2, e2, a2, b2, c2, X[14], this->prime_rl_32_47[ 5], this->constant7);
    RIPEMD_Transform160X(RIPEMD_H, c2, d2, e2, a2, b2, X[ 6], this->prime_rl_32_47[ 6], this->constant7);
    RIPEMD_Transform160X(RIPEMD_H, b2, c2, d2, e2, a2, X[ 9], this->prime_rl_32_47[ 7], this->constant7);
    RIPEMD_Transform160X(RIPEMD_H, a2, b2, c2, d2, e2, X[11], this->prime_rl_32_47[ 8], this->constant7);
    RIPEMD_Transform160X(RIPEMD_H, e2, a2, b2, c2, d2, X[ 8], this->prime_rl_32_47[ 9], this->constant7);
    RIPEMD_Transform160X(RIPEMD_H, d2, e2, a2, b2, c2, X[12], this->prime_rl_32_47[10], this->constant7);
    RIPEMD_Transform160X(RIPEMD_H, c2, d2, e2, a2, b2, X[ 2], this->prime_rl_32_47[11], this->constant7);
    RIPEMD_Transform160X(RIPEMD_H, b2, c2, d2, e2, a2, X[10], this->prime_rl_32_47[12], this->constant7);
    RIPEMD_Transform160X(RIPEMD_H, a2, b2, c2, d2, e2, X[ 0], this->prime_rl_32_47[13], this->constant7);
    RIPEMD_Transform160X(RIPEMD_H, e2, a2, b2, c2, d2, X[ 4], this->prime_rl_32_47[14], this->constant7);
    RIPEMD_Transform160X(RIPEMD_H, d2, e2, a2, b2, c2, X[13], this->prime_rl_32_47[15], this->constant7);
  }
 
  // Ninth transform set
  void BaseRipemd160X::Transform_G8(unsigned long int* a2, unsigned long int* b2, unsigned long int* c2, unsigned long int* d2, unsigned long int* e2, unsigned long int* X) {
 
    RIPEMD_Transform160X(RIPEMD_G, c2, d2, e2, a2, b2, X[ 8], this->prime_rl_48_63[ 0], this->constant8);
    RIPEMD_Transform160X(RIPEMD_G, b2, c2, d2, e2, a2, X[ 6], this->prime_rl_48_63[ 1], this->constant8);
    RIPEMD_Transform160X(RIPEMD_G, a2, b2, c2, d2, e2, X[ 4], this->prime_rl_48_63[ 2], this->constant8);
    RIPEMD_Transform160X(RIPEMD_G, e2, a2, b2, c2, d2, X[ 1], this->prime_rl_48_63[ 3], this->constant8);
    RIPEMD_Transform160X(RIPEMD_G, d2, e2, a2, b2, c2, X[ 3], this->prime_rl_48_63[ 4], this->constant8);
    RIPEMD_Transform160X(RIPEMD_G, c2, d2, e2, a2, b2, X[11], this->prime_rl_48_63[ 5], this->constant8);
    RIPEMD_Transform160X(RIPEMD_G, b2, c2, d2, e2, a2, X[15], this->prime_rl_48_63[ 6], this->constant8);
    RIPEMD_Transform160X(RIPEMD_G, a2, b2, c2, d2, e2, X[ 0], this->prime_rl_48_63[ 7], this->constant8);
    RIPEMD_Transform160X(RIPEMD_G, e2, a2, b2, c2, d2, X[ 5], this->prime_rl_48_63[ 8], this->constant8);
    RIPEMD_Transform160X(RIPEMD_G, d2, e2, a2, b2, c2, X[12], this->prime_rl_48_63[ 9], this->constant8);
    RIPEMD_Transform160X(RIPEMD_G, c2, d2, e2, a2, b2, X[ 2], this->prime_rl_48_63[10], this->constant8);
    RIPEMD_Transform160X(RIPEMD_G, b2, c2, d2, e2, a2, X[13], this->prime_rl_48_63[11], this->constant8);
    RIPEMD_Transform160X(RIPEMD_G, a2, b2, c2, d2, e2, X[ 9], this->prime_rl_48_63[12], this->constant8);
    RIPEMD_Transform160X(RIPEMD_G, e2, a2, b2, c2, d2, X[ 7], this->prime_rl_48_63[13], this->constant8);
    RIPEMD_Transform160X(RIPEMD_G, d2, e2, a2, b2, c2, X[10], this->prime_rl_48_63[14], this->constant8);
    RIPEMD_Transform160X(RIPEMD_G, c2, d2, e2, a2, b2, X[14], this->prime_rl_48_63[15], this->constant8);
  }
 
  // Tenth transform set
  void BaseRipemd160X::Transform_F9(unsigned long int* a2, unsigned long int* b2, unsigned long int* c2, unsigned long int* d2, unsigned long int* e2, unsigned long int* X) {
 
    RIPEMD_Transform160X(RIPEMD_F, b2, c2, d2, e2, a2, X[12], this->prime_rl_64_79[ 0], this->constant9);
    RIPEMD_Transform160X(RIPEMD_F, a2, b2, c2, d2, e2, X[15], this->prime_rl_64_79[ 1], this->constant9);
    RIPEMD_Transform160X(RIPEMD_F, e2, a2, b2, c2, d2, X[10], this->prime_rl_64_79[ 2], this->constant9);
    RIPEMD_Transform160X(RIPEMD_F, d2, e2, a2, b2, c2, X[ 4], this->prime_rl_64_79[ 3], this->constant9);
    RIPEMD_Transform160X(RIPEMD_F, c2, d2, e2, a2, b2, X[ 1], this->prime_rl_64_79[ 4], this->constant9);
    RIPEMD_Transform160X(RIPEMD_F, b2, c2, d2, e2, a2, X[ 5], this->prime_rl_64_79[ 5], this->constant9);
    RIPEMD_Transform160X(RIPEMD_F, a2, b2, c2, d2, e2, X[ 8], this->prime_rl_64_79[ 6], this->constant9);
    RIPEMD_Transform160X(RIPEMD_F, e2, a2, b2, c2, d2, X[ 7], this->prime_rl_64_79[ 7], this->constant9);
    RIPEMD_Transform160X(RIPEMD_F, d2, e2, a2, b2, c2, X[ 6], this->prime_rl_64_79[ 8], this->constant9);
    RIPEMD_Transform160X(RIPEMD_F, c2, d2, e2, a2, b2, X[ 2], this->prime_rl_64_79[ 9], this->constant9);
    RIPEMD_Transform160X(RIPEMD_F, b2, c2, d2, e2, a2, X[13], this->prime_rl_64_79[10], this->constant9);
    RIPEMD_Transform160X(RIPEMD_F, a2, b2, c2, d2, e2, X[14], this->prime_rl_64_79[11], this->constant9);
    RIPEMD_Transform160X(RIPEMD_F, e2, a2, b2, c2, d2, X[ 0], this->prime_rl_64_79[12], this->constant9);
    RIPEMD_Transform160X(RIPEMD_F, d2, e2, a2, b2, c2, X[ 3], this->prime_rl_64_79[13], this->constant9);
    RIPEMD_Transform160X(RIPEMD_F, c2, d2, e2, a2, b2, X[ 9], this->prime_rl_64_79[14], this->constant9);
    RIPEMD_Transform160X(RIPEMD_F, b2, c2, d2, e2, a2, X[11], this->prime_rl_64_79[15], this->constant9);
  }
  }
}
 
 



Close Me  
Get FREE Random Number Test Windows DLL !
Get FREE Hash Algorithms Windows DLL !