Browse Source

the last example doesn't need a ctx variable;

from Loic Tortay via jmc@
OPENBSD_4_5
djm 16 years ago
parent
commit
bbe209e122
1 changed files with 2 additions and 3 deletions
  1. +2
    -3
      src/lib/libc/hash/sha2.3

+ 2
- 3
src/lib/libc/hash/sha2.3 View File

@ -1,4 +1,4 @@
.\" $OpenBSD: sha2.3,v 1.15 2008/09/06 12:00:19 djm Exp $
.\" $OpenBSD: sha2.3,v 1.16 2008/09/12 05:33:10 djm Exp $
.\"
.\" Copyright (c) 2003, 2004 Todd C. Miller <Todd.Miller@courtesan.com>
.\"
@ -20,7 +20,7 @@
.\"
.\" See http://www.nist.gov/sha/ for the detailed standard
.\"
.Dd $Mdocdate: September 6 2008 $
.Dd $Mdocdate: September 12 2008 $
.Dt SHA2 3
.Os
.Sh NAME
@ -243,7 +243,6 @@ putchar('\en');
.Pp
Alternately, the helper functions could be used in the following way:
.Bd -literal -offset indent
SHA2_CTX ctx;
u_int8_t output[SHA256_DIGEST_STRING_LENGTH];
char *buf = "abc";


Loading…
Cancel
Save