Browse Source

add const where missing

OPENBSD_5_3
tedu 12 years ago
parent
commit
c450e6bc8f
1 changed files with 9 additions and 9 deletions
  1. +9
    -9
      src/lib/libc/hash/sha2.3

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

@ -1,4 +1,4 @@
.\" $OpenBSD: sha2.3,v 1.16 2008/09/12 05:33:10 djm Exp $
.\" $OpenBSD: sha2.3,v 1.17 2012/09/07 23:11:51 tedu Exp $
.\" .\"
.\" Copyright (c) 2003, 2004 Todd C. Miller <Todd.Miller@courtesan.com> .\" 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 .\" See http://www.nist.gov/sha/ for the detailed standard
.\" .\"
.Dd $Mdocdate: September 12 2008 $
.Dd $Mdocdate: September 7 2012 $
.Dt SHA2 3 .Dt SHA2 3
.Os .Os
.Sh NAME .Sh NAME
@ -54,7 +54,7 @@
.Ft "char *" .Ft "char *"
.Fn SHA256FileChunk "const char *filename" "char *buf" "off_t offset" "off_t length" .Fn SHA256FileChunk "const char *filename" "char *buf" "off_t offset" "off_t length"
.Ft "char *" .Ft "char *"
.Fn SHA256Data "u_int8_t *data" "size_t len" "char *buf"
.Fn SHA256Data "const u_int8_t *data" "size_t len" "char *buf"
.Ft void .Ft void
.Fn SHA384Init "SHA2_CTX *context" .Fn SHA384Init "SHA2_CTX *context"
.Ft void .Ft void
@ -68,11 +68,11 @@
.Ft "char *" .Ft "char *"
.Fn SHA384End "SHA2_CTX *context" "char *buf" .Fn SHA384End "SHA2_CTX *context" "char *buf"
.Ft "char *" .Ft "char *"
.Fn SHA384File "char *filename" "char *buf"
.Fn SHA384File "const char *filename" "char *buf"
.Ft "char *" .Ft "char *"
.Fn SHA384FileChunk "char *filename" "char *buf" "off_t offset" "off_t length"
.Fn SHA384FileChunk "const char *filename" "char *buf" "off_t offset" "off_t length"
.Ft "char *" .Ft "char *"
.Fn SHA384Data "u_int8_t *data" "size_t len" "char *buf"
.Fn SHA384Data "const u_int8_t *data" "size_t len" "char *buf"
.Ft void .Ft void
.Fn SHA512Init "SHA2_CTX *context" .Fn SHA512Init "SHA2_CTX *context"
.Ft void .Ft void
@ -86,11 +86,11 @@
.Ft "char *" .Ft "char *"
.Fn SHA512End "SHA2_CTX *context" "char *buf" .Fn SHA512End "SHA2_CTX *context" "char *buf"
.Ft "char *" .Ft "char *"
.Fn SHA512File "char *filename" "char *buf"
.Fn SHA512File "const char *filename" "char *buf"
.Ft "char *" .Ft "char *"
.Fn SHA512FileChunk "char *filename" "char *buf" "off_t offset" "off_t length"
.Fn SHA512FileChunk "const char *filename" "char *buf" "off_t offset" "off_t length"
.Ft "char *" .Ft "char *"
.Fn SHA512Data "u_int8_t *data" "size_t len" "char *buf"
.Fn SHA512Data "const u_int8_t *data" "size_t len" "char *buf"
.Sh DESCRIPTION .Sh DESCRIPTION
The SHA2 functions implement the NIST Secure Hash Standard, The SHA2 functions implement the NIST Secure Hash Standard,
FIPS PUB 180-2. FIPS PUB 180-2.


Loading…
Cancel
Save