RIPEMD160_INIT(3ossl)
β¨ RIPEMD160_INIT(3ossl) β¨
okay bestie, welcome to the OpenSSL manual page for RIPEMD160_INIT(3ossl) β yes, the title is giving very βwe are deep in the crypto docsβ π
and we are gonna get through it together.
πΈ NAME πΈ
RIPEMD160, RIPEMD160_Init, RIPEMD160_Update, RIPEMD160_Final β the RIPEMD-160 hash function. Thatβs the whole vibe of this page, bestie π«Ά
π¦ SYNOPSIS π¦
First things first, the include:
#include <openssl/ripemd.h>
Now, important deprecation tea: the following functions have been deprecated since OpenSSL 3.0, and can be hidden entirely by defining OPENSSL_API_COMPAT with a suitable version value, see openssl_user_macros(7):
unsigned char *RIPEMD160(const unsigned char *d, unsigned long n,
unsigned char *md);
int RIPEMD160_Init(RIPEMD160_CTX *c);
int RIPEMD160_Update(RIPEMD160_CTX *c, const void *data, unsigned long len);
int RIPEMD160_Final(unsigned char *md, RIPEMD160_CTX *c);
No cap, those signatures are staying exactly as they are π
π DESCRIPTION π
So all of the functions described on this page are deprecated. Not me being dramatic β thatβs literally what it says π Applications should instead use EVP_DigestInit_ex(3), EVP_DigestUpdate(3) and EVP_DigestFinal_ex(3).
RIPEMD-160 is a cryptographic hash function with a 160 bit output. Iconic, but old-school β and yes, deprecated, so donβt act surprised later π
RIPEMD160() computes the RIPEMD-160 message digest of the n bytes at d and places it in md (which must have space for RIPEMD160_DIGEST_LENGTH == 20 bytes of output). If md is NULL, the digest is placed in a static array. The way that md has to be big enough is lowkey a whole thing, so bestie, give it the 20 bytes it needs π
The following functions may be used if the message is not completely stored in memory:
RIPEMD160_Init()initializes aRIPEMD160_CTXstructure.RIPEMD160_Update()can be called repeatedly with chunks of the message to be hashed (lenbytes atdata).RIPEMD160_Final()places the message digest inmd, which must have space forRIPEMD160_DIGEST_LENGTH == 20bytes of output, and erases theRIPEMD160_CTX.
that last part is giving βclean up after yourselfβ energy π§β¨ and honestly? respect.
π RETURN VALUES π
RIPEMD160() returns a pointer to the hash value.
RIPEMD160_Init(), RIPEMD160_Update() and RIPEMD160_Final() return 1 for success, 0 otherwise.
short, sweet, and very βthe math is mathingβ π
π₯ NOTE π₯
Applications should use the higher level functions EVP_DigestInit(3) etc. instead of calling these functions directly.
this is the part where the manual is basically saying βbestie, use the higher-level API, pleaseβ π no cap, itβs for your own good.
π CONFORMING TO π
ISO/IEC 10118-3:2016 Dedicated Hash-Function 1 (RIPEMD-160).
standardized and everything β sheβs got paperwork π π
π«Ά SEE ALSO π«Ά
thatβs the one to go look at instead, iykyk β¨
π HISTORY π
All of these functions were deprecated in OpenSSL 3.0.
so yeah, theyβre not new here β theyβve been in their deprecated era for a minute π°οΈπ
π COPYRIGHT π
Copyright 2000-2020 The OpenSSL Project Authors. All Rights Reserved.
Licensed under the Apache License 2.0 (the "License"). You may not use this file except in compliance with the License. You can obtain a copy in the file LICENSE in the source distribution or at <https://www.openssl.org/source/license.html>.
mwah π β this page is from OpenSSL 3.5.0, dated 2026-09-25, and thatβs the cute little sign-off, bestie ππ¦
π¦ where this page comes from
- opensuse-leap 16.0: openssl-3-doc 3.5.0-160000.11.1 Β· Apache-2.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms