Commit c43dd734cbe66291989c182ff178d50242474341

Philip Kaufmann 2012-02-09T14:18:40

renamed all rot-functions to rotr to be clear that it is a rotate right

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
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
diff --git a/diakgcn120208.cl b/diakgcn120208.cl
index 03d6aa9..03456b1 100644
--- a/diakgcn120208.cl
+++ b/diakgcn120208.cl
@@ -39,10 +39,10 @@
 #define ch(n) Ch(V[(4 + 128 - n) % 8], V[(5 + 128 - n) % 8], V[(6 + 128 - n) % 8])
 #define ma(n) Ma(V[(1 + 128 - n) % 8], V[(2 + 128 - n) % 8], V[(0 + 128 - n) % 8])
 
-#define rot15(n) (rotate(n, 15U) ^ rotate(n, 13U) ^ (n >> 10U))
-#define rot25(n) (rotate(n, 25U) ^ rotate(n, 14U) ^ (n >> 3U))
-#define rot26(n) (rotate(n, 26U) ^ rotate(n, 21U) ^ rotate(n, 7U))
-#define rot30(n) (rotate(n, 30U) ^ rotate(n, 19U) ^ rotate(n, 10U))
+#define rotr15(n) (rotate(n, 15U) ^ rotate(n, 13U) ^ (n >> 10U))
+#define rotr25(n) (rotate(n, 25U) ^ rotate(n, 14U) ^ (n >> 3U))
+#define rotr26(n) (rotate(n, 26U) ^ rotate(n, 21U) ^ rotate(n, 7U))
+#define rotr30(n) (rotate(n, 30U) ^ rotate(n, 19U) ^ rotate(n, 10U))
 
 __kernel
 	__attribute__((reqd_work_group_size(WORKSIZE, 1, 1)))
@@ -90,251 +90,251 @@ __kernel
 
 	V[4] = PreVal4 + nonce;
 
-	V[7] = H1 + (V[3] = D1 + Ch((PreVal0 + nonce), B1, C1) + rot26(PreVal0 + nonce));
-	V[3] += rot30(V[4]) + Ma(F1, G1, V[4]);
+	V[7] = H1 + (V[3] = D1 + Ch((PreVal0 + nonce), B1, C1) + rotr26(PreVal0 + nonce));
+	V[3] += rotr30(V[4]) + Ma(F1, G1, V[4]);
 
-	V[6] = G1 + (V[2] = C1addK5 + Ch(V[7], (PreVal0 + nonce), B1) + rot26(V[7]));
-	V[2] += rot30(V[3]) + Ma(V[4], F1, V[3]);
+	V[6] = G1 + (V[2] = C1addK5 + Ch(V[7], (PreVal0 + nonce), B1) + rotr26(V[7]));
+	V[2] += rotr30(V[3]) + Ma(V[4], F1, V[3]);
 
-	V[5] = F1 + (V[1] = B1addK6 + Ch(V[6], V[7], (PreVal0 + nonce)) + rot26(V[6]));
-	V[1] += rot30(V[2]) + Ma(V[3], V[4], V[2]);
+	V[5] = F1 + (V[1] = B1addK6 + Ch(V[6], V[7], (PreVal0 + nonce)) + rotr26(V[6]));
+	V[1] += rotr30(V[2]) + Ma(V[3], V[4], V[2]);
 
-	V[4] += nonce + PreVal0addK7 + Ch(V[5], V[6], V[7]) + rot26(V[5]);
-	V[0] =  nonce + PreVal0addK7 + Ch(V[5], V[6], V[7]) + rot26(V[5]) +rot30(V[1]) + Ma(V[2], V[3], V[1]);
+	V[4] += nonce + PreVal0addK7 + Ch(V[5], V[6], V[7]) + rotr26(V[5]);
+	V[0] =  nonce + PreVal0addK7 + Ch(V[5], V[6], V[7]) + rotr26(V[5]) +rotr30(V[1]) + Ma(V[2], V[3], V[1]);
 
-	V[3] += 0xd807aa98 + V[7] + Ch(V[4], V[5], V[6]) + rot26(V[4]);
-	V[7] =  0xd807aa98 + V[7] + Ch(V[4], V[5], V[6]) + rot26(V[4]) + rot30(V[0]) + Ma(V[1], V[2], V[0]);
+	V[3] += 0xd807aa98 + V[7] + Ch(V[4], V[5], V[6]) + rotr26(V[4]);
+	V[7] =  0xd807aa98 + V[7] + Ch(V[4], V[5], V[6]) + rotr26(V[4]) + rotr30(V[0]) + Ma(V[1], V[2], V[0]);
 
-	V[2] += 0x12835b01 + V[6] + Ch(V[3], V[4], V[5]) + rot26(V[3]);
-	V[6] =  0x12835b01 + V[6] + Ch(V[3], V[4], V[5]) + rot26(V[3]) + rot30(V[7]) + Ma(V[0], V[1], V[7]);
+	V[2] += 0x12835b01 + V[6] + Ch(V[3], V[4], V[5]) + rotr26(V[3]);
+	V[6] =  0x12835b01 + V[6] + Ch(V[3], V[4], V[5]) + rotr26(V[3]) + rotr30(V[7]) + Ma(V[0], V[1], V[7]);
 
-	V[1] += 0x243185be + V[5] + Ch(V[2], V[3], V[4]) + rot26(V[2]);
-	V[5] =  0x243185be + V[5] + Ch(V[2], V[3], V[4]) + rot26(V[2]) + rot30(V[6]) + Ma(V[7], V[0], V[6]);
+	V[1] += 0x243185be + V[5] + Ch(V[2], V[3], V[4]) + rotr26(V[2]);
+	V[5] =  0x243185be + V[5] + Ch(V[2], V[3], V[4]) + rotr26(V[2]) + rotr30(V[6]) + Ma(V[7], V[0], V[6]);
 
-	V[0] += 0x550c7dc3 + V[4] + Ch(V[1], V[2], V[3]) + rot26(V[1]);
-	V[4] =  0x550c7dc3 + V[4] + Ch(V[1], V[2], V[3]) + rot26(V[1]) + rot30(V[5]) + Ma(V[6], V[7], V[5]);
+	V[0] += 0x550c7dc3 + V[4] + Ch(V[1], V[2], V[3]) + rotr26(V[1]);
+	V[4] =  0x550c7dc3 + V[4] + Ch(V[1], V[2], V[3]) + rotr26(V[1]) + rotr30(V[5]) + Ma(V[6], V[7], V[5]);
 
 //--------------- ch() + ma() replaced above ---------------
 
-	V[7] += 0x72be5d74 + V[3] + ch(12) + rot26(V[0]);
-	V[3] =  0x72be5d74 + V[3] + ch(12) + rot26(V[0]) + rot30(V[4]) + ma(12);
+	V[7] += 0x72be5d74 + V[3] + ch(12) + rotr26(V[0]);
+	V[3] =  0x72be5d74 + V[3] + ch(12) + rotr26(V[0]) + rotr30(V[4]) + ma(12);
 
-	V[6] += 0x80deb1fe + V[2] + ch(13) + rot26(V[7]);
-	V[2] =  0x80deb1fe + V[2] + ch(13) + rot26(V[7]) + rot30(V[3]) + ma(13);
+	V[6] += 0x80deb1fe + V[2] + ch(13) + rotr26(V[7]);
+	V[2] =  0x80deb1fe + V[2] + ch(13) + rotr26(V[7]) + rotr30(V[3]) + ma(13);
 
-	V[5] += 0x9bdc06a7 + V[1] + ch(14) + rot26(V[6]);
-	V[1] =  0x9bdc06a7 + V[1] + ch(14) + rot26(V[6]) + rot30(V[2]) + ma(14);
+	V[5] += 0x9bdc06a7 + V[1] + ch(14) + rotr26(V[6]);
+	V[1] =  0x9bdc06a7 + V[1] + ch(14) + rotr26(V[6]) + rotr30(V[2]) + ma(14);
 
-	V[4] += 0xc19bf3f4 + V[0] + ch(15) + rot26(V[5]);
-	V[0] =  0xc19bf3f4 + V[0] + ch(15) + rot26(V[5]) + rot30(V[1]) + ma(15);
+	V[4] += 0xc19bf3f4 + V[0] + ch(15) + rotr26(V[5]);
+	V[0] =  0xc19bf3f4 + V[0] + ch(15) + rotr26(V[5]) + rotr30(V[1]) + ma(15);
 
-	V[3] += W16addK16 + V[7] + ch(16) + rot26(V[4]);
-	V[7] =  W16addK16 + V[7] + ch(16) + rot26(V[4]) + rot30(V[0]) + ma(16);
+	V[3] += W16addK16 + V[7] + ch(16) + rotr26(V[4]);
+	V[7] =  W16addK16 + V[7] + ch(16) + rotr26(V[4]) + rotr30(V[0]) + ma(16);
 
-	V[2] += W17addK17 + V[6] + ch(17) + rot26(V[3]);
-	V[6] =  W17addK17 + V[6] + ch(17) + rot26(V[3]) + rot30(V[7]) + ma(17);
+	V[2] += W17addK17 + V[6] + ch(17) + rotr26(V[3]);
+	V[6] =  W17addK17 + V[6] + ch(17) + rotr26(V[3]) + rotr30(V[7]) + ma(17);
 
 //----------------------------------------------------------------------------------
 
 #ifdef VECTORS8
-	 W[0] = PreW18 + (u)(rot25(nonce.s0),             rot25(nonce.s0) ^ 0x2004000, rot25(nonce.s0) ^ 0x4008000, rot25(nonce.s0) ^ 0x600C000,
-						 rot25(nonce.s0) ^ 0x8010000, rot25(nonce.s0) ^ 0xa014000, rot25(nonce.s0) ^ 0xc018000, rot25(nonce.s0) ^ 0xe01c000);
+	 W[0] = PreW18 + (u)(	rotr25(nonce.s0),             rotr25(nonce.s0) ^ 0x2004000, rotr25(nonce.s0) ^ 0x4008000, rotr25(nonce.s0) ^ 0x600C000,
+				rotr25(nonce.s0) ^ 0x8010000, rotr25(nonce.s0) ^ 0xa014000, rotr25(nonce.s0) ^ 0xc018000, rotr25(nonce.s0) ^ 0xe01c000);
 #elif defined VECTORS4
-	 W[0] = PreW18 + (u)(rot25(nonce.x), rot25(nonce.x) ^ 0x2004000, rot25(nonce.x) ^ 0x4008000, rot25(nonce.x) ^ 0x600C000);
+	 W[0] = PreW18 + (u)(rotr25(nonce.x), rotr25(nonce.x) ^ 0x2004000, rotr25(nonce.x) ^ 0x4008000, rotr25(nonce.x) ^ 0x600C000);
 #elif defined VECTORS2
-	 W[0] = PreW18 + (u)(rot25(nonce.x), rot25(nonce.x) ^ 0x2004000);
+	 W[0] = PreW18 + (u)(rotr25(nonce.x), rotr25(nonce.x) ^ 0x2004000);
 #else
-	 W[0] = PreW18 + rot25(nonce);
+	 W[0] = PreW18 + rotr25(nonce);
 #endif
 	 W[1] = PreW19 + nonce;
-	 W[2] = 0x80000000 + rot15(W[0]);
-	 W[3] = rot15(W[1]);
-	 W[4] = 0x00000280 + rot15(W[2]);
-	 W[5] = W16 + rot15(W[3]);
-	 W[6] = W17 + rot15(W[4]);
-	 W[7] = W[0] + rot15(W[5]);
-	 W[8] = W[1] + rot15(W[6]);
-	 W[9] = W[2] + rot15(W[7]);
-	W[10] = W[3] + rot15(W[8]);
-	W[11] = W[4] + rot15(W[9]);
-	W[12] = 0x00a00055 + W[5] + rot15(W[10]);
-	W[13] = PreW31 + W[6] + rot15(W[11]);
-	W[14] = PreW32 + W[7] + rot15(W[12]);
-	W[15] = W17 + W[8] + rot15(W[13]) + rot25(W[0]);
-	W[16] = W[0] + W[9] + rot15(W[14]) + rot25(W[1]);
+	 W[2] = 0x80000000 + rotr15(W[0]);
+	 W[3] = rotr15(W[1]);
+	 W[4] = 0x00000280 + rotr15(W[2]);
+	 W[5] = W16 + rotr15(W[3]);
+	 W[6] = W17 + rotr15(W[4]);
+	 W[7] = W[0] + rotr15(W[5]);
+	 W[8] = W[1] + rotr15(W[6]);
+	 W[9] = W[2] + rotr15(W[7]);
+	W[10] = W[3] + rotr15(W[8]);
+	W[11] = W[4] + rotr15(W[9]);
+	W[12] = 0x00a00055 + W[5] + rotr15(W[10]);
+	W[13] = PreW31 + W[6] + rotr15(W[11]);
+	W[14] = PreW32 + W[7] + rotr15(W[12]);
+	W[15] = W17 + W[8] + rotr15(W[13]) + rotr25(W[0]);
+	W[16] = W[0] + W[9] + rotr15(W[14]) + rotr25(W[1]);
 
-	V[1] += 0x0fc19dc6 + V[5] + W[0] + ch(18) + rot26(V[2]);
-	V[5] =  0x0fc19dc6 + V[5] + W[0] + ch(18) + rot26(V[2]) + rot30(V[6]) + ma(18);
+	V[1] += 0x0fc19dc6 + V[5] + W[0] + ch(18) + rotr26(V[2]);
+	V[5] =  0x0fc19dc6 + V[5] + W[0] + ch(18) + rotr26(V[2]) + rotr30(V[6]) + ma(18);
 
-	V[0] += 0x240ca1cc + V[4] + W[1] + ch(19) + rot26(V[1]);
-	V[4] =  0x240ca1cc + V[4] + W[1] + ch(19) + rot26(V[1]) + rot30(V[5]) + ma(19);
+	V[0] += 0x240ca1cc + V[4] + W[1] + ch(19) + rotr26(V[1]);
+	V[4] =  0x240ca1cc + V[4] + W[1] + ch(19) + rotr26(V[1]) + rotr30(V[5]) + ma(19);
 
-	V[7] += 0x2de92c6f + V[3] + W[2] + ch(20) + rot26(V[0]);
-	V[3] =  0x2de92c6f + V[3] + W[2] + ch(20) + rot26(V[0]) + rot30(V[4]) + ma(20);
+	V[7] += 0x2de92c6f + V[3] + W[2] + ch(20) + rotr26(V[0]);
+	V[3] =  0x2de92c6f + V[3] + W[2] + ch(20) + rotr26(V[0]) + rotr30(V[4]) + ma(20);
 
-	V[6] += 0x4a7484aa + V[2] + W[3] + ch(21) + rot26(V[7]);
-	V[2] =  0x4a7484aa + V[2] + W[3] + ch(21) + rot26(V[7]) + rot30(V[3]) + ma(21);
+	V[6] += 0x4a7484aa + V[2] + W[3] + ch(21) + rotr26(V[7]);
+	V[2] =  0x4a7484aa + V[2] + W[3] + ch(21) + rotr26(V[7]) + rotr30(V[3]) + ma(21);
 
-	V[5] += 0x5cb0a9dc + V[1] + W[4] + ch(22) + rot26(V[6]);
-	V[1] =  0x5cb0a9dc + V[1] + W[4] + ch(22) + rot26(V[6]) + rot30(V[2]) + ma(22);
+	V[5] += 0x5cb0a9dc + V[1] + W[4] + ch(22) + rotr26(V[6]);
+	V[1] =  0x5cb0a9dc + V[1] + W[4] + ch(22) + rotr26(V[6]) + rotr30(V[2]) + ma(22);
 
-	V[4] += 0x76f988da + V[0] + W[5] + ch(23) + rot26(V[5]);
-	V[0] =  0x76f988da + V[0] + W[5] + ch(23) + rot26(V[5]) + rot30(V[1]) + ma(23);
+	V[4] += 0x76f988da + V[0] + W[5] + ch(23) + rotr26(V[5]);
+	V[0] =  0x76f988da + V[0] + W[5] + ch(23) + rotr26(V[5]) + rotr30(V[1]) + ma(23);
 
-	V[3] += 0x983e5152 + V[7] + W[6] + ch(24) + rot26(V[4]);
-	V[7] =  0x983e5152 + V[7] + W[6] + ch(24) + rot26(V[4]) + rot30(V[0]) + ma(24);
+	V[3] += 0x983e5152 + V[7] + W[6] + ch(24) + rotr26(V[4]);
+	V[7] =  0x983e5152 + V[7] + W[6] + ch(24) + rotr26(V[4]) + rotr30(V[0]) + ma(24);
 
-	V[2] += 0xa831c66d + V[6] + W[7] + ch(25) + rot26(V[3]);
-	V[6] =  0xa831c66d + V[6] + W[7] + ch(25) + rot26(V[3]) + rot30(V[7]) + ma(25);
+	V[2] += 0xa831c66d + V[6] + W[7] + ch(25) + rotr26(V[3]);
+	V[6] =  0xa831c66d + V[6] + W[7] + ch(25) + rotr26(V[3]) + rotr30(V[7]) + ma(25);
 
-	V[1] += 0xb00327c8 + V[5] + W[8] + ch(26) + rot26(V[2]);
-	V[5] =  0xb00327c8 + V[5] + W[8] + ch(26) + rot26(V[2]) + rot30(V[6]) + ma(26);
+	V[1] += 0xb00327c8 + V[5] + W[8] + ch(26) + rotr26(V[2]);
+	V[5] =  0xb00327c8 + V[5] + W[8] + ch(26) + rotr26(V[2]) + rotr30(V[6]) + ma(26);
 
-	V[0] += 0xbf597fc7 + V[4] + W[9] + ch(27) + rot26(V[1]);
-	V[4] =  0xbf597fc7 + V[4] + W[9] + ch(27) + rot26(V[1]) + rot30(V[5]) + ma(27);
+	V[0] += 0xbf597fc7 + V[4] + W[9] + ch(27) + rotr26(V[1]);
+	V[4] =  0xbf597fc7 + V[4] + W[9] + ch(27) + rotr26(V[1]) + rotr30(V[5]) + ma(27);
 
-	V[7] += 0xc6e00bf3 + V[3] + W[10] + ch(28) + rot26(V[0]);
-	V[3] =  0xc6e00bf3 + V[3] + W[10] + ch(28) + rot26(V[0]) + rot30(V[4]) + ma(28);
+	V[7] += 0xc6e00bf3 + V[3] + W[10] + ch(28) + rotr26(V[0]);
+	V[3] =  0xc6e00bf3 + V[3] + W[10] + ch(28) + rotr26(V[0]) + rotr30(V[4]) + ma(28);
 
-	V[6] += 0xd5a79147 + V[2] + W[11] + ch(29) + rot26(V[7]);
-	V[2] =  0xd5a79147 + V[2] + W[11] + ch(29) + rot26(V[7]) + rot30(V[3]) + ma(29);
+	V[6] += 0xd5a79147 + V[2] + W[11] + ch(29) + rotr26(V[7]);
+	V[2] =  0xd5a79147 + V[2] + W[11] + ch(29) + rotr26(V[7]) + rotr30(V[3]) + ma(29);
 
-	V[5] += 0x06ca6351 + V[1] + W[12] + ch(30) + rot26(V[6]);
-	V[1] =  0x06ca6351 + V[1] + W[12] + ch(30) + rot26(V[6]) + rot30(V[2]) + ma(30);
+	V[5] += 0x06ca6351 + V[1] + W[12] + ch(30) + rotr26(V[6]);
+	V[1] =  0x06ca6351 + V[1] + W[12] + ch(30) + rotr26(V[6]) + rotr30(V[2]) + ma(30);
 
-	V[4] += 0x14292967 + V[0] + W[13] + ch(31) + rot26(V[5]);
-	V[0] =  0x14292967 + V[0] + W[13] + ch(31) + rot26(V[5]) + rot30(V[1]) + ma(31);
+	V[4] += 0x14292967 + V[0] + W[13] + ch(31) + rotr26(V[5]);
+	V[0] =  0x14292967 + V[0] + W[13] + ch(31) + rotr26(V[5]) + rotr30(V[1]) + ma(31);
 
-	V[3] += 0x27b70a85 + V[7] + W[14] + ch(32) + rot26(V[4]);
-	V[7] =  0x27b70a85 + V[7] + W[14] + ch(32) + rot26(V[4]) + rot30(V[0]) + ma(32);
+	V[3] += 0x27b70a85 + V[7] + W[14] + ch(32) + rotr26(V[4]);
+	V[7] =  0x27b70a85 + V[7] + W[14] + ch(32) + rotr26(V[4]) + rotr30(V[0]) + ma(32);
 
-	V[2] += 0x2e1b2138 + V[6] + W[15] + ch(33) + rot26(V[3]);
-	V[6] =  0x2e1b2138 + V[6] + W[15] + ch(33) + rot26(V[3]) + rot30(V[7]) + ma(33);
+	V[2] += 0x2e1b2138 + V[6] + W[15] + ch(33) + rotr26(V[3]);
+	V[6] =  0x2e1b2138 + V[6] + W[15] + ch(33) + rotr26(V[3]) + rotr30(V[7]) + ma(33);
 
-	V[1] += 0x4d2c6dfc + V[5] + W[16] + ch(34) + rot26(V[2]);
-	V[5] =  0x4d2c6dfc + V[5] + W[16] + ch(34) + rot26(V[2]) + rot30(V[6]) + ma(34);
+	V[1] += 0x4d2c6dfc + V[5] + W[16] + ch(34) + rotr26(V[2]);
+	V[5] =  0x4d2c6dfc + V[5] + W[16] + ch(34) + rotr26(V[2]) + rotr30(V[6]) + ma(34);
 
 //----------------------------------------------------------------------------------
 
-	 W[0] =  W[1] + W[10] + rot15(W[15]) + rot25( W[2]);
-	 W[1] =  W[2] + W[11] + rot15(W[16]) + rot25( W[3]);
-	 W[2] =  W[3] + W[12] + rot15( W[0]) + rot25( W[4]);
-	 W[3] =  W[4] + W[13] + rot15( W[1]) + rot25( W[5]);
-	 W[4] =  W[5] + W[14] + rot15( W[2]) + rot25( W[6]);
-	 W[5] =  W[6] + W[15] + rot15( W[3]) + rot25( W[7]);
-	 W[6] =  W[7] + W[16] + rot15( W[4]) + rot25( W[8]);
-	 W[7] =  W[8] +  W[0] + rot15( W[5]) + rot25( W[9]);
-	 W[8] =  W[9] +  W[1] + rot15( W[6]) + rot25(W[10]);
-	 W[9] = W[10] +  W[2] + rot15( W[7]) + rot25(W[11]);
-	W[10] = W[11] +  W[3] + rot15( W[8]) + rot25(W[12]);
-	W[11] = W[12] +  W[4] + rot15( W[9]) + rot25(W[13]);
-	W[12] = W[13] +  W[5] + rot15(W[10]) + rot25(W[14]);
-	W[13] = W[14] +  W[6] + rot15(W[11]) + rot25(W[15]);
-	W[14] = W[15] +  W[7] + rot15(W[12]) + rot25(W[16]);
-	W[15] = W[16] +  W[8] + rot15(W[13]) + rot25( W[0]);
-	W[16] =  W[0] +  W[9] + rot15(W[14]) + rot25( W[1]);
+	 W[0] =  W[1] + W[10] + rotr15(W[15]) + rotr25( W[2]);
+	 W[1] =  W[2] + W[11] + rotr15(W[16]) + rotr25( W[3]);
+	 W[2] =  W[3] + W[12] + rotr15( W[0]) + rotr25( W[4]);
+	 W[3] =  W[4] + W[13] + rotr15( W[1]) + rotr25( W[5]);
+	 W[4] =  W[5] + W[14] + rotr15( W[2]) + rotr25( W[6]);
+	 W[5] =  W[6] + W[15] + rotr15( W[3]) + rotr25( W[7]);
+	 W[6] =  W[7] + W[16] + rotr15( W[4]) + rotr25( W[8]);
+	 W[7] =  W[8] +  W[0] + rotr15( W[5]) + rotr25( W[9]);
+	 W[8] =  W[9] +  W[1] + rotr15( W[6]) + rotr25(W[10]);
+	 W[9] = W[10] +  W[2] + rotr15( W[7]) + rotr25(W[11]);
+	W[10] = W[11] +  W[3] + rotr15( W[8]) + rotr25(W[12]);
+	W[11] = W[12] +  W[4] + rotr15( W[9]) + rotr25(W[13]);
+	W[12] = W[13] +  W[5] + rotr15(W[10]) + rotr25(W[14]);
+	W[13] = W[14] +  W[6] + rotr15(W[11]) + rotr25(W[15]);
+	W[14] = W[15] +  W[7] + rotr15(W[12]) + rotr25(W[16]);
+	W[15] = W[16] +  W[8] + rotr15(W[13]) + rotr25( W[0]);
+	W[16] =  W[0] +  W[9] + rotr15(W[14]) + rotr25( W[1]);
 
-	V[0] += 0x53380d13 + V[4] + W[0] + ch(35) + rot26(V[1]);
-	V[4] =  0x53380d13 + V[4] + W[0] + ch(35) + rot26(V[1]) + rot30(V[5]) + ma(35);
+	V[0] += 0x53380d13 + V[4] + W[0] + ch(35) + rotr26(V[1]);
+	V[4] =  0x53380d13 + V[4] + W[0] + ch(35) + rotr26(V[1]) + rotr30(V[5]) + ma(35);
 
-	V[7] += 0x650a7354 + V[3] + W[1] + ch(36) + rot26(V[0]);
-	V[3] =  0x650a7354 + V[3] + W[1] + ch(36) + rot26(V[0]) + rot30(V[4]) + ma(36);
+	V[7] += 0x650a7354 + V[3] + W[1] + ch(36) + rotr26(V[0]);
+	V[3] =  0x650a7354 + V[3] + W[1] + ch(36) + rotr26(V[0]) + rotr30(V[4]) + ma(36);
 
-	V[6] += 0x766a0abb + V[2] + W[2] + ch(37) + rot26(V[7]);
-	V[2] =  0x766a0abb + V[2] + W[2] + ch(37) + rot26(V[7]) + rot30(V[3]) + ma(37);
+	V[6] += 0x766a0abb + V[2] + W[2] + ch(37) + rotr26(V[7]);
+	V[2] =  0x766a0abb + V[2] + W[2] + ch(37) + rotr26(V[7]) + rotr30(V[3]) + ma(37);
 
-	V[5] += 0x81c2c92e + V[1] + W[3] + ch(38) + rot26(V[6]);
-	V[1] =  0x81c2c92e + V[1] + W[3] + ch(38) + rot26(V[6]) + rot30(V[2]) + ma(38);
+	V[5] += 0x81c2c92e + V[1] + W[3] + ch(38) + rotr26(V[6]);
+	V[1] =  0x81c2c92e + V[1] + W[3] + ch(38) + rotr26(V[6]) + rotr30(V[2]) + ma(38);
 
-	V[4] += 0x92722c85 + V[0] + W[4] + ch(39) + rot26(V[5]);
-	V[0] =  0x92722c85 + V[0] + W[4] + ch(39) + rot26(V[5]) + rot30(V[1]) + ma(39);
+	V[4] += 0x92722c85 + V[0] + W[4] + ch(39) + rotr26(V[5]);
+	V[0] =  0x92722c85 + V[0] + W[4] + ch(39) + rotr26(V[5]) + rotr30(V[1]) + ma(39);
 
-	V[3] += 0xa2bfe8a1 + V[7] + W[5] + ch(40) + rot26(V[4]);
-	V[7] =  0xa2bfe8a1 + V[7] + W[5] + ch(40) + rot26(V[4]) + rot30(V[0]) + ma(40);
+	V[3] += 0xa2bfe8a1 + V[7] + W[5] + ch(40) + rotr26(V[4]);
+	V[7] =  0xa2bfe8a1 + V[7] + W[5] + ch(40) + rotr26(V[4]) + rotr30(V[0]) + ma(40);
 
-	V[2] += 0xa81a664b + V[6] + W[6] + ch(41) + rot26(V[3]);
-	V[6] =  0xa81a664b + V[6] + W[6] + ch(41) + rot26(V[3]) + rot30(V[7]) + ma(41);
+	V[2] += 0xa81a664b + V[6] + W[6] + ch(41) + rotr26(V[3]);
+	V[6] =  0xa81a664b + V[6] + W[6] + ch(41) + rotr26(V[3]) + rotr30(V[7]) + ma(41);
 
-	V[1] += 0xc24b8b70 + V[5] + W[7] + ch(42) + rot26(V[2]);
-	V[5] =  0xc24b8b70 + V[5] + W[7] + ch(42) + rot26(V[2]) + rot30(V[6]) + ma(42);
+	V[1] += 0xc24b8b70 + V[5] + W[7] + ch(42) + rotr26(V[2]);
+	V[5] =  0xc24b8b70 + V[5] + W[7] + ch(42) + rotr26(V[2]) + rotr30(V[6]) + ma(42);
 
-	V[0] += 0xc76c51a3 + V[4] + W[8] + ch(43) + rot26(V[1]);
-	V[4] =  0xc76c51a3 + V[4] + W[8] + ch(43) + rot26(V[1]) + rot30(V[5]) + ma(43);
+	V[0] += 0xc76c51a3 + V[4] + W[8] + ch(43) + rotr26(V[1]);
+	V[4] =  0xc76c51a3 + V[4] + W[8] + ch(43) + rotr26(V[1]) + rotr30(V[5]) + ma(43);
 
-	V[7] += 0xd192e819 + V[3] + W[9] + ch(44) + rot26(V[0]);
-	V[3] =  0xd192e819 + V[3] + W[9] + ch(44) + rot26(V[0]) + rot30(V[4]) + ma(44);
+	V[7] += 0xd192e819 + V[3] + W[9] + ch(44) + rotr26(V[0]);
+	V[3] =  0xd192e819 + V[3] + W[9] + ch(44) + rotr26(V[0]) + rotr30(V[4]) + ma(44);
 
-	V[6] += 0xd6990624 + V[2] + W[10] + ch(45) + rot26(V[7]);
-	V[2] =  0xd6990624 + V[2] + W[10] + ch(45) + rot26(V[7]) + rot30(V[3]) + ma(45);
+	V[6] += 0xd6990624 + V[2] + W[10] + ch(45) + rotr26(V[7]);
+	V[2] =  0xd6990624 + V[2] + W[10] + ch(45) + rotr26(V[7]) + rotr30(V[3]) + ma(45);
 
-	V[5] += 0xf40e3585 + V[1] + W[11] + ch(46) + rot26(V[6]);
-	V[1] =  0xf40e3585 + V[1] + W[11] + ch(46) + rot26(V[6]) + rot30(V[2]) + ma(46);
+	V[5] += 0xf40e3585 + V[1] + W[11] + ch(46) + rotr26(V[6]);
+	V[1] =  0xf40e3585 + V[1] + W[11] + ch(46) + rotr26(V[6]) + rotr30(V[2]) + ma(46);
 
-	V[4] += 0x106aa070 + V[0] + W[12] + ch(47) + rot26(V[5]);
-	V[0] =  0x106aa070 + V[0] + W[12] + ch(47) + rot26(V[5]) + rot30(V[1]) + ma(47);
+	V[4] += 0x106aa070 + V[0] + W[12] + ch(47) + rotr26(V[5]);
+	V[0] =  0x106aa070 + V[0] + W[12] + ch(47) + rotr26(V[5]) + rotr30(V[1]) + ma(47);
 
-	V[3] += 0x19a4c116 + V[7] + W[13] + ch(48) + rot26(V[4]);
-	V[7] =  0x19a4c116 + V[7] + W[13] + ch(48) + rot26(V[4]) + rot30(V[0]) + ma(48);
+	V[3] += 0x19a4c116 + V[7] + W[13] + ch(48) + rotr26(V[4]);
+	V[7] =  0x19a4c116 + V[7] + W[13] + ch(48) + rotr26(V[4]) + rotr30(V[0]) + ma(48);
 
-	V[2] += 0x1e376c08 + V[6] + W[14] + ch(49) + rot26(V[3]);
-	V[6] =  0x1e376c08 + V[6] + W[14] + ch(49) + rot26(V[3]) + rot30(V[7]) + ma(49);
+	V[2] += 0x1e376c08 + V[6] + W[14] + ch(49) + rotr26(V[3]);
+	V[6] =  0x1e376c08 + V[6] + W[14] + ch(49) + rotr26(V[3]) + rotr30(V[7]) + ma(49);
 
-	V[1] += 0x2748774c + V[5] + W[15] + ch(50) + rot26(V[2]);
-	V[5] =  0x2748774c + V[5] + W[15] + ch(50) + rot26(V[2]) + rot30(V[6]) + ma(50);
+	V[1] += 0x2748774c + V[5] + W[15] + ch(50) + rotr26(V[2]);
+	V[5] =  0x2748774c + V[5] + W[15] + ch(50) + rotr26(V[2]) + rotr30(V[6]) + ma(50);
 
-	V[0] += 0x34b0bcb5 + V[4] + W[16] + ch(51) + rot26(V[1]);
-	V[4] =  0x34b0bcb5 + V[4] + W[16] + ch(51) + rot26(V[1]) + rot30(V[5]) + ma(51);
+	V[0] += 0x34b0bcb5 + V[4] + W[16] + ch(51) + rotr26(V[1]);
+	V[4] =  0x34b0bcb5 + V[4] + W[16] + ch(51) + rotr26(V[1]) + rotr30(V[5]) + ma(51);
 
 //----------------------------------------------------------------------------------
 
-	 W[0] =  W[1] + W[10] + rot15(W[15]) + rot25( W[2]);
-	 W[1] =  W[2] + W[11] + rot15(W[16]) + rot25( W[3]);
-	 W[2] =  W[3] + W[12] + rot15( W[0]) + rot25( W[4]);
-	 W[3] =  W[4] + W[13] + rot15( W[1]) + rot25( W[5]);
-	 W[4] =  W[5] + W[14] + rot15( W[2]) + rot25( W[6]);
-	 W[5] =  W[6] + W[15] + rot15( W[3]) + rot25( W[7]);
-	 W[6] =  W[7] + W[16] + rot15( W[4]) + rot25( W[8]);
-	 W[7] =  W[8] +  W[0] + rot15( W[5]) + rot25( W[9]);
-	 W[8] =  W[9] +  W[1] + rot15( W[6]) + rot25(W[10]);
-	 W[9] = W[10] +  W[2] + rot15( W[7]) + rot25(W[11]);
-	W[10] = W[11] +  W[3] + rot15( W[8]) + rot25(W[12]);
-	W[11] = W[12] +  W[4] + rot15( W[9]) + rot25(W[13]);
+	 W[0] =  W[1] + W[10] + rotr15(W[15]) + rotr25( W[2]);
+	 W[1] =  W[2] + W[11] + rotr15(W[16]) + rotr25( W[3]);
+	 W[2] =  W[3] + W[12] + rotr15( W[0]) + rotr25( W[4]);
+	 W[3] =  W[4] + W[13] + rotr15( W[1]) + rotr25( W[5]);
+	 W[4] =  W[5] + W[14] + rotr15( W[2]) + rotr25( W[6]);
+	 W[5] =  W[6] + W[15] + rotr15( W[3]) + rotr25( W[7]);
+	 W[6] =  W[7] + W[16] + rotr15( W[4]) + rotr25( W[8]);
+	 W[7] =  W[8] +  W[0] + rotr15( W[5]) + rotr25( W[9]);
+	 W[8] =  W[9] +  W[1] + rotr15( W[6]) + rotr25(W[10]);
+	 W[9] = W[10] +  W[2] + rotr15( W[7]) + rotr25(W[11]);
+	W[10] = W[11] +  W[3] + rotr15( W[8]) + rotr25(W[12]);
+	W[11] = W[12] +  W[4] + rotr15( W[9]) + rotr25(W[13]);
 
-	V[7] += 0x391c0cb3 + V[3] + W[0] + ch(52) + rot26(V[0]);
-	V[3] =  0x391c0cb3 + V[3] + W[0] + ch(52) + rot26(V[0]) + rot30(V[4]) + ma(52);
+	V[7] += 0x391c0cb3 + V[3] + W[0] + ch(52) + rotr26(V[0]);
+	V[3] =  0x391c0cb3 + V[3] + W[0] + ch(52) + rotr26(V[0]) + rotr30(V[4]) + ma(52);
 
-	V[6] += 0x4ed8aa4a + V[2] + W[1] + ch(53) + rot26(V[7]);
-	V[2] =  0x4ed8aa4a + V[2] + W[1] + ch(53) + rot26(V[7]) + rot30(V[3]) + ma(53);
+	V[6] += 0x4ed8aa4a + V[2] + W[1] + ch(53) + rotr26(V[7]);
+	V[2] =  0x4ed8aa4a + V[2] + W[1] + ch(53) + rotr26(V[7]) + rotr30(V[3]) + ma(53);
 
-	V[5] += 0x5b9cca4f + V[1] + W[2] + ch(54) + rot26(V[6]);
-	V[1] =  0x5b9cca4f + V[1] + W[2] + ch(54) + rot26(V[6]) + rot30(V[2]) + ma(54);
+	V[5] += 0x5b9cca4f + V[1] + W[2] + ch(54) + rotr26(V[6]);
+	V[1] =  0x5b9cca4f + V[1] + W[2] + ch(54) + rotr26(V[6]) + rotr30(V[2]) + ma(54);
 
-	V[4] += 0x682e6ff3 + V[0] + W[3] + ch(55) + rot26(V[5]);
-	V[0] =  0x682e6ff3 + V[0] + W[3] + ch(55) + rot26(V[5]) + rot30(V[1]) + ma(55);
+	V[4] += 0x682e6ff3 + V[0] + W[3] + ch(55) + rotr26(V[5]);
+	V[0] =  0x682e6ff3 + V[0] + W[3] + ch(55) + rotr26(V[5]) + rotr30(V[1]) + ma(55);
 
-	V[3] += 0x748f82ee + V[7] + W[4] + ch(56) + rot26(V[4]);
-	V[7] =  0x748f82ee + V[7] + W[4] + ch(56) + rot26(V[4]) + rot30(V[0]) + ma(56);
+	V[3] += 0x748f82ee + V[7] + W[4] + ch(56) + rotr26(V[4]);
+	V[7] =  0x748f82ee + V[7] + W[4] + ch(56) + rotr26(V[4]) + rotr30(V[0]) + ma(56);
 
-	V[2] += 0x78a5636f + V[6] + W[5] + ch(57) + rot26(V[3]);
-	V[6] =  0x78a5636f + V[6] + W[5] + ch(57) + rot26(V[3]) + rot30(V[7]) + ma(57);
+	V[2] += 0x78a5636f + V[6] + W[5] + ch(57) + rotr26(V[3]);
+	V[6] =  0x78a5636f + V[6] + W[5] + ch(57) + rotr26(V[3]) + rotr30(V[7]) + ma(57);
 
-	V[1] += 0x84c87814 + V[5] + W[6] + ch(58) + rot26(V[2]);
-	V[5] =  0x84c87814 + V[5] + W[6] + ch(58) + rot26(V[2]) + rot30(V[6]) + ma(58);
+	V[1] += 0x84c87814 + V[5] + W[6] + ch(58) + rotr26(V[2]);
+	V[5] =  0x84c87814 + V[5] + W[6] + ch(58) + rotr26(V[2]) + rotr30(V[6]) + ma(58);
 
-	V[0] += 0x8cc70208 + V[4] + W[7] + ch(59) + rot26(V[1]);
-	V[4] =  0x8cc70208 + V[4] + W[7] + ch(59) + rot26(V[1]) + rot30(V[5]) + ma(59);
+	V[0] += 0x8cc70208 + V[4] + W[7] + ch(59) + rotr26(V[1]);
+	V[4] =  0x8cc70208 + V[4] + W[7] + ch(59) + rotr26(V[1]) + rotr30(V[5]) + ma(59);
 
-	V[7] += 0x90befffa + V[3] + W[8] + ch(60) + rot26(V[0]);
-	V[3] =  0x90befffa + V[3] + W[8] + ch(60) + rot26(V[0]) + rot30(V[4]) + ma(60);
+	V[7] += 0x90befffa + V[3] + W[8] + ch(60) + rotr26(V[0]);
+	V[3] =  0x90befffa + V[3] + W[8] + ch(60) + rotr26(V[0]) + rotr30(V[4]) + ma(60);
 
-	V[6] += 0xa4506ceb + V[2] + W[9] + ch(61) + rot26(V[7]);
-	V[2] =  0xa4506ceb + V[2] + W[9] + ch(61) + rot26(V[7]) + rot30(V[3]) + ma(61);
+	V[6] += 0xa4506ceb + V[2] + W[9] + ch(61) + rotr26(V[7]);
+	V[2] =  0xa4506ceb + V[2] + W[9] + ch(61) + rotr26(V[7]) + rotr30(V[3]) + ma(61);
 
-	V[5] += 0xbef9a3f7 + V[1] + W[10] + ch(62) + rot26(V[6]);
-	V[1] =  0xbef9a3f7 + V[1] + W[10] + ch(62) + rot26(V[6]) + rot30(V[2]) + ma(62);
+	V[5] += 0xbef9a3f7 + V[1] + W[10] + ch(62) + rotr26(V[6]);
+	V[1] =  0xbef9a3f7 + V[1] + W[10] + ch(62) + rotr26(V[6]) + rotr30(V[2]) + ma(62);
 
-	V[4] += 0xc67178f2 + V[0] + W[11] + ch(63) + rot26(V[5]);
-	V[0] =  0xc67178f2 + V[0] + W[11] + ch(63) + rot26(V[5]) + rot30(V[1]) + ma(63);
+	V[4] += 0xc67178f2 + V[0] + W[11] + ch(63) + rotr26(V[5]);
+	V[0] =  0xc67178f2 + V[0] + W[11] + ch(63) + rotr26(V[5]) + rotr30(V[1]) + ma(63);
 
 //----------------------------------------------------------------------------------
 
@@ -352,237 +352,237 @@ __kernel
 	// 0xfc08884d + W[0]
 	u state0BaddV0 = state0B + V[0];
 
-	V[2] = 0x3c6ef372 + (V[6] = 0x90bb1e3c + W[1] + Ch(state0AaddV0, 0x510e527fU, 0x9b05688cU) + rot26(state0AaddV0));
-	V[6] += rot30(state0BaddV0) + Ma(0x6a09e667U, 0xbb67ae85U, state0BaddV0);
+	V[2] = 0x3c6ef372 + (V[6] = 0x90bb1e3c + W[1] + Ch(state0AaddV0, 0x510e527fU, 0x9b05688cU) + rotr26(state0AaddV0));
+	V[6] += rotr30(state0BaddV0) + Ma(0x6a09e667U, 0xbb67ae85U, state0BaddV0);
 		
-	V[1] = 0xbb67ae85 + (V[5] = 0x50c6645b + W[2] + Ch(V[2], state0AaddV0, 0x510e527fU) + rot26(V[2]));
-	V[5] += rot30(V[6]) + Ma(state0BaddV0, 0x6a09e667U, V[6]);
+	V[1] = 0xbb67ae85 + (V[5] = 0x50c6645b + W[2] + Ch(V[2], state0AaddV0, 0x510e527fU) + rotr26(V[2]));
+	V[5] += rotr30(V[6]) + Ma(state0BaddV0, 0x6a09e667U, V[6]);
 
-	V[0] = 0x6a09e667 + (V[4] = 0x3ac42e24 + W[3] + Ch(V[1], V[2], state0AaddV0) + rot26(V[1]));
-	V[4] += rot30(V[5]) + Ma(V[6], state0BaddV0, V[5]);
+	V[0] = 0x6a09e667 + (V[4] = 0x3ac42e24 + W[3] + Ch(V[1], V[2], state0AaddV0) + rotr26(V[1]));
+	V[4] += rotr30(V[5]) + Ma(V[6], state0BaddV0, V[5]);
 
-	V[7] = (state0BaddV0) + (V[3] = 0x3956c25b + state0AaddV0 + W[4] + Ch(V[0], V[1], V[2]) + rot26(V[0]));
-	V[3] += rot30(V[4]) + Ma(V[5], V[6], V[4]);
+	V[7] = (state0BaddV0) + (V[3] = 0x3956c25b + state0AaddV0 + W[4] + Ch(V[0], V[1], V[2]) + rotr26(V[0]));
+	V[3] += rotr30(V[4]) + Ma(V[5], V[6], V[4]);
 
 //--------------- ch() + ma() replaced above ---------------
 
-	V[6] += 0x59f111f1 + V[2] + W[5] + ch(69) + rot26(V[7]);
-	V[2] =  0x59f111f1 + V[2] + W[5] + ch(69) + rot26(V[7]) + rot30(V[3]) + ma(69);
+	V[6] += 0x59f111f1 + V[2] + W[5] + ch(69) + rotr26(V[7]);
+	V[2] =  0x59f111f1 + V[2] + W[5] + ch(69) + rotr26(V[7]) + rotr30(V[3]) + ma(69);
 
-	V[5] += 0x923f82a4 + V[1] + W[6] + ch(70) + rot26(V[6]);
-	V[1] =  0x923f82a4 + V[1] + W[6] + ch(70) + rot26(V[6]) + rot30(V[2]) + ma(70);
+	V[5] += 0x923f82a4 + V[1] + W[6] + ch(70) + rotr26(V[6]);
+	V[1] =  0x923f82a4 + V[1] + W[6] + ch(70) + rotr26(V[6]) + rotr30(V[2]) + ma(70);
 
-	V[4] += 0xab1c5ed5 + V[0] + W[7] + ch(71) + rot26(V[5]);
-	V[0] =  0xab1c5ed5 + V[0] + W[7] + ch(71) + rot26(V[5]) + rot30(V[1]) + ma(71);
+	V[4] += 0xab1c5ed5 + V[0] + W[7] + ch(71) + rotr26(V[5]);
+	V[0] =  0xab1c5ed5 + V[0] + W[7] + ch(71) + rotr26(V[5]) + rotr30(V[1]) + ma(71);
 
-	V[3] += 0x5807aa98 + V[7] + ch(72) + rot26(V[4]);
-	V[7] =  0x5807aa98 + V[7] + ch(72) + rot26(V[4]) + rot30(V[0]) + ma(72);
+	V[3] += 0x5807aa98 + V[7] + ch(72) + rotr26(V[4]);
+	V[7] =  0x5807aa98 + V[7] + ch(72) + rotr26(V[4]) + rotr30(V[0]) + ma(72);
 
-	V[2] += 0x12835b01 + V[6] + ch(73) + rot26(V[3]);
-	V[6] =  0x12835b01 + V[6] + ch(73) + rot26(V[3]) + rot30(V[7]) + ma(73);
+	V[2] += 0x12835b01 + V[6] + ch(73) + rotr26(V[3]);
+	V[6] =  0x12835b01 + V[6] + ch(73) + rotr26(V[3]) + rotr30(V[7]) + ma(73);
 
-	V[1] += 0x243185be + V[5] + ch(74) + rot26(V[2]);
-	V[5] =  0x243185be + V[5] + ch(74) + rot26(V[2]) + rot30(V[6]) + ma(74);
+	V[1] += 0x243185be + V[5] + ch(74) + rotr26(V[2]);
+	V[5] =  0x243185be + V[5] + ch(74) + rotr26(V[2]) + rotr30(V[6]) + ma(74);
 
-	V[0] += 0x550c7dc3 + V[4] + ch(75) + rot26(V[1]);
-	V[4] =  0x550c7dc3 + V[4] + ch(75) + rot26(V[1]) + rot30(V[5]) + ma(75);
+	V[0] += 0x550c7dc3 + V[4] + ch(75) + rotr26(V[1]);
+	V[4] =  0x550c7dc3 + V[4] + ch(75) + rotr26(V[1]) + rotr30(V[5]) + ma(75);
 
-	V[7] += 0x72be5d74 + V[3] + ch(76) + rot26(V[0]);
-	V[3] =  0x72be5d74 + V[3] + ch(76) + rot26(V[0]) + rot30(V[4]) + ma(76);
+	V[7] += 0x72be5d74 + V[3] + ch(76) + rotr26(V[0]);
+	V[3] =  0x72be5d74 + V[3] + ch(76) + rotr26(V[0]) + rotr30(V[4]) + ma(76);
 
-	V[6] += 0x80deb1fe + V[2] + ch(77) + rot26(V[7]);
-	V[2] =  0x80deb1fe + V[2] + ch(77) + rot26(V[7]) + rot30(V[3]) + ma(77);
+	V[6] += 0x80deb1fe + V[2] + ch(77) + rotr26(V[7]);
+	V[2] =  0x80deb1fe + V[2] + ch(77) + rotr26(V[7]) + rotr30(V[3]) + ma(77);
 
-	V[5] += 0x9bdc06a7 + V[1] + ch(78) + rot26(V[6]);
-	V[1] =  0x9bdc06a7 + V[1] + ch(78) + rot26(V[6]) + rot30(V[2]) + ma(78);
+	V[5] += 0x9bdc06a7 + V[1] + ch(78) + rotr26(V[6]);
+	V[1] =  0x9bdc06a7 + V[1] + ch(78) + rotr26(V[6]) + rotr30(V[2]) + ma(78);
 
-	V[4] += 0xc19bf274 + V[0] + ch(79) + rot26(V[5]);
-	V[0] =  0xc19bf274 + V[0] + ch(79) + rot26(V[5]) + rot30(V[1]) + ma(79);
+	V[4] += 0xc19bf274 + V[0] + ch(79) + rotr26(V[5]);
+	V[0] =  0xc19bf274 + V[0] + ch(79) + rotr26(V[5]) + rotr30(V[1]) + ma(79);
 
 //----------------------------------------------------------------------------------
 
-	 W[0] = W[0] + rot25(W[1]);
-	 W[1] = 0x00a00000 + W[1] + rot25(W[2]);
-	 W[2] = W[2] + rot15(W[0]) + rot25(W[3]);
-	 W[3] = W[3] + rot15(W[1]) + rot25(W[4]);
-	 W[4] = W[4] + rot15(W[2]) + rot25(W[5]);
-	 W[5] = W[5] + rot15(W[3]) + rot25(W[6]);
-	 W[6] = 0x00000100 + W[6] + rot15(W[4]) + rot25(W[7]);	
-	 W[7] = 0x11002000 + W[7] + W[0] + rot15(W[5]);
-	 W[8] = 0x80000000 + W[1] + rot15(W[6]);	
-	 W[9] = W[2] + rot15(W[7]);
-	W[10] = W[3] + rot15(W[8]);
-	W[11] = W[4] + rot15(W[9]);
-	W[12] = W[5] + rot15(W[10]);
-	W[13] = W[6] + rot15(W[11]);
-	W[14] = 0x00400022 + W[7] + rot15( W[12]);
-	W[15] = 0x00000100 + W[8] + rot15( W[13]) + rot25(W[0]);
-	W[16] = W[0] + W[9] + rot15( W[14]) + rot25(W[1]);
+	 W[0] = W[0] + rotr25(W[1]);
+	 W[1] = 0x00a00000 + W[1] + rotr25(W[2]);
+	 W[2] = W[2] + rotr15(W[0]) + rotr25(W[3]);
+	 W[3] = W[3] + rotr15(W[1]) + rotr25(W[4]);
+	 W[4] = W[4] + rotr15(W[2]) + rotr25(W[5]);
+	 W[5] = W[5] + rotr15(W[3]) + rotr25(W[6]);
+	 W[6] = 0x00000100 + W[6] + rotr15(W[4]) + rotr25(W[7]);	
+	 W[7] = 0x11002000 + W[7] + W[0] + rotr15(W[5]);
+	 W[8] = 0x80000000 + W[1] + rotr15(W[6]);	
+	 W[9] = W[2] + rotr15(W[7]);
+	W[10] = W[3] + rotr15(W[8]);
+	W[11] = W[4] + rotr15(W[9]);
+	W[12] = W[5] + rotr15(W[10]);
+	W[13] = W[6] + rotr15(W[11]);
+	W[14] = 0x00400022 + W[7] + rotr15( W[12]);
+	W[15] = 0x00000100 + W[8] + rotr15( W[13]) + rotr25(W[0]);
+	W[16] = W[0] + W[9] + rotr15( W[14]) + rotr25(W[1]);
 
-	V[3] += 0xe49b69c1 + V[7] + W[0] + ch(80) + rot26(V[4]);
-	V[7] =  0xe49b69c1 + V[7] + W[0] + ch(80) + rot26(V[4]) + rot30(V[0]) + ma(80);
+	V[3] += 0xe49b69c1 + V[7] + W[0] + ch(80) + rotr26(V[4]);
+	V[7] =  0xe49b69c1 + V[7] + W[0] + ch(80) + rotr26(V[4]) + rotr30(V[0]) + ma(80);
 
-	V[2] += 0xefbe4786 + V[6] + W[1] + ch(81) + rot26(V[3]);
-	V[6] =  0xefbe4786 + V[6] + W[1] + ch(81) + rot26(V[3]) + rot30(V[7]) + ma(81);
+	V[2] += 0xefbe4786 + V[6] + W[1] + ch(81) + rotr26(V[3]);
+	V[6] =  0xefbe4786 + V[6] + W[1] + ch(81) + rotr26(V[3]) + rotr30(V[7]) + ma(81);
 
-	V[1] += 0x0fc19dc6 + V[5] + W[2] + ch(82) + rot26(V[2]);
-	V[5] =  0x0fc19dc6 + V[5] + W[2] + ch(82) + rot26(V[2]) + rot30(V[6]) + ma(82);
+	V[1] += 0x0fc19dc6 + V[5] + W[2] + ch(82) + rotr26(V[2]);
+	V[5] =  0x0fc19dc6 + V[5] + W[2] + ch(82) + rotr26(V[2]) + rotr30(V[6]) + ma(82);
 
-	V[0] += 0x240ca1cc + V[4] + W[3] + ch(83) + rot26(V[1]);
-	V[4] =  0x240ca1cc + V[4] + W[3] + ch(83) + rot26(V[1]) + rot30(V[5]) + ma(83);
+	V[0] += 0x240ca1cc + V[4] + W[3] + ch(83) + rotr26(V[1]);
+	V[4] =  0x240ca1cc + V[4] + W[3] + ch(83) + rotr26(V[1]) + rotr30(V[5]) + ma(83);
 
-	V[7] += 0x2de92c6f + V[3] + W[4] + ch(84) + rot26(V[0]);
-	V[3] =  0x2de92c6f + V[3] + W[4] + ch(84) + rot26(V[0]) + rot30(V[4]) + ma(84);
+	V[7] += 0x2de92c6f + V[3] + W[4] + ch(84) + rotr26(V[0]);
+	V[3] =  0x2de92c6f + V[3] + W[4] + ch(84) + rotr26(V[0]) + rotr30(V[4]) + ma(84);
 
-	V[6] += 0x4a7484aa + V[2] + W[5] + ch(85) + rot26(V[7]);
-	V[2] =  0x4a7484aa + V[2] + W[5] + ch(85) + rot26(V[7]) + rot30(V[3]) + ma(85);
+	V[6] += 0x4a7484aa + V[2] + W[5] + ch(85) + rotr26(V[7]);
+	V[2] =  0x4a7484aa + V[2] + W[5] + ch(85) + rotr26(V[7]) + rotr30(V[3]) + ma(85);
 
-	V[5] += 0x5cb0a9dc + V[1] + W[6] + ch(86) + rot26(V[6]);
-	V[1] =  0x5cb0a9dc + V[1] + W[6] + ch(86) + rot26(V[6]) + rot30(V[2]) + ma(86);
+	V[5] += 0x5cb0a9dc + V[1] + W[6] + ch(86) + rotr26(V[6]);
+	V[1] =  0x5cb0a9dc + V[1] + W[6] + ch(86) + rotr26(V[6]) + rotr30(V[2]) + ma(86);
 
-	V[4] += 0x76f988da + V[0] + W[7] + ch(87) + rot26(V[5]);
-	V[0] =  0x76f988da + V[0] + W[7] + ch(87) + rot26(V[5]) + rot30(V[1]) + ma(87);
+	V[4] += 0x76f988da + V[0] + W[7] + ch(87) + rotr26(V[5]);
+	V[0] =  0x76f988da + V[0] + W[7] + ch(87) + rotr26(V[5]) + rotr30(V[1]) + ma(87);
 
-	V[3] += 0x983e5152 + V[7] + W[8] + ch(88) + rot26(V[4]);
-	V[7] =  0x983e5152 + V[7] + W[8] + ch(88) + rot26(V[4]) + rot30(V[0]) + ma(88);
+	V[3] += 0x983e5152 + V[7] + W[8] + ch(88) + rotr26(V[4]);
+	V[7] =  0x983e5152 + V[7] + W[8] + ch(88) + rotr26(V[4]) + rotr30(V[0]) + ma(88);
 
-	V[2] += 0xa831c66d + V[6] + W[9] + ch(89) + rot26(V[3]);
-	V[6] =  0xa831c66d + V[6] + W[9] + ch(89) + rot26(V[3]) + rot30(V[7]) + ma(89);
+	V[2] += 0xa831c66d + V[6] + W[9] + ch(89) + rotr26(V[3]);
+	V[6] =  0xa831c66d + V[6] + W[9] + ch(89) + rotr26(V[3]) + rotr30(V[7]) + ma(89);
 
-	V[1] += 0xb00327c8 + V[5] + W[10] + ch(90) + rot26(V[2]);
-	V[5] =  0xb00327c8 + V[5] + W[10] + ch(90) + rot26(V[2]) + rot30(V[6]) + ma(90);
+	V[1] += 0xb00327c8 + V[5] + W[10] + ch(90) + rotr26(V[2]);
+	V[5] =  0xb00327c8 + V[5] + W[10] + ch(90) + rotr26(V[2]) + rotr30(V[6]) + ma(90);
 
-	V[0] += 0xbf597fc7 + V[4] + W[11] + ch(91) + rot26(V[1]);
-	V[4] =  0xbf597fc7 + V[4] + W[11] + ch(91) + rot26(V[1]) + rot30(V[5]) + ma(91);
+	V[0] += 0xbf597fc7 + V[4] + W[11] + ch(91) + rotr26(V[1]);
+	V[4] =  0xbf597fc7 + V[4] + W[11] + ch(91) + rotr26(V[1]) + rotr30(V[5]) + ma(91);
 
-	V[7] += 0xc6e00bf3 + V[3] + W[12] + ch(92) + rot26(V[0]);
-	V[3] =  0xc6e00bf3 + V[3] + W[12] + ch(92) + rot26(V[0]) + rot30(V[4]) + ma(92);
+	V[7] += 0xc6e00bf3 + V[3] + W[12] + ch(92) + rotr26(V[0]);
+	V[3] =  0xc6e00bf3 + V[3] + W[12] + ch(92) + rotr26(V[0]) + rotr30(V[4]) + ma(92);
 
-	V[6] += 0xd5a79147 + V[2] + W[13] + ch(93) + rot26(V[7]);
-	V[2] =  0xd5a79147 + V[2] + W[13] + ch(93) + rot26(V[7]) + rot30(V[3]) + ma(93);
+	V[6] += 0xd5a79147 + V[2] + W[13] + ch(93) + rotr26(V[7]);
+	V[2] =  0xd5a79147 + V[2] + W[13] + ch(93) + rotr26(V[7]) + rotr30(V[3]) + ma(93);
 
-	V[5] += 0x06ca6351 + V[1] + W[14] + ch(94) + rot26(V[6]);
-	V[1] =  0x06ca6351 + V[1] + W[14] + ch(94) + rot26(V[6]) + rot30(V[2]) + ma(94);
+	V[5] += 0x06ca6351 + V[1] + W[14] + ch(94) + rotr26(V[6]);
+	V[1] =  0x06ca6351 + V[1] + W[14] + ch(94) + rotr26(V[6]) + rotr30(V[2]) + ma(94);
 
-	V[4] += 0x14292967 + V[0] + W[15] + ch(95) + rot26(V[5]);
-	V[0] =  0x14292967 + V[0] + W[15] + ch(95) + rot26(V[5]) + rot30(V[1]) + ma(95);
+	V[4] += 0x14292967 + V[0] + W[15] + ch(95) + rotr26(V[5]);
+	V[0] =  0x14292967 + V[0] + W[15] + ch(95) + rotr26(V[5]) + rotr30(V[1]) + ma(95);
 
-	V[3] += 0x27b70a85 + V[7] + W[16] + ch(96) + rot26(V[4]);
-	V[7] =  0x27b70a85 + V[7] + W[16] + ch(96) + rot26(V[4]) + rot30(V[0]) + ma(96);
+	V[3] += 0x27b70a85 + V[7] + W[16] + ch(96) + rotr26(V[4]);
+	V[7] =  0x27b70a85 + V[7] + W[16] + ch(96) + rotr26(V[4]) + rotr30(V[0]) + ma(96);
 
 //----------------------------------------------------------------------------------
 
-	 W[0] =  W[1] + W[10] + rot15(W[15]) + rot25( W[2]);
-	 W[1] =  W[2] + W[11] + rot15(W[16]) + rot25( W[3]);
-	 W[2] =  W[3] + W[12] + rot15( W[0]) + rot25( W[4]);
-	 W[3] =  W[4] + W[13] + rot15( W[1]) + rot25( W[5]);
-	 W[4] =  W[5] + W[14] + rot15( W[2]) + rot25( W[6]);
-	 W[5] =  W[6] + W[15] + rot15( W[3]) + rot25( W[7]);
-	 W[6] =  W[7] + W[16] + rot15( W[4]) + rot25( W[8]);
-	 W[7] =  W[8] +  W[0] + rot15( W[5]) + rot25( W[9]);
-	 W[8] =  W[9] +  W[1] + rot15( W[6]) + rot25(W[10]);
-	 W[9] = W[10] +  W[2] + rot15( W[7]) + rot25(W[11]);
-	W[10] = W[11] +  W[3] + rot15( W[8]) + rot25(W[12]);
-	W[11] = W[12] +  W[4] + rot15( W[9]) + rot25(W[13]);
-	W[12] = W[13] +  W[5] + rot15(W[10]) + rot25(W[14]);
-	W[13] = W[14] +  W[6] + rot15(W[11]) + rot25(W[15]);
-	W[14] = W[15] +  W[7] + rot15(W[12]) + rot25(W[16]);
-	W[15] = W[16] +  W[8] + rot15(W[13]) + rot25( W[0]);
-	W[16] =  W[0] +  W[9] + rot15(W[14]) + rot25( W[1]);
+	 W[0] =  W[1] + W[10] + rotr15(W[15]) + rotr25( W[2]);
+	 W[1] =  W[2] + W[11] + rotr15(W[16]) + rotr25( W[3]);
+	 W[2] =  W[3] + W[12] + rotr15( W[0]) + rotr25( W[4]);
+	 W[3] =  W[4] + W[13] + rotr15( W[1]) + rotr25( W[5]);
+	 W[4] =  W[5] + W[14] + rotr15( W[2]) + rotr25( W[6]);
+	 W[5] =  W[6] + W[15] + rotr15( W[3]) + rotr25( W[7]);
+	 W[6] =  W[7] + W[16] + rotr15( W[4]) + rotr25( W[8]);
+	 W[7] =  W[8] +  W[0] + rotr15( W[5]) + rotr25( W[9]);
+	 W[8] =  W[9] +  W[1] + rotr15( W[6]) + rotr25(W[10]);
+	 W[9] = W[10] +  W[2] + rotr15( W[7]) + rotr25(W[11]);
+	W[10] = W[11] +  W[3] + rotr15( W[8]) + rotr25(W[12]);
+	W[11] = W[12] +  W[4] + rotr15( W[9]) + rotr25(W[13]);
+	W[12] = W[13] +  W[5] + rotr15(W[10]) + rotr25(W[14]);
+	W[13] = W[14] +  W[6] + rotr15(W[11]) + rotr25(W[15]);
+	W[14] = W[15] +  W[7] + rotr15(W[12]) + rotr25(W[16]);
+	W[15] = W[16] +  W[8] + rotr15(W[13]) + rotr25( W[0]);
+	W[16] =  W[0] +  W[9] + rotr15(W[14]) + rotr25( W[1]);
 
-	V[2] += 0x2e1b2138 + V[6] + W[0] + ch(97) + rot26(V[3]);
-	V[6] =  0x2e1b2138 + V[6] + W[0] + ch(97) + rot26(V[3]) + rot30(V[7]) + ma(97);
+	V[2] += 0x2e1b2138 + V[6] + W[0] + ch(97) + rotr26(V[3]);
+	V[6] =  0x2e1b2138 + V[6] + W[0] + ch(97) + rotr26(V[3]) + rotr30(V[7]) + ma(97);
 
-	V[1] += 0x4d2c6dfc + V[5] + W[1] + ch(98) + rot26(V[2]);
-	V[5] =  0x4d2c6dfc + V[5] + W[1] + ch(98) + rot26(V[2]) + rot30(V[6]) + ma(98);
+	V[1] += 0x4d2c6dfc + V[5] + W[1] + ch(98) + rotr26(V[2]);
+	V[5] =  0x4d2c6dfc + V[5] + W[1] + ch(98) + rotr26(V[2]) + rotr30(V[6]) + ma(98);
 
-	V[0] += 0x53380d13 + V[4] + W[2] + ch(99) + rot26(V[1]);
-	V[4] =  0x53380d13 + V[4] + W[2] + ch(99) + rot26(V[1]) + rot30(V[5]) + ma(99);
+	V[0] += 0x53380d13 + V[4] + W[2] + ch(99) + rotr26(V[1]);
+	V[4] =  0x53380d13 + V[4] + W[2] + ch(99) + rotr26(V[1]) + rotr30(V[5]) + ma(99);
 
-	V[7] += 0x650a7354 + V[3] + W[3] + ch(100) + rot26(V[0]);
-	V[3] =  0x650a7354 + V[3] + W[3] + ch(100) + rot26(V[0]) + rot30(V[4]) + ma(100);
+	V[7] += 0x650a7354 + V[3] + W[3] + ch(100) + rotr26(V[0]);
+	V[3] =  0x650a7354 + V[3] + W[3] + ch(100) + rotr26(V[0]) + rotr30(V[4]) + ma(100);
 
-	V[6] += 0x766a0abb + V[2] + W[4] + ch(101) + rot26(V[7]);
-	V[2] =  0x766a0abb + V[2] + W[4] + ch(101) + rot26(V[7]) + rot30(V[3]) + ma(101);
+	V[6] += 0x766a0abb + V[2] + W[4] + ch(101) + rotr26(V[7]);
+	V[2] =  0x766a0abb + V[2] + W[4] + ch(101) + rotr26(V[7]) + rotr30(V[3]) + ma(101);
 
-	V[5] += 0x81c2c92e + V[1] + W[5] + ch(102) + rot26(V[6]);
-	V[1] =  0x81c2c92e + V[1] + W[5] + ch(102) + rot26(V[6]) + rot30(V[2]) + ma(102);
+	V[5] += 0x81c2c92e + V[1] + W[5] + ch(102) + rotr26(V[6]);
+	V[1] =  0x81c2c92e + V[1] + W[5] + ch(102) + rotr26(V[6]) + rotr30(V[2]) + ma(102);
 
-	V[4] += 0x92722c85 + V[0] + W[6] + ch(103) + rot26(V[5]);
-	V[0] =  0x92722c85 + V[0] + W[6] + ch(103) + rot26(V[5]) + rot30(V[1]) + ma(103);
+	V[4] += 0x92722c85 + V[0] + W[6] + ch(103) + rotr26(V[5]);
+	V[0] =  0x92722c85 + V[0] + W[6] + ch(103) + rotr26(V[5]) + rotr30(V[1]) + ma(103);
 
-	V[3] += 0xa2bfe8a1 + V[7] + W[7] + ch(104) + rot26(V[4]);
-	V[7] =  0xa2bfe8a1 + V[7] + W[7] + ch(104) + rot26(V[4]) + rot30(V[0]) + ma(104);
+	V[3] += 0xa2bfe8a1 + V[7] + W[7] + ch(104) + rotr26(V[4]);
+	V[7] =  0xa2bfe8a1 + V[7] + W[7] + ch(104) + rotr26(V[4]) + rotr30(V[0]) + ma(104);
 
-	V[2] += 0xa81a664b + V[6] + W[8] + ch(105) + rot26(V[3]);
-	V[6] =  0xa81a664b + V[6] + W[8] + ch(105) + rot26(V[3]) + rot30(V[7]) + ma(105);
+	V[2] += 0xa81a664b + V[6] + W[8] + ch(105) + rotr26(V[3]);
+	V[6] =  0xa81a664b + V[6] + W[8] + ch(105) + rotr26(V[3]) + rotr30(V[7]) + ma(105);
 
-	V[1] += 0xc24b8b70 + V[5] + W[9] + ch(106) + rot26(V[2]);
-	V[5] =  0xc24b8b70 + V[5] + W[9] + ch(106) + rot26(V[2]) + rot30(V[6]) + ma(106);
+	V[1] += 0xc24b8b70 + V[5] + W[9] + ch(106) + rotr26(V[2]);
+	V[5] =  0xc24b8b70 + V[5] + W[9] + ch(106) + rotr26(V[2]) + rotr30(V[6]) + ma(106);
 
-	V[0] += 0xc76c51a3 + V[4] + W[10] + ch(107) + rot26(V[1]);
-	V[4] =  0xc76c51a3 + V[4] + W[10] + ch(107) + rot26(V[1]) + rot30(V[5]) + ma(107);
+	V[0] += 0xc76c51a3 + V[4] + W[10] + ch(107) + rotr26(V[1]);
+	V[4] =  0xc76c51a3 + V[4] + W[10] + ch(107) + rotr26(V[1]) + rotr30(V[5]) + ma(107);
 
-	V[7] += 0xd192e819 + V[3] + W[11] + ch(108) + rot26(V[0]);
-	V[3] =  0xd192e819 + V[3] + W[11] + ch(108) + rot26(V[0]) + rot30(V[4]) + ma(108);
+	V[7] += 0xd192e819 + V[3] + W[11] + ch(108) + rotr26(V[0]);
+	V[3] =  0xd192e819 + V[3] + W[11] + ch(108) + rotr26(V[0]) + rotr30(V[4]) + ma(108);
 
-	V[6] += 0xd6990624 + V[2] + W[12] + ch(109) + rot26(V[7]);
-	V[2] =  0xd6990624 + V[2] + W[12] + ch(109) + rot26(V[7]) + rot30(V[3]) + ma(109);
+	V[6] += 0xd6990624 + V[2] + W[12] + ch(109) + rotr26(V[7]);
+	V[2] =  0xd6990624 + V[2] + W[12] + ch(109) + rotr26(V[7]) + rotr30(V[3]) + ma(109);
 
-	V[5] += 0xf40e3585 + V[1] + W[13] + ch(110) + rot26(V[6]);
-	V[1] =  0xf40e3585 + V[1] + W[13] + ch(110) + rot26(V[6]) + rot30(V[2]) + ma(110);
+	V[5] += 0xf40e3585 + V[1] + W[13] + ch(110) + rotr26(V[6]);
+	V[1] =  0xf40e3585 + V[1] + W[13] + ch(110) + rotr26(V[6]) + rotr30(V[2]) + ma(110);
 
-	V[4] += 0x106aa070 + V[0] + W[14] + ch(111) + rot26(V[5]);
-	V[0] =  0x106aa070 + V[0] + W[14] + ch(111) + rot26(V[5]) + rot30(V[1]) + ma(111);
+	V[4] += 0x106aa070 + V[0] + W[14] + ch(111) + rotr26(V[5]);
+	V[0] =  0x106aa070 + V[0] + W[14] + ch(111) + rotr26(V[5]) + rotr30(V[1]) + ma(111);
 
-	V[3] += 0x19a4c116 + V[7] + W[15] + ch(112) + rot26(V[4]);
-	V[7] =  0x19a4c116 + V[7] + W[15] + ch(112) + rot26(V[4]) + rot30(V[0]) + ma(112);
+	V[3] += 0x19a4c116 + V[7] + W[15] + ch(112) + rotr26(V[4]);
+	V[7] =  0x19a4c116 + V[7] + W[15] + ch(112) + rotr26(V[4]) + rotr30(V[0]) + ma(112);
 
-	V[2] += 0x1e376c08 + V[6] + W[16] + ch(113) + rot26(V[3]);
-	V[6] =  0x1e376c08 + V[6] + W[16] + ch(113) + rot26(V[3]) + rot30(V[7]) + ma(113);
+	V[2] += 0x1e376c08 + V[6] + W[16] + ch(113) + rotr26(V[3]);
+	V[6] =  0x1e376c08 + V[6] + W[16] + ch(113) + rotr26(V[3]) + rotr30(V[7]) + ma(113);
 
 //----------------------------------------------------------------------------------
 
-	 W[0] =  W[1] + W[10] + rot15(W[15]) + rot25( W[2]);
-	 W[1] =  W[2] + W[11] + rot15(W[16]) + rot25( W[3]);
-	 W[2] =  W[3] + W[12] + rot15( W[0]) + rot25( W[4]);
-	 W[3] =  W[4] + W[13] + rot15( W[1]) + rot25( W[5]);
-	 W[4] =  W[5] + W[14] + rot15( W[2]) + rot25( W[6]);
-	 W[5] =  W[6] + W[15] + rot15( W[3]) + rot25( W[7]);
-	 W[6] =  W[7] + W[16] + rot15( W[4]) + rot25( W[8]);
-	 W[7] =  W[8] +  W[0] + rot15( W[5]) + rot25( W[9]);
-	 W[8] =  W[9] +  W[1] + rot15( W[6]) + rot25(W[10]);
-	 W[9] = W[10] +  W[2] + rot15( W[7]) + rot25(W[11]);
-	W[10] = W[11] +  W[3] + rot15( W[8]) + rot25(W[12]);
+	 W[0] =  W[1] + W[10] + rotr15(W[15]) + rotr25( W[2]);
+	 W[1] =  W[2] + W[11] + rotr15(W[16]) + rotr25( W[3]);
+	 W[2] =  W[3] + W[12] + rotr15( W[0]) + rotr25( W[4]);
+	 W[3] =  W[4] + W[13] + rotr15( W[1]) + rotr25( W[5]);
+	 W[4] =  W[5] + W[14] + rotr15( W[2]) + rotr25( W[6]);
+	 W[5] =  W[6] + W[15] + rotr15( W[3]) + rotr25( W[7]);
+	 W[6] =  W[7] + W[16] + rotr15( W[4]) + rotr25( W[8]);
+	 W[7] =  W[8] +  W[0] + rotr15( W[5]) + rotr25( W[9]);
+	 W[8] =  W[9] +  W[1] + rotr15( W[6]) + rotr25(W[10]);
+	 W[9] = W[10] +  W[2] + rotr15( W[7]) + rotr25(W[11]);
+	W[10] = W[11] +  W[3] + rotr15( W[8]) + rotr25(W[12]);
 
-	V[1] += 0x2748774c + V[5] + W[0] + ch(114) + rot26(V[2]);
-	V[5] =  0x2748774c + V[5] + W[0] + ch(114) + rot26(V[2]) + rot30(V[6]) + ma(114);
+	V[1] += 0x2748774c + V[5] + W[0] + ch(114) + rotr26(V[2]);
+	V[5] =  0x2748774c + V[5] + W[0] + ch(114) + rotr26(V[2]) + rotr30(V[6]) + ma(114);
 
-	V[0] += 0x34b0bcb5 + V[4] + W[1] + ch(115) + rot26(V[1]);
-	V[4] =  0x34b0bcb5 + V[4] + W[1] + ch(115) + rot26(V[1]) + rot30(V[5]) + ma(115);
+	V[0] += 0x34b0bcb5 + V[4] + W[1] + ch(115) + rotr26(V[1]);
+	V[4] =  0x34b0bcb5 + V[4] + W[1] + ch(115) + rotr26(V[1]) + rotr30(V[5]) + ma(115);
 
-	V[7] += 0x391c0cb3 + V[3] + W[2] + ch(116) + rot26(V[0]);
-	V[3] =  0x391c0cb3 + V[3] + W[2] + ch(116) + rot26(V[0]) + rot30(V[4]) + ma(116);
+	V[7] += 0x391c0cb3 + V[3] + W[2] + ch(116) + rotr26(V[0]);
+	V[3] =  0x391c0cb3 + V[3] + W[2] + ch(116) + rotr26(V[0]) + rotr30(V[4]) + ma(116);
 
-	V[6] += 0x4ed8aa4a + V[2] + W[3] + ch(117) + rot26(V[7]);
-	V[2] =  0x4ed8aa4a + V[2] + W[3] + ch(117) + rot26(V[7]) + rot30(V[3]) + ma(117);
+	V[6] += 0x4ed8aa4a + V[2] + W[3] + ch(117) + rotr26(V[7]);
+	V[2] =  0x4ed8aa4a + V[2] + W[3] + ch(117) + rotr26(V[7]) + rotr30(V[3]) + ma(117);
 
-	V[5] += 0x5b9cca4f + V[1] + W[4] + ch(118) + rot26(V[6]);
-	V[1] =  0x5b9cca4f + V[1] + W[4] + ch(118) + rot26(V[6]) + rot30(V[2]) + ma(118);
+	V[5] += 0x5b9cca4f + V[1] + W[4] + ch(118) + rotr26(V[6]);
+	V[1] =  0x5b9cca4f + V[1] + W[4] + ch(118) + rotr26(V[6]) + rotr30(V[2]) + ma(118);
 
-	V[4] += 0x682e6ff3 + V[0] + W[5] + ch(119) + rot26(V[5]);
-	V[0] =  0x682e6ff3 + V[0] + W[5] + ch(119) + rot26(V[5]) + rot30(V[1]) + ma(119);
+	V[4] += 0x682e6ff3 + V[0] + W[5] + ch(119) + rotr26(V[5]);
+	V[0] =  0x682e6ff3 + V[0] + W[5] + ch(119) + rotr26(V[5]) + rotr30(V[1]) + ma(119);
 
-	V[3] += 0x748f82ee + V[7] + W[6] + ch(120) + rot26(V[4]);
-	V[7] =  0x748f82ee + V[7] + W[6] + ch(120) + rot26(V[4]) + rot30(V[0]) + ma(120);
+	V[3] += 0x748f82ee + V[7] + W[6] + ch(120) + rotr26(V[4]);
+	V[7] =  0x748f82ee + V[7] + W[6] + ch(120) + rotr26(V[4]) + rotr30(V[0]) + ma(120);
 
-	V[2] += 0x78a5636f + V[6] + W[7] + ch(121) + rot26(V[3]);
+	V[2] += 0x78a5636f + V[6] + W[7] + ch(121) + rotr26(V[3]);
 
-	V[1] += 0x84c87814 + V[5] + W[8] + ch(122) + rot26(V[2]);
+	V[1] += 0x84c87814 + V[5] + W[8] + ch(122) + rotr26(V[2]);
 
-	V[0] += 0x8cc70208 + V[4] + W[9] + ch(123) + rot26(V[1]);
+	V[0] += 0x8cc70208 + V[4] + W[9] + ch(123) + rotr26(V[1]);
 
-	V[7] += V[3] + W[10] + ch(124) + rot26(V[0]);
+	V[7] += V[3] + W[10] + ch(124) + rotr26(V[0]);
 
 
 #define FOUND (0x80)