Debian Codegraph @

upstream/debian-unstable/man3/RIPEMD160_Init.3ssl

raw
1 .\" -*- mode: troff; coding: utf-8 -*-
2 .\" Automatically generated by Pod::Man 5.0102 (Pod::Simple 3.45)
3 .\"
4 .\" Standard preamble:
5 .\" ========================================================================
6 .de Sp \" Vertical space (when we can't use .PP)
7 .if t .sp .5v
8 .if n .sp
9 ..
10 .de Vb \" Begin verbatim text
11 .ft CW
12 .nf
13 .ne \\$1
14 ..
15 .de Ve \" End verbatim text
16 .ft R
17 .fi
18 ..
19 .\" \*(C` and \*(C' are quotes in nroff, nothing in troff, for use with C<>.
20 .ie n \{\
21 . ds C` ""
22 . ds C' ""
23 'br\}
24 .el\{\
25 . ds C`
26 . ds C'
27 'br\}
28 .\"
29 .\" Escape single quotes in literal strings from groff's Unicode transform.
30 .ie \n(.g .ds Aq \(aq
31 .el .ds Aq '
32 .\"
33 .\" If the F register is >0, we'll generate index entries on stderr for
34 .\" titles (.TH), headers (.SH), subsections (.SS), items (.Ip), and index
35 .\" entries marked with X<> in POD. Of course, you'll have to process the
36 .\" output yourself in some meaningful fashion.
37 .\"
38 .\" Avoid warning from groff about undefined register 'F'.
39 .de IX
40 ..
41 .nr rF 0
42 .if \n(.g .if rF .nr rF 1
43 .if (\n(rF:(\n(.g==0)) \{\
44 . if \nF \{\
45 . de IX
46 . tm Index:\\$1\t\\n%\t"\\$2"
47 ..
48 . if !\nF==2 \{\
49 . nr % 0
50 . nr F 2
51 . \}
52 . \}
53 .\}
54 .rr rF
55 .\" ========================================================================
56 .\"
57 .IX Title "RIPEMD160_INIT 3SSL"
58 .TH RIPEMD160_INIT 3SSL 2026-04-07 3.6.2 OpenSSL
59 .\" For nroff, turn off justification. Always turn off hyphenation; it makes
60 .\" way too many mistakes in technical documents.
61 .if n .ad l
62 .nh
63 .SH NAME
64 RIPEMD160, RIPEMD160_Init, RIPEMD160_Update, RIPEMD160_Final \-
65 RIPEMD\-160 hash function
66 .SH SYNOPSIS
67 .IX Header "SYNOPSIS"
68 .Vb 1
69 \& #include <openssl/ripemd.h>
70 .Ve
71 .PP
72 The following functions have been deprecated since OpenSSL 3.0, and can be
73 hidden entirely by defining \fBOPENSSL_API_COMPAT\fR with a suitable version value,
74 see \fBopenssl_user_macros\fR\|(7):
75 .PP
76 .Vb 2
77 \& unsigned char *RIPEMD160(const unsigned char *d, unsigned long n,
78 \& unsigned char *md);
79 \&
80 \& int RIPEMD160_Init(RIPEMD160_CTX *c);
81 \& int RIPEMD160_Update(RIPEMD160_CTX *c, const void *data, unsigned long len);
82 \& int RIPEMD160_Final(unsigned char *md, RIPEMD160_CTX *c);
83 .Ve
84 .SH DESCRIPTION
85 .IX Header "DESCRIPTION"
86 All of the functions described on this page are deprecated.
87 Applications should instead use \fBEVP_DigestInit_ex\fR\|(3), \fBEVP_DigestUpdate\fR\|(3)
88 and \fBEVP_DigestFinal_ex\fR\|(3).
89 .PP
90 RIPEMD\-160 is a cryptographic hash function with a
91 160 bit output.
92 .PP
93 \&\fBRIPEMD160()\fR computes the RIPEMD\-160 message digest of the \fBn\fR
94 bytes at \fBd\fR and places it in \fBmd\fR (which must have space for
95 RIPEMD160_DIGEST_LENGTH == 20 bytes of output). If \fBmd\fR is NULL, the digest
96 is placed in a static array.
97 .PP
98 The following functions may be used if the message is not completely
99 stored in memory:
100 .PP
101 \&\fBRIPEMD160_Init()\fR initializes a \fBRIPEMD160_CTX\fR structure.
102 .PP
103 \&\fBRIPEMD160_Update()\fR can be called repeatedly with chunks of the message to
104 be hashed (\fBlen\fR bytes at \fBdata\fR).
105 .PP
106 \&\fBRIPEMD160_Final()\fR places the message digest in \fBmd\fR, which must have
107 space for RIPEMD160_DIGEST_LENGTH == 20 bytes of output, and erases
108 the \fBRIPEMD160_CTX\fR.
109 .SH "RETURN VALUES"
110 .IX Header "RETURN VALUES"
111 \&\fBRIPEMD160()\fR returns a pointer to the hash value.
112 .PP
113 \&\fBRIPEMD160_Init()\fR, \fBRIPEMD160_Update()\fR and \fBRIPEMD160_Final()\fR return 1 for
114 success, 0 otherwise.
115 .SH NOTE
116 .IX Header "NOTE"
117 Applications should use the higher level functions
118 \&\fBEVP_DigestInit\fR\|(3) etc. instead of calling these
119 functions directly.
120 .SH "CONFORMING TO"
121 .IX Header "CONFORMING TO"
122 ISO/IEC 10118\-3:2016 Dedicated Hash-Function 1 (RIPEMD\-160).
123 .SH "SEE ALSO"
124 .IX Header "SEE ALSO"
125 \&\fBEVP_DigestInit\fR\|(3)
126 .SH HISTORY
127 .IX Header "HISTORY"
128 All of these functions were deprecated in OpenSSL 3.0.
129 .SH COPYRIGHT
130 .IX Header "COPYRIGHT"
131 Copyright 2000\-2020 The OpenSSL Project Authors. All Rights Reserved.
132 .PP
133 Licensed under the Apache License 2.0 (the "License"). You may not use
134 this file except in compliance with the License. You can obtain a copy
135 in the file LICENSE in the source distribution or at
136 <https://www.openssl.org/source/license.html>.