| 102 | } |
| 103 | |
| 104 | static inline int blake2s_increment_counter( blake2s_state *S, const uint32_t inc ) |
| 105 | { |
| 106 | uint64_t t = ( ( uint64_t )S->t[1] << 32 ) | S->t[0]; |
| 107 | t += inc; |
| 108 | S->t[0] = ( uint32_t )( t >> 0 ); |
| 109 | S->t[1] = ( uint32_t )( t >> 32 ); |
| 110 | return 0; |
| 111 | } |
| 112 | |
| 113 | |
| 114 | // Parameter-related functions |
no outgoing calls
no test coverage detected