top
|
up
|
prev
|
next
Sha1 Class
Definition at line
14
of
Sha1.hpp
Constructors
Sha1
()
Member Functions
std::string
GetDigest
()
void
Process
(uint8_t x)
void
Process
(
void
* buf,
int
count)
void
Process
(
void
* begin,
void
* end)
void
ProcessBlock
()
void
ProcessByte
(uint8_t x)
void
Reset
()
Member Variables
uint64_t
bitCount
uint8_t
byteIndex
Constructor Details
Sha1 Constructor
soulng::util::Sha1::Sha1()
Definition at line
16
of
Sha1.cpp
:
17
{
18
Reset
(
)
;
19
}
Declaration at line
17
of
Sha1.hpp
Member Function Details
GetDigest Member Function
std::string soulng::util::Sha1::GetDigest()
Definition at line
43
of
Sha1.cpp
Declaration at line
30
of
Sha1.hpp
Calls:
soulng::util::Sha1::ProcessByte
Process Member Function
void
soulng::util::Sha1::Process(uint8_t x)
Definition at line
19
of
Sha1.hpp
:
20
{
21
ProcessByte
(
x
)
;
22
bitCount
=
bitCount
+
8u
;
23
}
Calls:
soulng::util::Sha1::ProcessByte
Called by:
soulng::util::Sha1::Process
Process Member Function
void
soulng::util::Sha1::Process(
void
* buf,
int
count)
Definition at line
25
of
Sha1.hpp
:
26
{
27
uint8_t
*
b
=
static_cast
<
uint8_t
*
>
(
buf
)
;
28
Process
(
b
,
b
+
count
)
;
29
}
Process Member Function
void
soulng::util::Sha1::Process(
void
* begin,
void
* end)
Definition at line
32
of
Sha1.cpp
:
33
{
34
uint8_t
*
b
=
static_cast
<
uint8_t
*
>
(
begin
)
;
35
uint8_t
*
e
=
static_cast
<
uint8_t
*
>
(
end
)
;
36
while
(
b
!=
e
)
37
{
38
Process
(
*
b
)
;
39
++
b
;
40
}
41
}
Declaration at line
24
of
Sha1.hpp
Calls:
soulng::util::Sha1::Process
ProcessBlock Member Function
void
soulng::util::Sha1::ProcessBlock()
Definition at line
80
of
Sha1.cpp
Declaration at line
41
of
Sha1.hpp
Called by:
soulng::util::Sha1::ProcessByte
ProcessByte Member Function
void
soulng::util::Sha1::ProcessByte(uint8_t x)
Definition at line
32
of
Sha1.hpp
:
33
{
34
block
[
byteIndex
++
]
=
x
;
35
if
(
byteIndex
==
64u
)
36
{
37
byteIndex
=
0u
;
38
ProcessBlock
(
)
;
39
}
40
}
Calls:
soulng::util::Sha1::ProcessBlock
Called by:
soulng::util::Sha1::GetDigest
,
soulng::util::Sha1::Process
Reset Member Function
void
soulng::util::Sha1::Reset()
Definition at line
21
of
Sha1.cpp
:
22
{
23
digest
[
0
]
=
0x67452301u
;
24
digest
[
1
]
=
0xEFCDAB89u
;
25
digest
[
2
]
=
0x98BADCFEu
;
26
digest
[
3
]
=
0x10325476u
;
27
digest
[
4
]
=
0xC3D2E1F0u
;
28
byteIndex
=
0u
;
29
bitCount
=
0u
;
30
}
Declaration at line
18
of
Sha1.hpp
top
|
up
|
prev
|
next