aboutsummaryrefslogtreecommitdiff
path: root/tests/sha256/driver.cxx
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2016-04-20 13:25:18 +0300
committerKaren Arutyunov <karen@codesynthesis.com>2016-04-21 14:32:18 +0300
commitc1d9742df3cf20c3b235ecdd4f4d7a6f71037f1d (patch)
tree838df08ffbec943b315252748d64f719f537fd7d /tests/sha256/driver.cxx
parentc0beeb5f0b3285fd7b411859bd68d44b472ad034 (diff)
Add sha256_to_fingerprint (), fingerprint_to_sha256 ()
Diffstat (limited to 'tests/sha256/driver.cxx')
-rw-r--r--tests/sha256/driver.cxx9
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/sha256/driver.cxx b/tests/sha256/driver.cxx
index 8c2e525..ae2bd4a 100644
--- a/tests/sha256/driver.cxx
+++ b/tests/sha256/driver.cxx
@@ -37,4 +37,13 @@ main ()
string s (h.string ());
assert (s ==
"204d9db65789fbede7829ed77f72ba1f0fe21a833d95abad4849b82f33a69b9d");
+
+ string fp ("F4:9D:C0:02:C6:B6:62:06:A5:48:AE:87:35:32:95:64:C2:B8:C9:6D:9B:"
+ "28:85:6D:EF:CA:FA:7F:04:B5:4F:A6");
+
+ string sh (
+ "f49dc002c6b66206a548ae8735329564c2b8c96d9b28856defcafa7f04b54fa6");
+
+ assert (fingerprint_to_sha256 (fp) == sh);
+ assert (sha256_to_fingerprint (sh) == fp);
}