LCOV - code coverage report
Current view: top level - src/crypto - ripemd160.cpp (source / functions) Hit Total Coverage
Test: coverage.lcov Lines: 237 242 97.9 %
Date: 2022-04-21 14:51:19 Functions: 22 23 95.7 %
Legend: Modified by patch:
Lines: hit not hit | Branches: + taken - not taken # not executed

Not modified by patch:
Lines: hit not hit | Branches: + taken - not taken # not executed
Branches: 8 8 100.0 %

           Branch data     Line data    Source code
#       1                 :            : // Copyright (c) 2014-2019 The Bitcoin Core developers
#       2                 :            : // Distributed under the MIT software license, see the accompanying
#       3                 :            : // file COPYING or http://www.opensource.org/licenses/mit-license.php.
#       4                 :            : 
#       5                 :            : #include <crypto/ripemd160.h>
#       6                 :            : 
#       7                 :            : #include <crypto/common.h>
#       8                 :            : 
#       9                 :            : #include <string.h>
#      10                 :            : 
#      11                 :            : // Internal implementation code.
#      12                 :            : namespace
#      13                 :            : {
#      14                 :            : /// Internal RIPEMD-160 implementation.
#      15                 :            : namespace ripemd160
#      16                 :            : {
#      17                 :  347074005 : uint32_t inline f1(uint32_t x, uint32_t y, uint32_t z) { return x ^ y ^ z; }
#      18                 :  347074398 : uint32_t inline f2(uint32_t x, uint32_t y, uint32_t z) { return (x & y) | (~x & z); }
#      19                 :  347075932 : uint32_t inline f3(uint32_t x, uint32_t y, uint32_t z) { return (x | ~y) ^ z; }
#      20                 :  347074417 : uint32_t inline f4(uint32_t x, uint32_t y, uint32_t z) { return (x & z) | (y & ~z); }
#      21                 :  347074060 : uint32_t inline f5(uint32_t x, uint32_t y, uint32_t z) { return x ^ (y | ~z); }
#      22                 :            : 
#      23                 :            : /** Initialize RIPEMD-160 state. */
#      24                 :            : void inline Initialize(uint32_t* s)
#      25                 :    8773463 : {
#      26                 :    8773463 :     s[0] = 0x67452301ul;
#      27                 :    8773463 :     s[1] = 0xEFCDAB89ul;
#      28                 :    8773463 :     s[2] = 0x98BADCFEul;
#      29                 :    8773463 :     s[3] = 0x10325476ul;
#      30                 :    8773463 :     s[4] = 0xC3D2E1F0ul;
#      31                 :    8773463 : }
#      32                 :            : 
#      33                 : 3470563471 : uint32_t inline rol(uint32_t x, int i) { return (x << i) | (x >> (32 - i)); }
#      34                 :            : 
#      35                 :            : void inline Round(uint32_t& a, uint32_t b, uint32_t& c, uint32_t d, uint32_t e, uint32_t f, uint32_t x, uint32_t k, int r)
#      36                 : 1735293988 : {
#      37                 : 1735293988 :     a = rol(a + f + x + k, r) + e;
#      38                 : 1735293988 :     c = rol(c, 10);
#      39                 : 1735293988 : }
#      40                 :            : 
#      41                 :  173538480 : void inline R11(uint32_t& a, uint32_t b, uint32_t& c, uint32_t d, uint32_t e, uint32_t x, int r) { Round(a, b, c, d, e, f1(b, c, d), x, 0, r); }
#      42                 :  173538463 : void inline R21(uint32_t& a, uint32_t b, uint32_t& c, uint32_t d, uint32_t e, uint32_t x, int r) { Round(a, b, c, d, e, f2(b, c, d), x, 0x5A827999ul, r); }
#      43                 :  173538602 : void inline R31(uint32_t& a, uint32_t b, uint32_t& c, uint32_t d, uint32_t e, uint32_t x, int r) { Round(a, b, c, d, e, f3(b, c, d), x, 0x6ED9EBA1ul, r); }
#      44                 :  173538463 : void inline R41(uint32_t& a, uint32_t b, uint32_t& c, uint32_t d, uint32_t e, uint32_t x, int r) { Round(a, b, c, d, e, f4(b, c, d), x, 0x8F1BBCDCul, r); }
#      45                 :  173538533 : void inline R51(uint32_t& a, uint32_t b, uint32_t& c, uint32_t d, uint32_t e, uint32_t x, int r) { Round(a, b, c, d, e, f5(b, c, d), x, 0xA953FD4Eul, r); }
#      46                 :            : 
#      47                 :  173538500 : void inline R12(uint32_t& a, uint32_t b, uint32_t& c, uint32_t d, uint32_t e, uint32_t x, int r) { Round(a, b, c, d, e, f5(b, c, d), x, 0x50A28BE6ul, r); }
#      48                 :  173538485 : void inline R22(uint32_t& a, uint32_t b, uint32_t& c, uint32_t d, uint32_t e, uint32_t x, int r) { Round(a, b, c, d, e, f4(b, c, d), x, 0x5C4DD124ul, r); }
#      49                 :  173538608 : void inline R32(uint32_t& a, uint32_t b, uint32_t& c, uint32_t d, uint32_t e, uint32_t x, int r) { Round(a, b, c, d, e, f3(b, c, d), x, 0x6D703EF3ul, r); }
#      50                 :  173538435 : void inline R42(uint32_t& a, uint32_t b, uint32_t& c, uint32_t d, uint32_t e, uint32_t x, int r) { Round(a, b, c, d, e, f2(b, c, d), x, 0x7A6D76E9ul, r); }
#      51                 :  173538537 : void inline R52(uint32_t& a, uint32_t b, uint32_t& c, uint32_t d, uint32_t e, uint32_t x, int r) { Round(a, b, c, d, e, f1(b, c, d), x, 0, r); }
#      52                 :            : 
#      53                 :            : /** Perform a RIPEMD-160 transformation, processing a 64-byte chunk. */
#      54                 :            : void Transform(uint32_t* s, const unsigned char* chunk)
#      55                 :   10846230 : {
#      56                 :   10846230 :     uint32_t a1 = s[0], b1 = s[1], c1 = s[2], d1 = s[3], e1 = s[4];
#      57                 :   10846230 :     uint32_t a2 = a1, b2 = b1, c2 = c1, d2 = d1, e2 = e1;
#      58                 :   10846230 :     uint32_t w0 = ReadLE32(chunk + 0), w1 = ReadLE32(chunk + 4), w2 = ReadLE32(chunk + 8), w3 = ReadLE32(chunk + 12);
#      59                 :   10846230 :     uint32_t w4 = ReadLE32(chunk + 16), w5 = ReadLE32(chunk + 20), w6 = ReadLE32(chunk + 24), w7 = ReadLE32(chunk + 28);
#      60                 :   10846230 :     uint32_t w8 = ReadLE32(chunk + 32), w9 = ReadLE32(chunk + 36), w10 = ReadLE32(chunk + 40), w11 = ReadLE32(chunk + 44);
#      61                 :   10846230 :     uint32_t w12 = ReadLE32(chunk + 48), w13 = ReadLE32(chunk + 52), w14 = ReadLE32(chunk + 56), w15 = ReadLE32(chunk + 60);
#      62                 :            : 
#      63                 :   10846230 :     R11(a1, b1, c1, d1, e1, w0, 11);
#      64                 :   10846230 :     R12(a2, b2, c2, d2, e2, w5, 8);
#      65                 :   10846230 :     R11(e1, a1, b1, c1, d1, w1, 14);
#      66                 :   10846230 :     R12(e2, a2, b2, c2, d2, w14, 9);
#      67                 :   10846230 :     R11(d1, e1, a1, b1, c1, w2, 15);
#      68                 :   10846230 :     R12(d2, e2, a2, b2, c2, w7, 9);
#      69                 :   10846230 :     R11(c1, d1, e1, a1, b1, w3, 12);
#      70                 :   10846230 :     R12(c2, d2, e2, a2, b2, w0, 11);
#      71                 :   10846230 :     R11(b1, c1, d1, e1, a1, w4, 5);
#      72                 :   10846230 :     R12(b2, c2, d2, e2, a2, w9, 13);
#      73                 :   10846230 :     R11(a1, b1, c1, d1, e1, w5, 8);
#      74                 :   10846230 :     R12(a2, b2, c2, d2, e2, w2, 15);
#      75                 :   10846230 :     R11(e1, a1, b1, c1, d1, w6, 7);
#      76                 :   10846230 :     R12(e2, a2, b2, c2, d2, w11, 15);
#      77                 :   10846230 :     R11(d1, e1, a1, b1, c1, w7, 9);
#      78                 :   10846230 :     R12(d2, e2, a2, b2, c2, w4, 5);
#      79                 :   10846230 :     R11(c1, d1, e1, a1, b1, w8, 11);
#      80                 :   10846230 :     R12(c2, d2, e2, a2, b2, w13, 7);
#      81                 :   10846230 :     R11(b1, c1, d1, e1, a1, w9, 13);
#      82                 :   10846230 :     R12(b2, c2, d2, e2, a2, w6, 7);
#      83                 :   10846230 :     R11(a1, b1, c1, d1, e1, w10, 14);
#      84                 :   10846230 :     R12(a2, b2, c2, d2, e2, w15, 8);
#      85                 :   10846230 :     R11(e1, a1, b1, c1, d1, w11, 15);
#      86                 :   10846230 :     R12(e2, a2, b2, c2, d2, w8, 11);
#      87                 :   10846230 :     R11(d1, e1, a1, b1, c1, w12, 6);
#      88                 :   10846230 :     R12(d2, e2, a2, b2, c2, w1, 14);
#      89                 :   10846230 :     R11(c1, d1, e1, a1, b1, w13, 7);
#      90                 :   10846230 :     R12(c2, d2, e2, a2, b2, w10, 14);
#      91                 :   10846230 :     R11(b1, c1, d1, e1, a1, w14, 9);
#      92                 :   10846230 :     R12(b2, c2, d2, e2, a2, w3, 12);
#      93                 :   10846230 :     R11(a1, b1, c1, d1, e1, w15, 8);
#      94                 :   10846230 :     R12(a2, b2, c2, d2, e2, w12, 6);
#      95                 :            : 
#      96                 :   10846230 :     R21(e1, a1, b1, c1, d1, w7, 7);
#      97                 :   10846230 :     R22(e2, a2, b2, c2, d2, w6, 9);
#      98                 :   10846230 :     R21(d1, e1, a1, b1, c1, w4, 6);
#      99                 :   10846230 :     R22(d2, e2, a2, b2, c2, w11, 13);
#     100                 :   10846230 :     R21(c1, d1, e1, a1, b1, w13, 8);
#     101                 :   10846230 :     R22(c2, d2, e2, a2, b2, w3, 15);
#     102                 :   10846230 :     R21(b1, c1, d1, e1, a1, w1, 13);
#     103                 :   10846230 :     R22(b2, c2, d2, e2, a2, w7, 7);
#     104                 :   10846230 :     R21(a1, b1, c1, d1, e1, w10, 11);
#     105                 :   10846230 :     R22(a2, b2, c2, d2, e2, w0, 12);
#     106                 :   10846230 :     R21(e1, a1, b1, c1, d1, w6, 9);
#     107                 :   10846230 :     R22(e2, a2, b2, c2, d2, w13, 8);
#     108                 :   10846230 :     R21(d1, e1, a1, b1, c1, w15, 7);
#     109                 :   10846230 :     R22(d2, e2, a2, b2, c2, w5, 9);
#     110                 :   10846230 :     R21(c1, d1, e1, a1, b1, w3, 15);
#     111                 :   10846230 :     R22(c2, d2, e2, a2, b2, w10, 11);
#     112                 :   10846230 :     R21(b1, c1, d1, e1, a1, w12, 7);
#     113                 :   10846230 :     R22(b2, c2, d2, e2, a2, w14, 7);
#     114                 :   10846230 :     R21(a1, b1, c1, d1, e1, w0, 12);
#     115                 :   10846230 :     R22(a2, b2, c2, d2, e2, w15, 7);
#     116                 :   10846230 :     R21(e1, a1, b1, c1, d1, w9, 15);
#     117                 :   10846230 :     R22(e2, a2, b2, c2, d2, w8, 12);
#     118                 :   10846230 :     R21(d1, e1, a1, b1, c1, w5, 9);
#     119                 :   10846230 :     R22(d2, e2, a2, b2, c2, w12, 7);
#     120                 :   10846230 :     R21(c1, d1, e1, a1, b1, w2, 11);
#     121                 :   10846230 :     R22(c2, d2, e2, a2, b2, w4, 6);
#     122                 :   10846230 :     R21(b1, c1, d1, e1, a1, w14, 7);
#     123                 :   10846230 :     R22(b2, c2, d2, e2, a2, w9, 15);
#     124                 :   10846230 :     R21(a1, b1, c1, d1, e1, w11, 13);
#     125                 :   10846230 :     R22(a2, b2, c2, d2, e2, w1, 13);
#     126                 :   10846230 :     R21(e1, a1, b1, c1, d1, w8, 12);
#     127                 :   10846230 :     R22(e2, a2, b2, c2, d2, w2, 11);
#     128                 :            : 
#     129                 :   10846230 :     R31(d1, e1, a1, b1, c1, w3, 11);
#     130                 :   10846230 :     R32(d2, e2, a2, b2, c2, w15, 9);
#     131                 :   10846230 :     R31(c1, d1, e1, a1, b1, w10, 13);
#     132                 :   10846230 :     R32(c2, d2, e2, a2, b2, w5, 7);
#     133                 :   10846230 :     R31(b1, c1, d1, e1, a1, w14, 6);
#     134                 :   10846230 :     R32(b2, c2, d2, e2, a2, w1, 15);
#     135                 :   10846230 :     R31(a1, b1, c1, d1, e1, w4, 7);
#     136                 :   10846230 :     R32(a2, b2, c2, d2, e2, w3, 11);
#     137                 :   10846230 :     R31(e1, a1, b1, c1, d1, w9, 14);
#     138                 :   10846230 :     R32(e2, a2, b2, c2, d2, w7, 8);
#     139                 :   10846230 :     R31(d1, e1, a1, b1, c1, w15, 9);
#     140                 :   10846230 :     R32(d2, e2, a2, b2, c2, w14, 6);
#     141                 :   10846230 :     R31(c1, d1, e1, a1, b1, w8, 13);
#     142                 :   10846230 :     R32(c2, d2, e2, a2, b2, w6, 6);
#     143                 :   10846230 :     R31(b1, c1, d1, e1, a1, w1, 15);
#     144                 :   10846230 :     R32(b2, c2, d2, e2, a2, w9, 14);
#     145                 :   10846230 :     R31(a1, b1, c1, d1, e1, w2, 14);
#     146                 :   10846230 :     R32(a2, b2, c2, d2, e2, w11, 12);
#     147                 :   10846230 :     R31(e1, a1, b1, c1, d1, w7, 8);
#     148                 :   10846230 :     R32(e2, a2, b2, c2, d2, w8, 13);
#     149                 :   10846230 :     R31(d1, e1, a1, b1, c1, w0, 13);
#     150                 :   10846230 :     R32(d2, e2, a2, b2, c2, w12, 5);
#     151                 :   10846230 :     R31(c1, d1, e1, a1, b1, w6, 6);
#     152                 :   10846230 :     R32(c2, d2, e2, a2, b2, w2, 14);
#     153                 :   10846230 :     R31(b1, c1, d1, e1, a1, w13, 5);
#     154                 :   10846230 :     R32(b2, c2, d2, e2, a2, w10, 13);
#     155                 :   10846230 :     R31(a1, b1, c1, d1, e1, w11, 12);
#     156                 :   10846230 :     R32(a2, b2, c2, d2, e2, w0, 13);
#     157                 :   10846230 :     R31(e1, a1, b1, c1, d1, w5, 7);
#     158                 :   10846230 :     R32(e2, a2, b2, c2, d2, w4, 7);
#     159                 :   10846230 :     R31(d1, e1, a1, b1, c1, w12, 5);
#     160                 :   10846230 :     R32(d2, e2, a2, b2, c2, w13, 5);
#     161                 :            : 
#     162                 :   10846230 :     R41(c1, d1, e1, a1, b1, w1, 11);
#     163                 :   10846230 :     R42(c2, d2, e2, a2, b2, w8, 15);
#     164                 :   10846230 :     R41(b1, c1, d1, e1, a1, w9, 12);
#     165                 :   10846230 :     R42(b2, c2, d2, e2, a2, w6, 5);
#     166                 :   10846230 :     R41(a1, b1, c1, d1, e1, w11, 14);
#     167                 :   10846230 :     R42(a2, b2, c2, d2, e2, w4, 8);
#     168                 :   10846230 :     R41(e1, a1, b1, c1, d1, w10, 15);
#     169                 :   10846230 :     R42(e2, a2, b2, c2, d2, w1, 11);
#     170                 :   10846230 :     R41(d1, e1, a1, b1, c1, w0, 14);
#     171                 :   10846230 :     R42(d2, e2, a2, b2, c2, w3, 14);
#     172                 :   10846230 :     R41(c1, d1, e1, a1, b1, w8, 15);
#     173                 :   10846230 :     R42(c2, d2, e2, a2, b2, w11, 14);
#     174                 :   10846230 :     R41(b1, c1, d1, e1, a1, w12, 9);
#     175                 :   10846230 :     R42(b2, c2, d2, e2, a2, w15, 6);
#     176                 :   10846230 :     R41(a1, b1, c1, d1, e1, w4, 8);
#     177                 :   10846230 :     R42(a2, b2, c2, d2, e2, w0, 14);
#     178                 :   10846230 :     R41(e1, a1, b1, c1, d1, w13, 9);
#     179                 :   10846230 :     R42(e2, a2, b2, c2, d2, w5, 6);
#     180                 :   10846230 :     R41(d1, e1, a1, b1, c1, w3, 14);
#     181                 :   10846230 :     R42(d2, e2, a2, b2, c2, w12, 9);
#     182                 :   10846230 :     R41(c1, d1, e1, a1, b1, w7, 5);
#     183                 :   10846230 :     R42(c2, d2, e2, a2, b2, w2, 12);
#     184                 :   10846230 :     R41(b1, c1, d1, e1, a1, w15, 6);
#     185                 :   10846230 :     R42(b2, c2, d2, e2, a2, w13, 9);
#     186                 :   10846230 :     R41(a1, b1, c1, d1, e1, w14, 8);
#     187                 :   10846230 :     R42(a2, b2, c2, d2, e2, w9, 12);
#     188                 :   10846230 :     R41(e1, a1, b1, c1, d1, w5, 6);
#     189                 :   10846230 :     R42(e2, a2, b2, c2, d2, w7, 5);
#     190                 :   10846230 :     R41(d1, e1, a1, b1, c1, w6, 5);
#     191                 :   10846230 :     R42(d2, e2, a2, b2, c2, w10, 15);
#     192                 :   10846230 :     R41(c1, d1, e1, a1, b1, w2, 12);
#     193                 :   10846230 :     R42(c2, d2, e2, a2, b2, w14, 8);
#     194                 :            : 
#     195                 :   10846230 :     R51(b1, c1, d1, e1, a1, w4, 9);
#     196                 :   10846230 :     R52(b2, c2, d2, e2, a2, w12, 8);
#     197                 :   10846230 :     R51(a1, b1, c1, d1, e1, w0, 15);
#     198                 :   10846230 :     R52(a2, b2, c2, d2, e2, w15, 5);
#     199                 :   10846230 :     R51(e1, a1, b1, c1, d1, w5, 5);
#     200                 :   10846230 :     R52(e2, a2, b2, c2, d2, w10, 12);
#     201                 :   10846230 :     R51(d1, e1, a1, b1, c1, w9, 11);
#     202                 :   10846230 :     R52(d2, e2, a2, b2, c2, w4, 9);
#     203                 :   10846230 :     R51(c1, d1, e1, a1, b1, w7, 6);
#     204                 :   10846230 :     R52(c2, d2, e2, a2, b2, w1, 12);
#     205                 :   10846230 :     R51(b1, c1, d1, e1, a1, w12, 8);
#     206                 :   10846230 :     R52(b2, c2, d2, e2, a2, w5, 5);
#     207                 :   10846230 :     R51(a1, b1, c1, d1, e1, w2, 13);
#     208                 :   10846230 :     R52(a2, b2, c2, d2, e2, w8, 14);
#     209                 :   10846230 :     R51(e1, a1, b1, c1, d1, w10, 12);
#     210                 :   10846230 :     R52(e2, a2, b2, c2, d2, w7, 6);
#     211                 :   10846230 :     R51(d1, e1, a1, b1, c1, w14, 5);
#     212                 :   10846230 :     R52(d2, e2, a2, b2, c2, w6, 8);
#     213                 :   10846230 :     R51(c1, d1, e1, a1, b1, w1, 12);
#     214                 :   10846230 :     R52(c2, d2, e2, a2, b2, w2, 13);
#     215                 :   10846230 :     R51(b1, c1, d1, e1, a1, w3, 13);
#     216                 :   10846230 :     R52(b2, c2, d2, e2, a2, w13, 6);
#     217                 :   10846230 :     R51(a1, b1, c1, d1, e1, w8, 14);
#     218                 :   10846230 :     R52(a2, b2, c2, d2, e2, w14, 5);
#     219                 :   10846230 :     R51(e1, a1, b1, c1, d1, w11, 11);
#     220                 :   10846230 :     R52(e2, a2, b2, c2, d2, w0, 15);
#     221                 :   10846230 :     R51(d1, e1, a1, b1, c1, w6, 8);
#     222                 :   10846230 :     R52(d2, e2, a2, b2, c2, w3, 13);
#     223                 :   10846230 :     R51(c1, d1, e1, a1, b1, w15, 5);
#     224                 :   10846230 :     R52(c2, d2, e2, a2, b2, w9, 11);
#     225                 :   10846230 :     R51(b1, c1, d1, e1, a1, w13, 6);
#     226                 :   10846230 :     R52(b2, c2, d2, e2, a2, w11, 11);
#     227                 :            : 
#     228                 :   10846230 :     uint32_t t = s[0];
#     229                 :   10846230 :     s[0] = s[1] + c1 + d2;
#     230                 :   10846230 :     s[1] = s[2] + d1 + e2;
#     231                 :   10846230 :     s[2] = s[3] + e1 + a2;
#     232                 :   10846230 :     s[3] = s[4] + a1 + b2;
#     233                 :   10846230 :     s[4] = t + b1 + c2;
#     234                 :   10846230 : }
#     235                 :            : 
#     236                 :            : } // namespace ripemd160
#     237                 :            : 
#     238                 :            : } // namespace
#     239                 :            : 
#     240                 :            : ////// RIPEMD160
#     241                 :            : 
#     242                 :            : CRIPEMD160::CRIPEMD160() : bytes(0)
#     243                 :    8773468 : {
#     244                 :    8773468 :     ripemd160::Initialize(s);
#     245                 :    8773468 : }
#     246                 :            : 
#     247                 :            : CRIPEMD160& CRIPEMD160::Write(const unsigned char* data, size_t len)
#     248                 :   26349304 : {
#     249                 :   26349304 :     const unsigned char* end = data + len;
#     250                 :   26349304 :     size_t bufsize = bytes % 64;
#     251 [ +  + ][ +  + ]:   26349304 :     if (bufsize && bufsize + len >= 64) {
#     252                 :            :         // Fill the buffer, and process it.
#     253                 :    8787442 :         memcpy(buf + bufsize, data, 64 - bufsize);
#     254                 :    8787442 :         bytes += 64 - bufsize;
#     255                 :    8787442 :         data += 64 - bufsize;
#     256                 :    8787442 :         ripemd160::Transform(s, buf);
#     257                 :    8787442 :         bufsize = 0;
#     258                 :    8787442 :     }
#     259         [ +  + ]:   28408096 :     while (end - data >= 64) {
#     260                 :            :         // Process full chunks directly from the source.
#     261                 :    2058792 :         ripemd160::Transform(s, data);
#     262                 :    2058792 :         bytes += 64;
#     263                 :    2058792 :         data += 64;
#     264                 :    2058792 :     }
#     265         [ +  + ]:   26349304 :     if (end > data) {
#     266                 :            :         // Fill the buffer with what remains.
#     267                 :   17565356 :         memcpy(buf + bufsize, data, end - data);
#     268                 :   17565356 :         bytes += end - data;
#     269                 :   17565356 :     }
#     270                 :   26349304 :     return *this;
#     271                 :   26349304 : }
#     272                 :            : 
#     273                 :            : void CRIPEMD160::Finalize(unsigned char hash[OUTPUT_SIZE])
#     274                 :    8779758 : {
#     275                 :    8779758 :     static const unsigned char pad[64] = {0x80};
#     276                 :    8779758 :     unsigned char sizedesc[8];
#     277                 :    8779758 :     WriteLE64(sizedesc, bytes << 3);
#     278                 :    8779758 :     Write(pad, 1 + ((119 - (bytes % 64)) % 64));
#     279                 :    8779758 :     Write(sizedesc, 8);
#     280                 :    8779758 :     WriteLE32(hash, s[0]);
#     281                 :    8779758 :     WriteLE32(hash + 4, s[1]);
#     282                 :    8779758 :     WriteLE32(hash + 8, s[2]);
#     283                 :    8779758 :     WriteLE32(hash + 12, s[3]);
#     284                 :    8779758 :     WriteLE32(hash + 16, s[4]);
#     285                 :    8779758 : }
#     286                 :            : 
#     287                 :            : CRIPEMD160& CRIPEMD160::Reset()
#     288                 :          0 : {
#     289                 :          0 :     bytes = 0;
#     290                 :          0 :     ripemd160::Initialize(s);
#     291                 :          0 :     return *this;
#     292                 :          0 : }

Generated by: LCOV version 0-eol-96201-ge66f56f4af6a