-
Notifications
You must be signed in to change notification settings - Fork 62
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #277 from openpassport-org/fix/zkemail-rsa
Fix/zkemail rsa
- Loading branch information
Showing
36 changed files
with
2,037 additions
and
251 deletions.
There are no files selected for viewing
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 2 additions & 3 deletions
5
circuits/circuits/tests/utils/rsa/test_rsa_sha1_65537_2048.circom
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,13 @@ | ||
pragma circom 2.1.9; | ||
|
||
include "../../../utils/circomlib/signature/rsa/verifyRsaPkcs1v1_5.circom"; | ||
include "../../../utils/circomlib/signature/rsa/verifyRsa65537Pkcs1v1_5.circom"; | ||
|
||
template VerifyRsaPkcs1v1_5Tester() { | ||
signal input signature[32]; | ||
signal input modulus[32]; | ||
signal input message[32]; | ||
|
||
|
||
VerifyRsaPkcs1v1_5(3, 64, 32, 65537, 160)(signature, modulus, message); | ||
VerifyRsa65537Pkcs1v1_5(64, 32, 160)(signature, modulus, message); | ||
} | ||
|
||
component main = VerifyRsaPkcs1v1_5Tester(); |
5 changes: 2 additions & 3 deletions
5
circuits/circuits/tests/utils/rsa/test_rsa_sha256_3_2048.circom
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,13 @@ | ||
pragma circom 2.1.9; | ||
|
||
include "../../../utils/circomlib/signature/rsa/verifyRsaPkcs1v1_5.circom"; | ||
include "../../../utils/circomlib/signature/rsa/verifyRsa3Pkcs1v1_5.circom"; | ||
|
||
template VerifyRsaPkcs1v1_5Tester() { | ||
signal input signature[32]; | ||
signal input modulus[32]; | ||
signal input message[32]; | ||
|
||
|
||
VerifyRsaPkcs1v1_5(13, 64, 32, 3, 256)(signature, modulus, message); | ||
VerifyRsa3Pkcs1v1_5(64, 32, 256)(signature, modulus, message); | ||
} | ||
|
||
component main = VerifyRsaPkcs1v1_5Tester(); |
4 changes: 2 additions & 2 deletions
4
circuits/circuits/tests/utils/rsa/test_rsa_sha256_65537_2048.circom
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,14 @@ | ||
pragma circom 2.1.9; | ||
|
||
include "../../../utils/circomlib/signature/rsa/verifyRsaPkcs1v1_5.circom"; | ||
include "../../../utils/circomlib/signature/rsa/verifyRsa65537Pkcs1v1_5.circom"; | ||
|
||
template VerifyRsaPkcs1v1_5Tester() { | ||
signal input signature[32]; | ||
signal input modulus[32]; | ||
signal input message[32]; | ||
|
||
|
||
VerifyRsaPkcs1v1_5(1, 64, 32, 65537, 256)(signature, modulus, message); | ||
VerifyRsa65537Pkcs1v1_5(64, 32, 256)(signature, modulus, message); | ||
} | ||
|
||
component main = VerifyRsaPkcs1v1_5Tester(); |
5 changes: 2 additions & 3 deletions
5
circuits/circuits/tests/utils/rsa/test_rsa_sha256_65537_3072.circom
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,13 @@ | ||
pragma circom 2.1.9; | ||
|
||
include "../../../utils/circomlib/signature/rsa/verifyRsaPkcs1v1_5.circom"; | ||
include "../../../utils/circomlib/signature/rsa/verifyRsa65537Pkcs1v1_5.circom"; | ||
|
||
template VerifyRsaPkcs1v1_5Tester() { | ||
signal input signature[32]; | ||
signal input modulus[32]; | ||
signal input message[32]; | ||
|
||
|
||
VerifyRsaPkcs1v1_5(14, 96, 32, 65537, 256)(signature, modulus, message); | ||
VerifyRsa65537Pkcs1v1_5(96, 32, 256)(signature, modulus, message); | ||
} | ||
|
||
component main = VerifyRsaPkcs1v1_5Tester(); |
11 changes: 5 additions & 6 deletions
11
circuits/circuits/tests/utils/rsa/test_rsa_sha256_65537_4096.circom
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,13 @@ | ||
pragma circom 2.1.9; | ||
|
||
include "../../../utils/circomlib/signature/rsa/verifyRsaPkcs1v1_5.circom"; | ||
include "../../../utils/circomlib/signature/rsa/verifyRsa65537Pkcs1v1_5.circom"; | ||
|
||
template VerifyRsaPkcs1v1_5Tester() { | ||
signal input signature[64]; | ||
signal input modulus[64]; | ||
signal input message[64]; | ||
signal input signature[35]; | ||
signal input modulus[35]; | ||
signal input message[35]; | ||
|
||
|
||
VerifyRsaPkcs1v1_5(10, 64, 64, 65537, 256)(signature, modulus, message); | ||
VerifyRsa65537Pkcs1v1_5(120, 35, 256)(signature, modulus, message); | ||
} | ||
|
||
component main = VerifyRsaPkcs1v1_5Tester(); |
11 changes: 5 additions & 6 deletions
11
circuits/circuits/tests/utils/rsa/test_rsa_sha512_65537_4096.circom
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,13 @@ | ||
pragma circom 2.1.9; | ||
|
||
include "../../../utils/circomlib/signature/rsa/verifyRsaPkcs1v1_5.circom"; | ||
include "../../../utils/circomlib/signature/rsa/verifyRsa65537Pkcs1v1_5.circom"; | ||
|
||
template VerifyRsaPkcs1v1_5Tester() { | ||
signal input signature[64]; | ||
signal input modulus[64]; | ||
signal input message[64]; | ||
signal input signature[35]; | ||
signal input modulus[35]; | ||
signal input message[35]; | ||
|
||
|
||
VerifyRsaPkcs1v1_5(15, 64, 64, 65537, 512)(signature, modulus, message); | ||
VerifyRsa65537Pkcs1v1_5(120, 35, 512)(signature, modulus, message); | ||
} | ||
|
||
component main = VerifyRsaPkcs1v1_5Tester(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.