Blame doc/man3/RIPEMD160_Init.pod

Packit c4476c
=pod
Packit c4476c
Packit c4476c
=head1 NAME
Packit c4476c
Packit c4476c
RIPEMD160, RIPEMD160_Init, RIPEMD160_Update, RIPEMD160_Final -
Packit c4476c
RIPEMD-160 hash function
Packit c4476c
Packit c4476c
=head1 SYNOPSIS
Packit c4476c
Packit c4476c
 #include <openssl/ripemd.h>
Packit c4476c
Packit c4476c
 unsigned char *RIPEMD160(const unsigned char *d, unsigned long n,
Packit c4476c
                          unsigned char *md);
Packit c4476c
Packit c4476c
 int RIPEMD160_Init(RIPEMD160_CTX *c);
Packit c4476c
 int RIPEMD160_Update(RIPEMD160_CTX *c, const void *data, unsigned long len);
Packit c4476c
 int RIPEMD160_Final(unsigned char *md, RIPEMD160_CTX *c);
Packit c4476c
Packit c4476c
=head1 DESCRIPTION
Packit c4476c
Packit c4476c
RIPEMD-160 is a cryptographic hash function with a
Packit c4476c
160 bit output.
Packit c4476c
Packit c4476c
RIPEMD160() computes the RIPEMD-160 message digest of the B<n>
Packit c4476c
bytes at B<d> and places it in B<md> (which must have space for
Packit c4476c
RIPEMD160_DIGEST_LENGTH == 20 bytes of output). If B<md> is NULL, the digest
Packit c4476c
is placed in a static array.
Packit c4476c
Packit c4476c
The following functions may be used if the message is not completely
Packit c4476c
stored in memory:
Packit c4476c
Packit c4476c
RIPEMD160_Init() initializes a B<RIPEMD160_CTX> structure.
Packit c4476c
Packit c4476c
RIPEMD160_Update() can be called repeatedly with chunks of the message to
Packit c4476c
be hashed (B<len> bytes at B<data>).
Packit c4476c
Packit c4476c
RIPEMD160_Final() places the message digest in B<md>, which must have
Packit c4476c
space for RIPEMD160_DIGEST_LENGTH == 20 bytes of output, and erases
Packit c4476c
the B<RIPEMD160_CTX>.
Packit c4476c
Packit c4476c
=head1 RETURN VALUES
Packit c4476c
Packit c4476c
RIPEMD160() returns a pointer to the hash value.
Packit c4476c
Packit c4476c
RIPEMD160_Init(), RIPEMD160_Update() and RIPEMD160_Final() return 1 for
Packit c4476c
success, 0 otherwise.
Packit c4476c
Packit c4476c
=head1 NOTE
Packit c4476c
Packit c4476c
Applications should use the higher level functions
Packit c4476c
L<EVP_DigestInit(3)> etc. instead of calling these
Packit c4476c
functions directly.
Packit c4476c
Packit c4476c
=head1 CONFORMING TO
Packit c4476c
Packit c4476c
ISO/IEC 10118-3:2016 Dedicated Hash-Function 1 (RIPEMD-160).
Packit c4476c
Packit c4476c
=head1 SEE ALSO
Packit c4476c
Packit c4476c
L<EVP_DigestInit(3)>
Packit c4476c
Packit c4476c
=head1 COPYRIGHT
Packit c4476c
Packit c4476c
Copyright 2000-2019 The OpenSSL Project Authors. All Rights Reserved.
Packit c4476c
Packit c4476c
Licensed under the OpenSSL license (the "License").  You may not use
Packit c4476c
this file except in compliance with the License.  You can obtain a copy
Packit c4476c
in the file LICENSE in the source distribution or at
Packit c4476c
L<https://www.openssl.org/source/license.html>.
Packit c4476c
Packit c4476c
=cut