Home
last modified time | relevance | path

Searched refs:SHA256_CTX (Results 1 – 5 of 5) sorted by relevance

/net-tools-3.6.0/tinydtls-0.8.2/sha2/
Dsha2.h101 } SHA256_CTX; typedef
114 } SHA256_CTX;
131 void SHA256_Init(SHA256_CTX *);
132 void SHA256_Update(SHA256_CTX*, const uint8_t*, size_t);
133 void SHA256_Final(uint8_t[SHA256_DIGEST_LENGTH], SHA256_CTX*);
134 char* SHA256_End(SHA256_CTX*, char[SHA256_DIGEST_STRING_LENGTH]);
157 void SHA256_Init(SHA256_CTX *);
158 void SHA256_Update(SHA256_CTX*, const u_int8_t*, size_t);
159 void SHA256_Final(u_int8_t[SHA256_DIGEST_LENGTH], SHA256_CTX*);
160 char* SHA256_End(SHA256_CTX*, char[SHA256_DIGEST_STRING_LENGTH]);
Dsha2.c249 void SHA256_Transform(SHA256_CTX*, const sha2_word32*);
370 void SHA256_Init(SHA256_CTX* context) { in SHA256_Init()
371 if (context == (SHA256_CTX*)0) { in SHA256_Init()
416 void SHA256_Transform(SHA256_CTX* context, const sha2_word32* data) { in SHA256_Transform()
474 void SHA256_Transform(SHA256_CTX* context, const sha2_word32* data) { in SHA256_Transform()
554 void SHA256_Update(SHA256_CTX* context, const sha2_byte *data, size_t len) { in SHA256_Update()
563 assert(context != (SHA256_CTX*)0 && data != (sha2_byte*)0); in SHA256_Update()
602 void SHA256_Final(sha2_byte digest[], SHA256_CTX* context) { in SHA256_Final()
607 assert(context != (SHA256_CTX*)0); in SHA256_Final()
665 char *SHA256_End(SHA256_CTX* context, char buffer[]) { in SHA256_End()
[all …]
Dsha2prog.c55 SHA256_CTX ctx256; in main()
Dsha2speed.c63 SHA256_CTX c256; in main()
/net-tools-3.6.0/tinydtls-0.8.2/
Dhmac.h38 typedef SHA256_CTX dtls_hash_ctx;
40 #define DTLS_HASH_CTX_SIZE sizeof(SHA256_CTX)
44 SHA256_Init((SHA256_CTX *)ctx); in dtls_hash_init()
49 SHA256_Update((SHA256_CTX *)ctx, input, len); in dtls_hash_update()
54 SHA256_Final(buf, (SHA256_CTX *)ctx); in dtls_hash_finalize()