mirror of
https://github.com/YosysHQ/yosys
synced 2025-06-06 14:13:23 +00:00
Replaced sha1 implementation
This commit is contained in:
parent
1e224506be
commit
bd74ed7da4
8 changed files with 334 additions and 283 deletions
|
@ -107,12 +107,7 @@ struct OptShareWorker
|
|||
hash_string += "\n";
|
||||
}
|
||||
|
||||
unsigned char hash[20];
|
||||
char hash_hex_string[41];
|
||||
sha1::calc(hash_string.c_str(), hash_string.size(), hash);
|
||||
sha1::toHexString(hash, hash_hex_string);
|
||||
cell_hash_cache[cell] = hash_hex_string;
|
||||
|
||||
cell_hash_cache[cell] = sha1(hash_string);
|
||||
return cell_hash_cache[cell];
|
||||
}
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue