Home | History | Annotate | Line # | Download | only in man3
      1      1.1  christos =pod
      2      1.1  christos 
      3      1.1  christos =head1 NAME
      4      1.1  christos 
      5      1.1  christos RIPEMD160, RIPEMD160_Init, RIPEMD160_Update, RIPEMD160_Final -
      6      1.1  christos RIPEMD-160 hash function
      7      1.1  christos 
      8      1.1  christos =head1 SYNOPSIS
      9      1.1  christos 
     10      1.1  christos  #include <openssl/ripemd.h>
     11      1.1  christos 
     12  1.1.1.3  christos The following functions have been deprecated since OpenSSL 3.0, and can be
     13  1.1.1.3  christos hidden entirely by defining B<OPENSSL_API_COMPAT> with a suitable version value,
     14  1.1.1.3  christos see L<openssl_user_macros(7)>:
     15  1.1.1.3  christos 
     16      1.1  christos  unsigned char *RIPEMD160(const unsigned char *d, unsigned long n,
     17      1.1  christos                           unsigned char *md);
     18      1.1  christos 
     19      1.1  christos  int RIPEMD160_Init(RIPEMD160_CTX *c);
     20  1.1.1.2  christos  int RIPEMD160_Update(RIPEMD160_CTX *c, const void *data, unsigned long len);
     21      1.1  christos  int RIPEMD160_Final(unsigned char *md, RIPEMD160_CTX *c);
     22      1.1  christos 
     23      1.1  christos =head1 DESCRIPTION
     24      1.1  christos 
     25  1.1.1.3  christos All of the functions described on this page are deprecated.
     26  1.1.1.3  christos Applications should instead use L<EVP_DigestInit_ex(3)>, L<EVP_DigestUpdate(3)>
     27  1.1.1.3  christos and L<EVP_DigestFinal_ex(3)>.
     28  1.1.1.3  christos 
     29      1.1  christos RIPEMD-160 is a cryptographic hash function with a
     30      1.1  christos 160 bit output.
     31      1.1  christos 
     32      1.1  christos RIPEMD160() computes the RIPEMD-160 message digest of the B<n>
     33      1.1  christos bytes at B<d> and places it in B<md> (which must have space for
     34      1.1  christos RIPEMD160_DIGEST_LENGTH == 20 bytes of output). If B<md> is NULL, the digest
     35      1.1  christos is placed in a static array.
     36      1.1  christos 
     37      1.1  christos The following functions may be used if the message is not completely
     38      1.1  christos stored in memory:
     39      1.1  christos 
     40      1.1  christos RIPEMD160_Init() initializes a B<RIPEMD160_CTX> structure.
     41      1.1  christos 
     42      1.1  christos RIPEMD160_Update() can be called repeatedly with chunks of the message to
     43      1.1  christos be hashed (B<len> bytes at B<data>).
     44      1.1  christos 
     45      1.1  christos RIPEMD160_Final() places the message digest in B<md>, which must have
     46      1.1  christos space for RIPEMD160_DIGEST_LENGTH == 20 bytes of output, and erases
     47      1.1  christos the B<RIPEMD160_CTX>.
     48      1.1  christos 
     49      1.1  christos =head1 RETURN VALUES
     50      1.1  christos 
     51      1.1  christos RIPEMD160() returns a pointer to the hash value.
     52      1.1  christos 
     53      1.1  christos RIPEMD160_Init(), RIPEMD160_Update() and RIPEMD160_Final() return 1 for
     54      1.1  christos success, 0 otherwise.
     55      1.1  christos 
     56      1.1  christos =head1 NOTE
     57      1.1  christos 
     58      1.1  christos Applications should use the higher level functions
     59      1.1  christos L<EVP_DigestInit(3)> etc. instead of calling these
     60      1.1  christos functions directly.
     61      1.1  christos 
     62      1.1  christos =head1 CONFORMING TO
     63      1.1  christos 
     64      1.1  christos ISO/IEC 10118-3:2016 Dedicated Hash-Function 1 (RIPEMD-160).
     65      1.1  christos 
     66      1.1  christos =head1 SEE ALSO
     67      1.1  christos 
     68      1.1  christos L<EVP_DigestInit(3)>
     69      1.1  christos 
     70  1.1.1.3  christos =head1 HISTORY
     71  1.1.1.3  christos 
     72  1.1.1.3  christos All of these functions were deprecated in OpenSSL 3.0.
     73  1.1.1.3  christos 
     74      1.1  christos =head1 COPYRIGHT
     75      1.1  christos 
     76  1.1.1.3  christos Copyright 2000-2021 The OpenSSL Project Authors. All Rights Reserved.
     77      1.1  christos 
     78  1.1.1.3  christos Licensed under the Apache License 2.0 (the "License").  You may not use
     79      1.1  christos this file except in compliance with the License.  You can obtain a copy
     80      1.1  christos in the file LICENSE in the source distribution or at
     81      1.1  christos L<https://www.openssl.org/source/license.html>.
     82      1.1  christos 
     83      1.1  christos =cut
     84