---
name: "kcapi_md_digestsize"
section: "3"
platform: "linux"
package: "libkcapi-dev"
version: "1.4.0-1+b2"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/kcapi_md_digestsize"
---

# kcapi\_md\_digestsize(3)

return the size of the message digest

## NAME

kcapi\_md\_digestsize - return the size of the message digest

## SYNOPSIS

**uint32\_t kcapi\_md\_digestsize(struct kcapi\_handle \*** *handle***);**

## ARGUMENTS

*handle*

\[in\] cipher handle

## DESCRIPTION

The returned message digest size can be used before the kcapi\_md\_final function invocation to determine the right memory size to be allocated for this call.

*return* \> 0 specifying the block size; 0 on error

## AUTHOR

**Stephan Mueller** \<smueller@chronox.de\>

Author.

## COPYRIGHT
