OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
refs:leftover_offset
(Results
1 - 4
of
4
) sorted by null
/external/epid-sdk/epid/member/tiny/math/
sha256.h
90
size_t
leftover_offset
;
member in struct:sha256_state
sha512.h
39
unsigned int
leftover_offset
;
member in struct:sha512_state
/external/epid-sdk/epid/member/tiny/math/src/
sha512.c
37
s->
leftover_offset
= 0;
44
s->leftover[s->
leftover_offset
++] = *(tmp_data++);
45
if (s->
leftover_offset
>= SHA512_BLOCK_SIZE) {
47
s->
leftover_offset
= 0;
56
s->bits_hashed_low += (s->
leftover_offset
<< 3);
58
s->leftover[s->
leftover_offset
++] = 0x80;
60
if (s->
leftover_offset
> (sizeof(s->leftover) - 16)) {
62
(void)memset(s->leftover + s->
leftover_offset
, 0x00,
63
sizeof(s->leftover) - s->
leftover_offset
);
65
s->
leftover_offset
= 0
[
all
...]
sha256.c
75
s->leftover[s->
leftover_offset
++] = *(data++);
76
if (s->
leftover_offset
>= SHA256_BLOCK_SIZE) {
78
s->
leftover_offset
= 0;
87
s->bits_hashed += (s->
leftover_offset
<< 3);
89
s->leftover[s->
leftover_offset
++] = 0x80; /* always room for one byte */
90
if (s->
leftover_offset
> (sizeof(s->leftover) - 8)) {
92
(void)memset(s->leftover + s->
leftover_offset
, 0x00,
93
sizeof(s->leftover) - s->
leftover_offset
);
95
s->
leftover_offset
= 0;
99
(void)memset(s->leftover + s->
leftover_offset
, 0x00
[
all
...]
Completed in 575 milliseconds