aboutsummaryrefslogtreecommitdiffstats
path: root/src/tests/data
diff options
context:
space:
mode:
authorlloyd <lloyd@randombit.net>2014-10-10 22:46:08 +0000
committerlloyd <lloyd@randombit.net>2014-10-10 22:46:08 +0000
commitb5e4c9f963399b4dcb90ffa523cf5185334dd03f (patch)
tree7698d55ad8a51f341bae9572bf6b35f34774062f /src/tests/data
parent5e54dfe49ceb6ce5a9891477d190833399a0bda0 (diff)
Add some secp256k1 KATs and a randomized ECC test suggested in
http://crypto.stackexchange.com/questions/784
Diffstat (limited to 'src/tests/data')
-rw-r--r--src/tests/data/pubkey/ecc.vec21
1 files changed, 21 insertions, 0 deletions
diff --git a/src/tests/data/pubkey/ecc.vec b/src/tests/data/pubkey/ecc.vec
new file mode 100644
index 000000000..887d27ba5
--- /dev/null
+++ b/src/tests/data/pubkey/ecc.vec
@@ -0,0 +1,21 @@
+
+Group = secp256k1
+m = 0xAA5E28D6A97A2479A65527F7290311A3624D4CC0FA1578598EE3C2613BF99522
+X = 0x34F9460F0E4F08393D192B3C5133A6BA099AA0AD9FD54EBCCFACDFA239FF49C6
+Y = 0x0B71EA9BD730FD8923F6D25A7A91E7DD7728A960686CB5A901BB419E0F2CA232
+
+m = 0x7E2B897B8CEBC6361663AD410835639826D590F393D90A9538881735256DFAE3
+X = 0xD74BF844B0862475103D96A611CF2D898447E288D34B360BC885CB8CE7C00575
+Y = 0x131C670D414C4546B88AC3FF664611B1C38CEB1C21D76369D7A7A0969D61D97D
+
+m = 0x6461E6DF0FE7DFD05329F41BF771B86578143D4DD1F7866FB4CA7E97C5FA945D
+X = 0xE8AECC370AEDD953483719A116711963CE201AC3EB21D3F3257BB48668C6A72F
+Y = 0xC25CAF2F0EBA1DDB2F0F3F47866299EF907867B7D27E95B3873BF98397B24EE1
+
+m = 0x376A3A2CDCD12581EFFF13EE4AD44C4044B8A0524C42422A7E1E181E4DEECCEC
+X = 0x14890E61FCD4B0BD92E5B36C81372CA6FED471EF3AA60A3E415EE4FE987DABA1
+Y = 0x297B858D9F752AB42D3BCA67EE0EB6DCD1C2B7B0DBE23397E66ADC272263F982
+
+m = 0x1B22644A7BE026548810C378D0B2994EEFA6D2B9881803CB02CEFF865287D1B9
+X = 0xF73C65EAD01C5126F28F442D087689BFA08E12763E0CEC1D35B01751FD735ED3
+Y = 0xF449A8376906482A84ED01479BD18882B919C140D638307F0C0934BA12590BDE