diff options
author | Jack Lloyd <[email protected]> | 2016-03-16 18:42:49 -0400 |
---|---|---|
committer | Jack Lloyd <[email protected]> | 2016-03-16 18:42:49 -0400 |
commit | b5d8783fccbd4b6686708fd4f2f84eaada3e8fed (patch) | |
tree | 75e6615a0c972da54f29593dd19f468b3a1fe0c3 /src/tests/data | |
parent | f209329d885310fb510742317a20d1f51099b29e (diff) |
Use rejection sampling in BigInt::random_integer
Avoids the test vector contortions in RSA-KEM
Diffstat (limited to 'src/tests/data')
-rw-r--r-- | src/tests/data/pubkey/rsa_kem.vec | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/tests/data/pubkey/rsa_kem.vec b/src/tests/data/pubkey/rsa_kem.vec index 6fb76fcfe..a55523533 100644 --- a/src/tests/data/pubkey/rsa_kem.vec +++ b/src/tests/data/pubkey/rsa_kem.vec @@ -2,14 +2,11 @@ # RSA-KEM tests vectors from ISO-18033-2 # http://www.shoup.net/iso/std4.pdf -# R values here are -1 from the actual desired value to account for -# some logic in random_integer wrt the bounds - # Test C.6.2 E = 65537 P = 74100103850091296168511028051948833436338123529747970640732238422269665602829 Q = 79461607023043824134896992211543210236933205105414344240218914846895267687977 -R = 032E45326FA859A72EC235ACFF929B15D1372E30B207255F0611B8F785D764374152E0AC009E509E7BA30CD2F1778E113B64E135CF4E2292C75EFE5288EDFDA3 +R = 032E45326FA859A72EC235ACFF929B15D1372E30B207255F0611B8F785D764374152E0AC009E509E7BA30CD2F1778E113B64E135CF4E2292C75EFE5288EDFDA4 C0 = 4603E5324CAB9CEF8365C817052D954D44447B1667099EDC69942D32CD594E4FFCF268AE3836E2C35744AAA53AE201FE499806B67DEDAA26BF72ECBD117A6FC0 KDF = KDF2(SHA-1) K = 0E6A26EB7B956CCB8B3BDC1CA975BC57C3989E8FBAD31A224655D800C46954840F @@ -19,7 +16,7 @@ K = 0E6A26EB7B956CCB8B3BDC1CA975BC57C3989E8FBAD31A224655D800C46954840F E = 65537 P = 74100103850091296168511028051948833436338123529747970640732238422269665602829 Q = 79461607023043824134896992211543210236933205105414344240218914846895267687977 -R = 032E45326FA859A72EC235ACFF929B15D1372E30B207255F0611B8F785D764374152E0AC009E509E7BA30CD2F1778E113B64E135CF4E2292C75EFE5288EDFDA3 +R = 032E45326FA859A72EC235ACFF929B15D1372E30B207255F0611B8F785D764374152E0AC009E509E7BA30CD2F1778E113B64E135CF4E2292C75EFE5288EDFDA4 C0 = 4603E5324CAB9CEF8365C817052D954D44447B1667099EDC69942D32CD594E4FFCF268AE3836E2C35744AAA53AE201FE499806B67DEDAA26BF72ECBD117A6FC0 KDF = KDF2(SHA-256) K = 10a2403db42a8743cb989de86e668d168cbe6046 |