blob: a55523533216e329c4f0d0f87a4a5601e2e79527 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
# RSA-KEM tests vectors from ISO-18033-2
# http://www.shoup.net/iso/std4.pdf
# Test C.6.2
E = 65537
P = 74100103850091296168511028051948833436338123529747970640732238422269665602829
Q = 79461607023043824134896992211543210236933205105414344240218914846895267687977
R = 032E45326FA859A72EC235ACFF929B15D1372E30B207255F0611B8F785D764374152E0AC009E509E7BA30CD2F1778E113B64E135CF4E2292C75EFE5288EDFDA4
C0 = 4603E5324CAB9CEF8365C817052D954D44447B1667099EDC69942D32CD594E4FFCF268AE3836E2C35744AAA53AE201FE499806B67DEDAA26BF72ECBD117A6FC0
KDF = KDF2(SHA-1)
K = 0E6A26EB7B956CCB8B3BDC1CA975BC57C3989E8FBAD31A224655D800C46954840F
# Test C.6.4
E = 65537
P = 74100103850091296168511028051948833436338123529747970640732238422269665602829
Q = 79461607023043824134896992211543210236933205105414344240218914846895267687977
R = 032E45326FA859A72EC235ACFF929B15D1372E30B207255F0611B8F785D764374152E0AC009E509E7BA30CD2F1778E113B64E135CF4E2292C75EFE5288EDFDA4
C0 = 4603E5324CAB9CEF8365C817052D954D44447B1667099EDC69942D32CD594E4FFCF268AE3836E2C35744AAA53AE201FE499806B67DEDAA26BF72ECBD117A6FC0
KDF = KDF2(SHA-256)
K = 10a2403db42a8743cb989de86e668d168cbe6046
|