summaryrefslogtreecommitdiff
path: root/digest.h
diff options
context:
space:
mode:
authordjm@openbsd.org <djm@openbsd.org>2014-12-21 22:27:55 +0000
committerDamien Miller <djm@mindrot.org>2014-12-22 09:32:29 +1100
commit56d1c83cdd1ac76f1c6bd41e01e80dad834f3994 (patch)
tree700a872e702c686c1815bb1049eb93e88079b598 /digest.h
parent058f839fe15c51be8b3a844a76ab9a8db550be4f (diff)
upstream commit
Add FingerprintHash option to control algorithm used for key fingerprints. Default changes from MD5 to SHA256 and format from hex to base64. Feedback and ok naddy@ markus@
Diffstat (limited to 'digest.h')
-rw-r--r--digest.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/digest.h b/digest.h
index 6afb197f0..3fe073468 100644
--- a/digest.h
+++ b/digest.h
@@ -1,4 +1,4 @@
1/* $OpenBSD: digest.h,v 1.6 2014/07/03 04:36:45 djm Exp $ */ 1/* $OpenBSD: digest.h,v 1.7 2014/12/21 22:27:56 djm Exp $ */
2/* 2/*
3 * Copyright (c) 2013 Damien Miller <djm@mindrot.org> 3 * Copyright (c) 2013 Damien Miller <djm@mindrot.org>
4 * 4 *
@@ -33,6 +33,12 @@
33struct sshbuf; 33struct sshbuf;
34struct ssh_digest_ctx; 34struct ssh_digest_ctx;
35 35
36/* Looks up a digest algorithm by name */
37int ssh_digest_alg_by_name(const char *name);
38
39/* Returns the algorithm name for a digest identifier */
40const char *ssh_digest_alg_name(int alg);
41
36/* Returns the algorithm's digest length in bytes or 0 for invalid algorithm */ 42/* Returns the algorithm's digest length in bytes or 0 for invalid algorithm */
37size_t ssh_digest_bytes(int alg); 43size_t ssh_digest_bytes(int alg);
38 44