Mercurial > repos > blastem
comparison hash.h @ 1305:5ceb316c479a
Allow games to be specified in ROM DB via sha1 instead of product ID. Added a new ROM DB memory map device type fixed for emulating simple fixed value copy protection registers. Used those two features to support Ya Se Chuan Shuo via a ROM DB entry.
author | Michael Pavone <pavone@retrodev.com> |
---|---|
date | Wed, 29 Mar 2017 00:29:44 -0700 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
1304:5b90d7669eee | 1305:5ceb316c479a |
---|---|
1 #ifndef HASH_H_ | |
2 #define HASH_H_ | |
3 | |
4 #include <stdint.h> | |
5 | |
6 //NOTE: This is only intended for use in file identification | |
7 //Please do not use this in a cryptographic setting as no attempts have been | |
8 //made at avoiding side channel attacks | |
9 | |
10 void sha1(uint8_t *data, uint64_t size, uint8_t *out); | |
11 | |
12 #endif //HASH_H_ |