Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/zabbix/zabbix.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Veksler <Mihails.Vekslers@zabbix.com>2021-07-15 10:27:08 +0300
committerMichael Veksler <Mihails.Vekslers@zabbix.com>2021-07-15 10:27:08 +0300
commit304b7f27b4480ce0e96549d2b881d5ea68a95ef0 (patch)
tree92bc1e816c2bc419797a0df8ba308f4be28b89cd /include/sha256crypt.h
parentea9611700515db3110cb9ff5b79bf68786cf99fc (diff)
...G...... [ZBXNEXT-6688] refactored the sha256 calls
Diffstat (limited to 'include/sha256crypt.h')
-rw-r--r--include/sha256crypt.h15
1 files changed, 8 insertions, 7 deletions
diff --git a/include/sha256crypt.h b/include/sha256crypt.h
index 540e92dd25c..1f4caf17918 100644
--- a/include/sha256crypt.h
+++ b/include/sha256crypt.h
@@ -27,16 +27,17 @@
/* Structure to save state of computation between the single steps. */
typedef struct
{
- uint32_t H[8];
+ uint32_t H[8];
- uint32_t total[2];
- uint32_t buflen;
- char buffer[128]; /* NB: always correctly aligned for uint32_t. */
-} sha256_ctx;
+ uint32_t total[2];
+ uint32_t buflen;
+ char buffer[128]; /* NB: always correctly aligned for uint32_t. */
+}
+sha256_ctx;
-void zbx_sha256_init_ctx (sha256_ctx *ctx);
+void zbx_sha256_init(sha256_ctx *ctx);
void zbx_sha256_process_bytes(const void *buffer, size_t len, sha256_ctx *ctx);
-void *zbx_sha256_finish_ctx (sha256_ctx *ctx, void *resbuf);
+void *zbx_sha256_finish(sha256_ctx *ctx, void *resbuf);
void zbx_sha256_hash(const char *in, char *out);
#endif /* ZABBIX_SHA256CRYPT_H */