]> git.ipfire.org Git - thirdparty/openssl.git/blame - doc/man3/RIPEMD160_Init.pod
Make BIGNUM rand functions available within the FIPS module
[thirdparty/openssl.git] / doc / man3 / RIPEMD160_Init.pod
CommitLineData
9dbc41d7
UM
1=pod
2
3=head1 NAME
4
5RIPEMD160, RIPEMD160_Init, RIPEMD160_Update, RIPEMD160_Final -
6RIPEMD-160 hash function
7
8=head1 SYNOPSIS
9
10 #include <openssl/ripemd.h>
11
12 unsigned char *RIPEMD160(const unsigned char *d, unsigned long n,
e9b77246 13 unsigned char *md);
9dbc41d7 14
8a4af56f 15 int RIPEMD160_Init(RIPEMD160_CTX *c);
70680262 16 int RIPEMD160_Update(RIPEMD160_CTX *c, const void *data, unsigned long len);
8a4af56f 17 int RIPEMD160_Final(unsigned char *md, RIPEMD160_CTX *c);
9dbc41d7
UM
18
19=head1 DESCRIPTION
20
21RIPEMD-160 is a cryptographic hash function with a
22160 bit output.
23
24RIPEMD160() computes the RIPEMD-160 message digest of the B<n>
25bytes at B<d> and places it in B<md> (which must have space for
26RIPEMD160_DIGEST_LENGTH == 20 bytes of output). If B<md> is NULL, the digest
27is placed in a static array.
28
29The following functions may be used if the message is not completely
30stored in memory:
31
32RIPEMD160_Init() initializes a B<RIPEMD160_CTX> structure.
33
34RIPEMD160_Update() can be called repeatedly with chunks of the message to
35be hashed (B<len> bytes at B<data>).
36
37RIPEMD160_Final() places the message digest in B<md>, which must have
38space for RIPEMD160_DIGEST_LENGTH == 20 bytes of output, and erases
39the B<RIPEMD160_CTX>.
40
41=head1 RETURN VALUES
42
1bc74519 43RIPEMD160() returns a pointer to the hash value.
9dbc41d7 44
8a4af56f
NL
45RIPEMD160_Init(), RIPEMD160_Update() and RIPEMD160_Final() return 1 for
46success, 0 otherwise.
9dbc41d7 47
c7497f34
RS
48=head1 NOTE
49
50Applications should use the higher level functions
9b86974e 51L<EVP_DigestInit(3)> etc. instead of calling these
c7497f34
RS
52functions directly.
53
9dbc41d7
UM
54=head1 CONFORMING TO
55
bbda8ce9 56ISO/IEC 10118-3:2016 Dedicated Hash-Function 1 (RIPEMD-160).
9dbc41d7
UM
57
58=head1 SEE ALSO
59
9b86974e 60L<EVP_DigestInit(3)>
9dbc41d7 61
e2f92610
RS
62=head1 COPYRIGHT
63
bbda8ce9 64Copyright 2000-2017 The OpenSSL Project Authors. All Rights Reserved.
e2f92610 65
4746f25a 66Licensed under the Apache License 2.0 (the "License"). You may not use
e2f92610
RS
67this file except in compliance with the License. You can obtain a copy
68in the file LICENSE in the source distribution or at
69L<https://www.openssl.org/source/license.html>.
70
71=cut