mmmmh
This commit is contained in:
parent
82aee127b0
commit
a92b119549
99 changed files with 6922 additions and 5723 deletions
18
sha1.h
Normal file
18
sha1.h
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
#pragma once
|
||||
|
||||
#include "str.h"
|
||||
|
||||
typedef struct {
|
||||
uint32 digest[5];
|
||||
uint8 block[64];
|
||||
usize block_index;
|
||||
usize byte_count;
|
||||
} sha1_t;
|
||||
|
||||
typedef struct {
|
||||
uint32 digest[5];
|
||||
} sha1_result_t;
|
||||
|
||||
sha1_t sha1_init(void);
|
||||
sha1_result_t sha1(sha1_t *ctx, const void *buf, usize len);
|
||||
str_t sha1Str(arena_t *arena, sha1_t *ctx, const void *buf, usize len);
|
||||
Loading…
Add table
Add a link
Reference in a new issue