ssh: Add 256, 384 and 521 bit test keys for the fingerprint.
authorWerner Koch <wk@gnupg.org>
Tue, 22 Sep 2015 08:01:31 +0000 (10:01 +0200)
committerWerner Koch <wk@gnupg.org>
Tue, 22 Sep 2015 08:01:31 +0000 (10:01 +0200)
* common/t-ssh-utils.c (sample_keys): Add 3 new keys.

Signed-off-by: Werner Koch <wk@gnupg.org>
common/t-ssh-utils.c

index 5a76233..9639584 100644 (file)
@@ -101,6 +101,68 @@ static struct { const char *key; const char *fpr; } sample_keys[] = {
     ")",
     "2d:b1:70:1a:04:9e:41:a3:ce:27:a5:c7:22:fe:3a:a3"
   },
+  { /* OpenSSH 6.7p1 generated key:  */
+    "(protected-private-key "
+    "(ecdsa "
+    "(curve \"NIST P-256\")"
+    "(q #041F17ED5E3D637181DFA68157270F94A46C089B6F5D4518564600551C0A60A063B3"
+    "31EDE027A23CAB58A5BAD469600229DC8DED06380A92F86460ED400F963319#)"
+    "(protected openpgp-s2k3-sha1-aes-cbc "
+    "("
+    "(sha1 #43F887516D94A502# \"20971520\")"
+    "#B135DEDA02CF36F126BA661FB22A35CF#)"
+    "#37E74BEC054B17723C106BA69214CFDA245512E40F4848ECF5719E3700002C940BC7EEC"
+    "283537CA4D8779107E07F03AAA9FAF155BA9BF6286080C35EF72DDAAF303FD9069475B03"
+    "C99D9FC93C58CD83A852964D2C7BFD1D803E2ECD1331937C3#)"
+    "(protected-at \"20150922T071259\")"
+    ")"
+    "(comment \"ecdsa w/o comment\")"
+    ")", /* Passphrase="abc" */
+    "93:4f:08:02:7d:cb:16:9b:0c:39:21:4b:cf:28:5a:19"
+  },
+  { /* OpenSSH 6.7p1 generated key:  */
+    "(protected-private-key "
+    "(ecdsa "
+    "(curve \"NIST P-384\") "
+    "(q #04B6E747AC2F179F96088D1DB58EB8600BB23FAEF5F58EFE712A7478FB7BF735"
+    "B015EA2DFBBA965D8C6EB135A2B9B9599D65BF0167D2DB6ABF00F641F0F5FC15A4C3"
+    "EFE432DA331B7C8A66D6C4C2B0EBB5ED11A80301C4E57C1EBD25665CEBF123#)"
+    "(protected openpgp-s2k3-sha1-aes-cbc "
+    "("
+    "(sha1 #3B13710B67D756EA# \"20971520\")"
+    "#720599AC095BF1BD73ED72F49FB77BFA#)"
+    "#F1A522F4533E3A6E40821D67CEA6C28A7FF07ACA4BEE81E0F39193B2E469E0C583D"
+    "A42E0E2D52ADB5ACFAB9C4CA7F1C3556FD7FD2770717FB3CE7C59474A3E2A7AF3D93"
+    "9EC01E067DAAA60D3D355D9BABCCD1F013E8637C555DDFA61F8FA5AFB010FF02979D"
+    "35BBBEED71BFD8BB508F7#)"
+    "(protected-at \"20150922T070806\")"
+    ")"
+    "(comment \"ecdsa w/o comment\")"
+    ")", /* Passphrase="abc" */
+    "a3:cb:44:c8:56:15:25:62:85:fd:e8:04:7a:26:dc:76"
+  },
+  { /* OpenSSH 6.7p1 generated key:  */
+    "(protected-private-key "
+    "(ecdsa "
+    "(curve \"NIST P-521\")"
+    "(q #04005E460058F37DB5ADA670040203C4D7E18D9FC8A7087165904A4E25EE5EEE"
+    "3046406D922616DA7E71016A1CB9E57A45E3D3727D7C8DF0F11AE2BD75FAD3355CAA"
+    "E1019D89D33CC77424E5DA233588207444FC9F67BBE428A9528B7DC77AF8261A1D45"
+    "ACC1A657C99E361E93C1E5C0F214104C18807670F4CDC1E038B7C950FDBAAECB40#)"
+    "(protected openpgp-s2k3-sha1-aes-cbc "
+    "("
+    "(sha1 #FB2E36984DE2E17C# \"19737600\")"
+    "#85DB6445B37012F9A449E5AC0D5017E9#)"
+    "#B4C7CCDFE9B5D32B31BA7C763B80485A62EBF34FD68D8E306DA75FD2BDDBABAA098"
+    "9B51972BA3B731DA5261E0ADC3FAEF9BB4C8284C53D3E88E738AEF1490941903A5B2"
+    "9F3747E83C4D80B6A89E0B7BDEE5C6638332F4AAEA5983F760B2887A43A1C4BE0564"
+    "3F72C6943987D97FDAA7D9C235C6D31973A2400DA9BAB564A16EA#)"
+    "(protected-at \"20150922T075611\")"
+    ")"
+    "(comment \"ecdsa w/o comment\")"
+    ")", /* Passphrase="abc" */
+    "1e:a6:94:ab:bd:81:73:5f:22:bc:0e:c7:89:f6:68:df"
+  },
   {
     NULL,
     NULL