1RIPEMD160_INIT(3ossl)               OpenSSL              RIPEMD160_INIT(3ossl)
2
3
4

NAME

6       RIPEMD160, RIPEMD160_Init, RIPEMD160_Update, RIPEMD160_Final -
7       RIPEMD-160 hash function
8

SYNOPSIS

10        #include <openssl/ripemd.h>
11
12       The following functions have been deprecated since OpenSSL 3.0, and can
13       be hidden entirely by defining OPENSSL_API_COMPAT with a suitable
14       version value, see openssl_user_macros(7):
15
16        unsigned char *RIPEMD160(const unsigned char *d, unsigned long n,
17                                 unsigned char *md);
18
19        int RIPEMD160_Init(RIPEMD160_CTX *c);
20        int RIPEMD160_Update(RIPEMD160_CTX *c, const void *data, unsigned long len);
21        int RIPEMD160_Final(unsigned char *md, RIPEMD160_CTX *c);
22

DESCRIPTION

24       All of the functions described on this page are deprecated.
25       Applications should instead use EVP_DigestInit_ex(3),
26       EVP_DigestUpdate(3) and EVP_DigestFinal_ex(3).
27
28       RIPEMD-160 is a cryptographic hash function with a 160 bit output.
29
30       RIPEMD160() computes the RIPEMD-160 message digest of the n bytes at d
31       and places it in md (which must have space for RIPEMD160_DIGEST_LENGTH
32       == 20 bytes of output). If md is NULL, the digest is placed in a static
33       array.
34
35       The following functions may be used if the message is not completely
36       stored in memory:
37
38       RIPEMD160_Init() initializes a RIPEMD160_CTX structure.
39
40       RIPEMD160_Update() can be called repeatedly with chunks of the message
41       to be hashed (len bytes at data).
42
43       RIPEMD160_Final() places the message digest in md, which must have
44       space for RIPEMD160_DIGEST_LENGTH == 20 bytes of output, and erases the
45       RIPEMD160_CTX.
46

RETURN VALUES

48       RIPEMD160() returns a pointer to the hash value.
49
50       RIPEMD160_Init(), RIPEMD160_Update() and RIPEMD160_Final() return 1 for
51       success, 0 otherwise.
52

NOTE

54       Applications should use the higher level functions EVP_DigestInit(3)
55       etc. instead of calling these functions directly.
56

CONFORMING TO

58       ISO/IEC 10118-3:2016 Dedicated Hash-Function 1 (RIPEMD-160).
59

SEE ALSO

61       EVP_DigestInit(3)
62

HISTORY

64       All of these functions were deprecated in OpenSSL 3.0.
65
67       Copyright 2000-2021 The OpenSSL Project Authors. All Rights Reserved.
68
69       Licensed under the Apache License 2.0 (the "License").  You may not use
70       this file except in compliance with the License.  You can obtain a copy
71       in the file LICENSE in the source distribution or at
72       <https://www.openssl.org/source/license.html>.
73
74
75
763.0.9                             2023-07-27             RIPEMD160_INIT(3ossl)
Impressum