Go to the source code of this file.
|
void | SHA256_Init (SHA256_CTX *) |
|
void | SHA256_Update (SHA256_CTX *, const sha2_byte *, size_t) |
|
void | SHA256_Final (sha2_byte[SHA256_DIGEST_LENGTH], SHA256_CTX *) |
|
char * | SHA256_End (SHA256_CTX *, char[SHA256_DIGEST_STRING_LENGTH]) |
|
char * | SHA256_Data (const sha2_byte *, size_t, char[SHA256_DIGEST_STRING_LENGTH]) |
|
void | SHA384_Init (SHA384_CTX *) |
|
void | SHA384_Update (SHA384_CTX *, const sha2_byte *, size_t) |
|
void | SHA384_Final (sha2_byte[SHA384_DIGEST_LENGTH], SHA384_CTX *) |
|
char * | SHA384_End (SHA384_CTX *, char[SHA384_DIGEST_STRING_LENGTH]) |
|
char * | SHA384_Data (const sha2_byte *, size_t, char[SHA384_DIGEST_STRING_LENGTH]) |
|
void | SHA512_Init (SHA512_CTX *) |
|
void | SHA512_Update (SHA512_CTX *, const sha2_byte *, size_t) |
|
void | SHA512_Final (sha2_byte[SHA512_DIGEST_LENGTH], SHA512_CTX *) |
|
char * | SHA512_End (SHA512_CTX *, char[SHA512_DIGEST_STRING_LENGTH]) |
|
char * | SHA512_Data (const sha2_byte *, size_t, char[SHA512_DIGEST_STRING_LENGTH]) |
|
◆ SHA256_BLOCK_LENGTH
#define SHA256_BLOCK_LENGTH 64 |
◆ SHA256_DIGEST_LENGTH
#define SHA256_DIGEST_LENGTH 32 |
◆ SHA256_DIGEST_STRING_LENGTH
◆ SHA384_BLOCK_LENGTH
#define SHA384_BLOCK_LENGTH 128 |
◆ SHA384_DIGEST_LENGTH
#define SHA384_DIGEST_LENGTH 48 |
◆ SHA384_DIGEST_STRING_LENGTH
◆ SHA512_BLOCK_LENGTH
#define SHA512_BLOCK_LENGTH 128 |
◆ SHA512_DIGEST_LENGTH
#define SHA512_DIGEST_LENGTH 64 |
◆ SHA512_DIGEST_STRING_LENGTH
◆ SHA256_CTX
◆ sha2_byte
◆ sha2_word32
◆ sha2_word64
◆ SHA384_CTX
◆ SHA512_CTX
◆ SHA256_Data()
Definition at line 593 of file sha2.c.
593 {
595
599}
GLint GLenum GLsizei GLsizei GLsizei GLint GLsizei const GLvoid * data
void SHA256_Init(SHA256_CTX *context)
void SHA256_Update(SHA256_CTX *context, const sha2_byte *data, size_t len)
char * SHA256_End(SHA256_CTX *context, char buffer[])
◆ SHA256_End()
◆ SHA256_Final()
◆ SHA256_Init()
Definition at line 275 of file sha2.c.
275 {
277 return;
278 }
282}
static const sha2_word32 sha256_initial_hash_value[8]
#define MEMSET_BZERO(p, l)
#define MEMCPY_BCOPY(d, s, l)
#define SHA256_DIGEST_LENGTH
#define SHA256_BLOCK_LENGTH
Referenced by init_hash_impl(), and SHA256_Data().
◆ SHA256_Update()
Definition at line 459 of file sha2.c.
459 {
460 unsigned int freespace, usedspace;
461
463
464 return;
465 }
466
467
469
471 if (usedspace > 0) {
472
474
475 if (
len >= freespace) {
476
478 context->bitcount += freespace << 3;
482 } else {
483
486
487 usedspace = freespace = 0;
488 return;
489 }
490 }
492
497 }
499
502 }
503
504 usedspace = freespace = 0;
505}
void SHA256_Transform(SHA256_CTX *, const sha2_word32 *)
Referenced by SHA256_Data(), and update_hash_impl().
◆ SHA384_Data()
Definition at line 997 of file sha2.c.
997 {
999
1003}
char * SHA384_End(SHA384_CTX *context, char buffer[])
void SHA384_Init(SHA384_CTX *context)
void SHA384_Update(SHA384_CTX *context, const sha2_byte *data, size_t len)
◆ SHA384_End()
◆ SHA384_Final()
◆ SHA384_Init()
Definition at line 932 of file sha2.c.
932 {
934 return;
935 }
939}
static const sha2_word64 sha384_initial_hash_value[8]
#define SHA512_DIGEST_LENGTH
#define SHA384_BLOCK_LENGTH
Referenced by init_hash_impl(), and SHA384_Data().
◆ SHA384_Update()
◆ SHA512_Data()
Definition at line 922 of file sha2.c.
922 {
924
928}
char * SHA512_End(SHA512_CTX *context, char buffer[])
void SHA512_Init(SHA512_CTX *context)
◆ SHA512_End()
◆ SHA512_Final()
◆ SHA512_Init()
Definition at line 603 of file sha2.c.
603 {
605 return;
606 }
610}
static const sha2_word64 sha512_initial_hash_value[8]
#define SHA512_BLOCK_LENGTH
Referenced by init_hash_impl(), and SHA512_Data().
◆ SHA512_Update()
Definition at line 781 of file sha2.c.
781 {
782 unsigned int freespace, usedspace;
783
785
786 return;
787 }
788
789
791
793 if (usedspace > 0) {
794
796
797 if (
len >= freespace) {
798
804 } else {
805
808
809 usedspace = freespace = 0;
810 return;
811 }
812 }
814
819 }
821
824 }
825
826 usedspace = freespace = 0;
827}
void SHA512_Transform(SHA512_CTX *, const sha2_word64 *)
Referenced by SHA384_Update(), SHA512_Data(), and update_hash_impl().