MCPcopy Create free account
hub / github.com/F-Stack/f-stack / blake2s_increment_counter

Function blake2s_increment_counter

freebsd/contrib/libb2/blake2s.c:104–111  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

102}
103
104static 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

Callers 2

blake2s_updateFunction · 0.70
blake2s_finalFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected