diff options
author | Colin Watson <cjwatson@debian.org> | 2015-08-19 14:23:50 +0100 |
---|---|---|
committer | Colin Watson <cjwatson@debian.org> | 2015-08-19 14:23:50 +0100 |
commit | baccdb349b31c47cd76fb63211f754ed33a9707e (patch) | |
tree | d03653f975fd4eb8bf71bb0c9d168614401202fa /digest.h | |
parent | 487bdb3a5ef6075887b830ccb8a0b14f6da78e93 (diff) | |
parent | 9f82e5a9042f2d872e98f48a876fcab3e25dd9bb (diff) |
Import openssh_6.8p1.orig.tar.gz
Diffstat (limited to 'digest.h')
-rw-r--r-- | digest.h | 8 |
1 files changed, 7 insertions, 1 deletions
@@ -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 @@ | |||
33 | struct sshbuf; | 33 | struct sshbuf; |
34 | struct ssh_digest_ctx; | 34 | struct ssh_digest_ctx; |
35 | 35 | ||
36 | /* Looks up a digest algorithm by name */ | ||
37 | int ssh_digest_alg_by_name(const char *name); | ||
38 | |||
39 | /* Returns the algorithm name for a digest identifier */ | ||
40 | const 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 */ |
37 | size_t ssh_digest_bytes(int alg); | 43 | size_t ssh_digest_bytes(int alg); |
38 | 44 | ||