ripemd.3 (ed403116940cbbd5dad8a3d1c3aa0e1e9771a4e9) | ripemd.3 (8a24546c85d1bd2cf5c71ec245301ff0b7712bae) |
---|---|
1.\" 2.\" ---------------------------------------------------------------------------- 3.\" "THE BEER-WARE LICENSE" (Revision 42): 4.\" <phk@login.dkuug.dk> wrote this file. As long as you retain this notice you 5.\" can do whatever you want with this stuff. If we meet some day, and you think 6.\" this stuff is worth it, you can buy me a beer in return. Poul-Henning Kamp 7.\" ---------------------------------------------------------------------------- 8.\" --- 4 unchanged lines hidden (view full) --- 13.Dt RIPEMD 3 14.Os FreeBSD 15.Sh NAME 16.Nm RIPEMD160_Init , 17.Nm RIPEMD160_Update , 18.Nm RIPEMD160_Final , 19.Nm RIPEMD160_End , 20.Nm RIPEMD160_File , | 1.\" 2.\" ---------------------------------------------------------------------------- 3.\" "THE BEER-WARE LICENSE" (Revision 42): 4.\" <phk@login.dkuug.dk> wrote this file. As long as you retain this notice you 5.\" can do whatever you want with this stuff. If we meet some day, and you think 6.\" this stuff is worth it, you can buy me a beer in return. Poul-Henning Kamp 7.\" ---------------------------------------------------------------------------- 8.\" --- 4 unchanged lines hidden (view full) --- 13.Dt RIPEMD 3 14.Os FreeBSD 15.Sh NAME 16.Nm RIPEMD160_Init , 17.Nm RIPEMD160_Update , 18.Nm RIPEMD160_Final , 19.Nm RIPEMD160_End , 20.Nm RIPEMD160_File , |
21.Nm RIPEMD160_FileChunk , |
|
21.Nm RIPEMD160_Data 22.Nd calculate the RIPEMD160 message digest 23.Sh LIBRARY 24.Lb libmd 25.Sh SYNOPSIS 26.Fd #include <sys/types.h> 27.Fd #include <ripemd.h> 28.Ft void 29.Fn RIPEMD160_Init "RIPEMD160_CTX *context" 30.Ft void 31.Fn RIPEMD160_Update "RIPEMD160_CTX *context" "const unsigned char *data" "unsigned int len" 32.Ft void 33.Fn RIPEMD160_Final "unsigned char digest[20]" "RIPEMD160_CTX *context" 34.Ft "char *" 35.Fn RIPEMD160_End "RIPEMD160_CTX *context" "char *buf" 36.Ft "char *" 37.Fn RIPEMD160_File "const char *filename" "char *buf" 38.Ft "char *" | 22.Nm RIPEMD160_Data 23.Nd calculate the RIPEMD160 message digest 24.Sh LIBRARY 25.Lb libmd 26.Sh SYNOPSIS 27.Fd #include <sys/types.h> 28.Fd #include <ripemd.h> 29.Ft void 30.Fn RIPEMD160_Init "RIPEMD160_CTX *context" 31.Ft void 32.Fn RIPEMD160_Update "RIPEMD160_CTX *context" "const unsigned char *data" "unsigned int len" 33.Ft void 34.Fn RIPEMD160_Final "unsigned char digest[20]" "RIPEMD160_CTX *context" 35.Ft "char *" 36.Fn RIPEMD160_End "RIPEMD160_CTX *context" "char *buf" 37.Ft "char *" 38.Fn RIPEMD160_File "const char *filename" "char *buf" 39.Ft "char *" |
40.Fn RIPEMD160_FileChunk "const char *filename" "char *buf" "off_t offset" "off_t length" 41.Ft "char *" |
|
39.Fn RIPEMD160_Data "const unsigned char *data" "unsigned int len" "char *buf" 40.Sh DESCRIPTION 41The 42.Li RIPEMD160_ 43functions calculate a 160-bit cryptographic checksum (digest) 44for any number of input bytes. A cryptographic checksum is a one-way 45hash function; that is, it is computationally impractical to find 46the input corresponding to a particular output. This net result is --- 20 unchanged lines hidden (view full) --- 67.Tn ASCII 68string which represents the 160 bits in hexadecimal. 69.Pp 70.Fn RIPEMD160_File 71calculates the digest of a file, and uses 72.Fn RIPEMD160_End 73to return the result. 74If the file cannot be opened, a null pointer is returned. | 42.Fn RIPEMD160_Data "const unsigned char *data" "unsigned int len" "char *buf" 43.Sh DESCRIPTION 44The 45.Li RIPEMD160_ 46functions calculate a 160-bit cryptographic checksum (digest) 47for any number of input bytes. A cryptographic checksum is a one-way 48hash function; that is, it is computationally impractical to find 49the input corresponding to a particular output. This net result is --- 20 unchanged lines hidden (view full) --- 70.Tn ASCII 71string which represents the 160 bits in hexadecimal. 72.Pp 73.Fn RIPEMD160_File 74calculates the digest of a file, and uses 75.Fn RIPEMD160_End 76to return the result. 77If the file cannot be opened, a null pointer is returned. |
78.Fn RIPEMD160_FileChunk 79is similar to 80.Fn RIPEMD160_File , 81but it only calculates the digest over a byte-range of the file specified, 82starting at 83.Ar offset 84and spanning 85.Ar length 86bytes. 87If the 88.Ar length 89parameter is specified as 0, or more than the length of the remaining part 90of the file, 91.Fn RIPEMD160_FileChunk 92calculates the digest from 93.Ar offset 94to the end of file. |
|
75.Fn RIPEMD160_Data 76calculates the digest of a chunk of data in memory, and uses 77.Fn RIPEMD160_End 78to return the result. 79.Pp 80When using 81.Fn RIPEMD160_End , 82.Fn RIPEMD160_File , --- 30 unchanged lines hidden --- | 95.Fn RIPEMD160_Data 96calculates the digest of a chunk of data in memory, and uses 97.Fn RIPEMD160_End 98to return the result. 99.Pp 100When using 101.Fn RIPEMD160_End , 102.Fn RIPEMD160_File , --- 30 unchanged lines hidden --- |