ripemd160.h
mbedtls/config.h
stddef.h
stdint.h
crypto_builtin_primitives.h
mbedtls/check_config.h
mbedtls/config.h
ripemd160.h
limits.h
stddef.h
stdint.h
ripemd160.h
crypto.h
crypto_builtin_primitives.h
crypto_driver_contexts_primitives.h
crypto_struct.h
mbedtls_ripemd160_context
MBEDTLS_ERR_RIPEMD160_HW_ACCEL_FAILED
-0x0031

RIPEMD160 hardware accelerator failed

MBEDTLS_DEPRECATED
__attribute__((deprecated))
MBEDTLS_DEPRECATED
__attribute__((deprecated))
struct mbedtls_ripemd160_context typedef struct mbedtls_ripemd160_context mbedtls_ripemd160_context mbedtls_ripemd160_context

RIPEMD-160 context structure.

void void mbedtls_ripemd160_init (mbedtls_ripemd160_context *ctx) mbedtls_ripemd160_init mbedtls_ripemd160_context * ctx

Initialize RIPEMD-160 context.

ctx

RIPEMD-160 context to be initialized

void void mbedtls_ripemd160_free (mbedtls_ripemd160_context *ctx) mbedtls_ripemd160_free mbedtls_ripemd160_context * ctx

Clear RIPEMD-160 context.

ctx

RIPEMD-160 context to be cleared

void void mbedtls_ripemd160_clone (mbedtls_ripemd160_context *dst, const mbedtls_ripemd160_context *src) mbedtls_ripemd160_clone mbedtls_ripemd160_context * dst const mbedtls_ripemd160_context * src

Clone (the state of) a RIPEMD-160 context.

dst

The destination context

src

The context to be cloned

int int mbedtls_ripemd160_starts_ret (mbedtls_ripemd160_context *ctx) mbedtls_ripemd160_starts_ret mbedtls_ripemd160_context * ctx

RIPEMD-160 context setup.

ctx

context to be initialized

0 if successful

int int mbedtls_ripemd160_update_ret (mbedtls_ripemd160_context *ctx, const unsigned char *input, size_t ilen) mbedtls_ripemd160_update_ret mbedtls_ripemd160_context * ctx const unsigned char * input size_t ilen

RIPEMD-160 process buffer.

ctx

RIPEMD-160 context

input

buffer holding the data

ilen

length of the input data

0 if successful

int int mbedtls_ripemd160_finish_ret (mbedtls_ripemd160_context *ctx, unsigned char output[20]) mbedtls_ripemd160_finish_ret mbedtls_ripemd160_context * ctx unsigned char output [20]

RIPEMD-160 final digest.

ctx

RIPEMD-160 context

output

RIPEMD-160 checksum result

0 if successful

int int mbedtls_internal_ripemd160_process (mbedtls_ripemd160_context *ctx, const unsigned char data[64]) mbedtls_internal_ripemd160_process mbedtls_ripemd160_context * ctx const unsigned char data [64]

RIPEMD-160 process data block (internal use only)

ctx

RIPEMD-160 context

data

buffer holding one block of data

0 if successful

MBEDTLS_DEPRECATED void MBEDTLS_DEPRECATED void mbedtls_ripemd160_starts (mbedtls_ripemd160_context *ctx) mbedtls_ripemd160_starts mbedtls_ripemd160_context * ctx

RIPEMD-160 context setup.

Deprecated

Superseded by mbedtls_ripemd160_starts_ret() in 2.7.0

ctx

context to be initialized

MBEDTLS_DEPRECATED void MBEDTLS_DEPRECATED void mbedtls_ripemd160_update (mbedtls_ripemd160_context *ctx, const unsigned char *input, size_t ilen) mbedtls_ripemd160_update mbedtls_ripemd160_context * ctx const unsigned char * input size_t ilen

RIPEMD-160 process buffer.

Deprecated

Superseded by mbedtls_ripemd160_update_ret() in 2.7.0

ctx

RIPEMD-160 context

input

buffer holding the data

ilen

length of the input data

MBEDTLS_DEPRECATED void MBEDTLS_DEPRECATED void mbedtls_ripemd160_finish (mbedtls_ripemd160_context *ctx, unsigned char output[20]) mbedtls_ripemd160_finish mbedtls_ripemd160_context * ctx unsigned char output [20]

RIPEMD-160 final digest.

Deprecated

Superseded by mbedtls_ripemd160_finish_ret() in 2.7.0

ctx

RIPEMD-160 context

output

RIPEMD-160 checksum result

MBEDTLS_DEPRECATED void MBEDTLS_DEPRECATED void mbedtls_ripemd160_process (mbedtls_ripemd160_context *ctx, const unsigned char data[64]) mbedtls_ripemd160_process mbedtls_ripemd160_context * ctx const unsigned char data [64]

RIPEMD-160 process data block (internal use only)

Deprecated

Superseded by mbedtls_internal_ripemd160_process() in 2.7.0

ctx

RIPEMD-160 context

data

buffer holding one block of data

int int mbedtls_ripemd160_ret (const unsigned char *input, size_t ilen, unsigned char output[20]) mbedtls_ripemd160_ret const unsigned char * input size_t ilen unsigned char output [20]

Output = RIPEMD-160( input buffer )

input

buffer holding the data

ilen

length of the input data

output

RIPEMD-160 checksum result

0 if successful

MBEDTLS_DEPRECATED void MBEDTLS_DEPRECATED void mbedtls_ripemd160 (const unsigned char *input, size_t ilen, unsigned char output[20]) mbedtls_ripemd160 const unsigned char * input size_t ilen unsigned char output [20]

Output = RIPEMD-160( input buffer )

Deprecated

Superseded by mbedtls_ripemd160_ret() in 2.7.0

input

buffer holding the data

ilen

length of the input data

output

RIPEMD-160 checksum result

int int mbedtls_ripemd160_self_test (int verbose) mbedtls_ripemd160_self_test int verbose

Checkup routine.

0 if successful, or 1 if the test failed

RIPE MD-160 message digest.

    /*
    *CopyrightTheMbedTLSContributors
    *SPDX-License-Identifier:Apache-2.0ORGPL-2.0-or-later
    */
    #ifndefMBEDTLS_RIPEMD160_H
    #defineMBEDTLS_RIPEMD160_H

    #if!defined(MBEDTLS_CONFIG_FILE)
    #include"mbedtls/config.h"
    #else
    #includeMBEDTLS_CONFIG_FILE
    #endif

    #include<stddef.h>
    #include<stdint.h>

    /*MBEDTLS_ERR_RIPEMD160_HW_ACCEL_FAILEDisdeprecatedandshouldnotbeused.
    */
    #defineMBEDTLS_ERR_RIPEMD160_HW_ACCEL_FAILED-0x0031

    #ifdef__cplusplus
    extern"C"{
    #endif

    #if!defined(MBEDTLS_RIPEMD160_ALT)
    //Regularimplementation
    //

    typedefstructmbedtls_ripemd160_context{
    uint32_ttotal[2];
    uint32_tstate[5];
    unsignedcharbuffer[64];
    }
    mbedtls_ripemd160_context;

    #else/*MBEDTLS_RIPEMD160_ALT*/
    #include"ripemd160_alt.h"
    #endif/*MBEDTLS_RIPEMD160_ALT*/

    voidmbedtls_ripemd160_init(mbedtls_ripemd160_context*ctx);

    voidmbedtls_ripemd160_free(mbedtls_ripemd160_context*ctx);

    voidmbedtls_ripemd160_clone(mbedtls_ripemd160_context*dst,
    constmbedtls_ripemd160_context*src);

    intmbedtls_ripemd160_starts_ret(mbedtls_ripemd160_context*ctx);

    intmbedtls_ripemd160_update_ret(mbedtls_ripemd160_context*ctx,
    constunsignedchar*input,
    size_tilen);

    intmbedtls_ripemd160_finish_ret(mbedtls_ripemd160_context*ctx,
    unsignedcharoutput[20]);

    intmbedtls_internal_ripemd160_process(mbedtls_ripemd160_context*ctx,
    constunsignedchardata[64]);

    #if!defined(MBEDTLS_DEPRECATED_REMOVED)
    #ifdefined(MBEDTLS_DEPRECATED_WARNING)
    #defineMBEDTLS_DEPRECATED__attribute__((deprecated))
    #else
    #defineMBEDTLS_DEPRECATED
    #endif
    MBEDTLS_DEPRECATEDvoidmbedtls_ripemd160_starts(
    mbedtls_ripemd160_context*ctx);

    MBEDTLS_DEPRECATEDvoidmbedtls_ripemd160_update(
    mbedtls_ripemd160_context*ctx,
    constunsignedchar*input,
    size_tilen);

    MBEDTLS_DEPRECATEDvoidmbedtls_ripemd160_finish(
    mbedtls_ripemd160_context*ctx,
    unsignedcharoutput[20]);

    MBEDTLS_DEPRECATEDvoidmbedtls_ripemd160_process(
    mbedtls_ripemd160_context*ctx,
    constunsignedchardata[64]);

    #undefMBEDTLS_DEPRECATED
    #endif/*!MBEDTLS_DEPRECATED_REMOVED*/

    intmbedtls_ripemd160_ret(constunsignedchar*input,
    size_tilen,
    unsignedcharoutput[20]);

    #if!defined(MBEDTLS_DEPRECATED_REMOVED)
    #ifdefined(MBEDTLS_DEPRECATED_WARNING)
    #defineMBEDTLS_DEPRECATED__attribute__((deprecated))
    #else
    #defineMBEDTLS_DEPRECATED
    #endif
    MBEDTLS_DEPRECATEDvoidmbedtls_ripemd160(constunsignedchar*input,
    size_tilen,
    unsignedcharoutput[20]);

    #undefMBEDTLS_DEPRECATED
    #endif/*!MBEDTLS_DEPRECATED_REMOVED*/

    #ifdefined(MBEDTLS_SELF_TEST)

    intmbedtls_ripemd160_self_test(intverbose);

    #endif/*MBEDTLS_SELF_TEST*/

    #ifdef__cplusplus
    }
    #endif

    #endif/*mbedtls_ripemd160.h*/