Root/
| Source at commit 45f14d214ab31fe28644ef8f61552a3e25330ccf created 11 years 17 days ago. By Werner Almesberger, tornado/fw/tornado.c: experimental code to log ADC samples to memory card | |
|---|---|
| 1 | /* |
| 2 | * fw/hash.h - Secure hash |
| 3 | * |
| 4 | * Written 2012 by Werner Almesberger |
| 5 | * Copyright 2012 Werner Almesberger |
| 6 | * |
| 7 | * This program is free software; you can redistribute it and/or modify |
| 8 | * it under the terms of the GNU General Public License as published by |
| 9 | * the Free Software Foundation; either version 2 of the License, or |
| 10 | * (at your option) any later version. |
| 11 | */ |
| 12 | |
| 13 | #ifndef HASH_H |
| 14 | #define HASH_H |
| 15 | |
| 16 | #include <stdbool.h> |
| 17 | #include <stdint.h> |
| 18 | |
| 19 | |
| 20 | void hash_init(void); |
| 21 | void hash_merge(const uint8_t *buf, uint8_t len); |
| 22 | void hash_merge_progmem(const uint8_t *buf, uint8_t len); |
| 23 | void hash_end(void); |
| 24 | bool hash_eq(const uint8_t *buf, uint8_t len, uint8_t off); |
| 25 | void hash_cp(uint8_t *buf, uint8_t len, uint8_t off); |
| 26 | |
| 27 | #endif /* !HASH_H */ |
| 28 | |
Branches:
master
tornado-v1
