mbedtls_sha256_update_ret() is only used within mbedTLS.
 
Symbols
loading...
Files
loading...

mbedtls_sha256_update_ret() function

This function feeds an input buffer into an ongoing SHA-256 checksum calculation.

Syntax

int mbedtls_sha256_update_ret( mbedtls_sha256_context *ctx,     const unsigned char *input,     size_t ilen );
Implemented in sha256.c:274

Arguments

ctx

The SHA-256 context. This must be initialized and have a hash operation started.

input

The buffer holding the data. This must be a readable buffer of length \p ilen Bytes.

ilen

The length of the input data in Bytes.

Return value

\c 0 on success. A negative error code on failure.

References

LocationReferrerText
sha256.c:274
int mbedtls_sha256_update_ret( mbedtls_sha256_context *ctx,
sha256.h:123
int mbedtls_sha256_update_ret( mbedtls_sha256_context *ctx,
md_wrap.c:402sha224_update_wrap()
return( mbedtls_sha256_update_ret( (mbedtls_sha256_context *) ctx,
sha256.c:329mbedtls_sha256_update()
mbedtls_sha256_update_ret( ctx, input, ilen );
sha256.c:429mbedtls_sha256_ret()
if( ( ret = mbedtls_sha256_update_ret( &ctx, input, ilen ) ) != 0 )
ssl_tls.c:6028ssl_update_checksum_start()
mbedtls_sha256_update_ret( &ssl->handshake->fin_sha256, buf, len );
ssl_tls.c:6051ssl_update_checksum_sha256()
mbedtls_sha256_update_ret( &ssl->handshake->fin_sha256, buf, len );

Call Tree

Functions calling mbedtls_sha256_update_ret()
Functions called by mbedtls_sha256_update_ret()
mbedtls_sha256_update_ret()
memcpy()
all items filtered out
Data read by mbedtls_sha256_update_ret()
Data written by mbedtls_sha256_update_ret()
mbedtls_sha256_update_ret()::ret
mbedtls_sha256_update_ret()::fill
mbedtls_sha256_update_ret()::left
all items filtered out
mbedtls_sha256_update_ret()
mbedtls_sha256_update_ret()::ret
mbedtls_sha256_update_ret()::fill
mbedtls_sha256_update_ret()::left
all items filtered out
Type of mbedtls_sha256_update_ret()
mbedtls_sha256_update_ret()
size_t
uint32_t
all items filtered out