mirror of
https://github.com/selfxyz/self.git
synced 2026-04-05 03:00:53 -04:00
Merge pull request #316 from zk-passport/feat/passport-circuits
remove sha artefacts
This commit is contained in:
@@ -1,16 +0,0 @@
|
||||
pragma circom 2.1.9;
|
||||
include "../../utils/shaBytes/shaBytesStatic.circom";
|
||||
|
||||
template Sha384Tester() {
|
||||
signal input in_padded[93];
|
||||
signal input expected[384];
|
||||
signal output hash[384];
|
||||
|
||||
hash <== ShaBytesStatic(384, 93)(in_padded);
|
||||
|
||||
for (var i = 0; i < 384; i++) {
|
||||
assert(hash[i] == expected[i]);
|
||||
}
|
||||
}
|
||||
|
||||
component main = Sha384Tester();
|
||||
@@ -1,17 +0,0 @@
|
||||
pragma circom 2.1.9;
|
||||
include "../../utils/shaBytes/shaBytesDynamic.circom";
|
||||
|
||||
template Sha384Tester() {
|
||||
signal input in_padded[192];
|
||||
signal input in_len_padded_bytes;
|
||||
signal input expected[384];
|
||||
signal output hash[384];
|
||||
|
||||
hash <== ShaBytesDynamic(384, 192)(in_padded, in_len_padded_bytes);
|
||||
|
||||
for (var i = 0; i < 384; i++) {
|
||||
assert(hash[i] == expected[i]);
|
||||
}
|
||||
}
|
||||
|
||||
component main = Sha384Tester();
|
||||
@@ -1,16 +0,0 @@
|
||||
pragma circom 2.1.9;
|
||||
include "../../utils/shaBytes/shaBytesStatic.circom";
|
||||
|
||||
template Sha512Tester() {
|
||||
signal input in_padded[93];
|
||||
signal input expected[512];
|
||||
signal output hash[512];
|
||||
|
||||
hash <== ShaBytesStatic(512, 93)(in_padded);
|
||||
|
||||
for (var i = 0; i < 512; i++) {
|
||||
assert(hash[i] == expected[i]);
|
||||
}
|
||||
}
|
||||
|
||||
component main = Sha512Tester();
|
||||
@@ -1,17 +0,0 @@
|
||||
pragma circom 2.1.9;
|
||||
include "../../utils/shaBytes/shaBytesDynamic.circom";
|
||||
|
||||
template Sha512Tester() {
|
||||
signal input in_padded[192];
|
||||
signal input in_len_padded_bytes;
|
||||
signal input expected[512];
|
||||
signal output hash[512];
|
||||
|
||||
hash <== ShaBytesDynamic(512, 192)(in_padded, in_len_padded_bytes);
|
||||
|
||||
for (var i = 0; i < 512; i++) {
|
||||
assert(hash[i] == expected[i]);
|
||||
}
|
||||
}
|
||||
|
||||
component main = Sha512Tester();
|
||||
Reference in New Issue
Block a user