Changeset View
Changeset View
Standalone View
Standalone View
head/lib/libmd/mdX.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 | ||||
.\" ---------------------------------------------------------------------------- | .\" ---------------------------------------------------------------------------- | ||||
.\" | .\" | ||||
.\" $FreeBSD$ | .\" $FreeBSD$ | ||||
.\" | .\" | ||||
.Dd April 26, 2016 | .Dd July 20, 2018 | ||||
.Dt MDX 3 | .Dt MDX 3 | ||||
.Os | .Os | ||||
.Sh NAME | .Sh NAME | ||||
.Nm MDXInit , | .Nm MDXInit , | ||||
.Nm MDXUpdate , | .Nm MDXUpdate , | ||||
.Nm MDXPad , | .Nm MDXPad , | ||||
.Nm MDXFinal , | .Nm MDXFinal , | ||||
.Nm MDXEnd , | .Nm MDXEnd , | ||||
▲ Show 20 Lines • Show All 53 Lines • ▼ Show 20 Lines | |||||
functions are the core functions. | functions are the core functions. | ||||
Allocate an | Allocate an | ||||
.Vt MDX_CTX , | .Vt MDX_CTX , | ||||
initialize it with | initialize it with | ||||
.Fn MDXInit , | .Fn MDXInit , | ||||
run over the data with | run over the data with | ||||
.Fn MDXUpdate , | .Fn MDXUpdate , | ||||
and finally extract the result using | and finally extract the result using | ||||
.Fn MDXFinal . | .Fn MDXFinal , | ||||
which will also erase the | |||||
.Vt MDX_CTX . | |||||
.Pp | .Pp | ||||
The | The | ||||
.Fn MDXPad | .Fn MDXPad | ||||
function can be used to pad message data in same way | function can be used to pad message data in same way | ||||
as done by | as done by | ||||
.Fn MDXFinal | .Fn MDXFinal | ||||
without terminating calculation. | without terminating calculation. | ||||
.Pp | .Pp | ||||
▲ Show 20 Lines • Show All 102 Lines • Show Last 20 Lines |