Changeset View
Changeset View
Standalone View
Standalone View
head/lib/libmd/sha256.3
.\" | .\" | ||||
.\" ---------------------------------------------------------------------------- | .\" ---------------------------------------------------------------------------- | ||||
.\" "THE BEER-WARE LICENSE" (Revision 42): | .\" "THE BEER-WARE LICENSE" (Revision 42): | ||||
.\" <phk@FreeBSD.org> wrote this file. As long as you retain this notice you | .\" <phk@FreeBSD.org> wrote this file. As long as you retain this notice you | ||||
.\" can do whatever you want with this stuff. If we meet some day, and you think | .\" can do whatever you want with this stuff. If we meet some day, and you think | ||||
.\" this stuff is worth it, you can buy me a beer in return. Poul-Henning Kamp | .\" this stuff is worth it, you can buy me a beer in return. Poul-Henning Kamp | ||||
.\" ---------------------------------------------------------------------------- | .\" ---------------------------------------------------------------------------- | ||||
.\" | .\" | ||||
.\" From: Id: mdX.3,v 1.14 1999/02/11 20:31:49 wollman Exp | .\" From: Id: mdX.3,v 1.14 1999/02/11 20:31:49 wollman Exp | ||||
.\" $FreeBSD$ | .\" $FreeBSD$ | ||||
.\" | .\" | ||||
.Dd July 9, 2018 | .Dd July 20, 2018 | ||||
.Dt SHA256 3 | .Dt SHA256 3 | ||||
.Os | .Os | ||||
.Sh NAME | .Sh NAME | ||||
.Nm SHA224_Init , | .Nm SHA224_Init , | ||||
.Nm SHA224_Update , | .Nm SHA224_Update , | ||||
.Nm SHA224_Final , | .Nm SHA224_Final , | ||||
.Nm SHA224_End , | .Nm SHA224_End , | ||||
.Nm SHA224_File , | .Nm SHA224_File , | ||||
▲ Show 20 Lines • Show All 62 Lines • ▼ Show 20 Lines | |||||
functions are the core functions. | functions are the core functions. | ||||
Allocate an | Allocate an | ||||
.Vt SHA256_CTX , | .Vt SHA256_CTX , | ||||
initialize it with | initialize it with | ||||
.Fn SHA256_Init , | .Fn SHA256_Init , | ||||
run over the data with | run over the data with | ||||
.Fn SHA256_Update , | .Fn SHA256_Update , | ||||
and finally extract the result using | and finally extract the result using | ||||
.Fn SHA256_Final . | .Fn SHA256_Final , | ||||
which will also erase the | |||||
.Vt SHA256_CTX . | |||||
.Pp | .Pp | ||||
.Fn SHA256_End | .Fn SHA256_End | ||||
is a wrapper for | is a wrapper for | ||||
.Fn SHA256_Final | .Fn SHA256_Final | ||||
which converts the return value to a 65-character | which converts the return value to a 65-character | ||||
(including the terminating '\e0') | (including the terminating '\e0') | ||||
.Tn ASCII | .Tn ASCII | ||||
string which represents the 256 bits in hexadecimal. | string which represents the 256 bits in hexadecimal. | ||||
▲ Show 20 Lines • Show All 66 Lines • Show Last 20 Lines |