---
name: "struct_hash_alg_common"
section: "9"
platform: "linux"
package: "linux-manual-4.9"
version: "4.9.228-1"
release: "Debian 9 (Stretch)"
platforms: ["linux"]
url: "https://new.carta.tech/struct_hash_alg_common"
---

# struct\_hash\_alg\_common(9)

define properties of message digest

## NAME

struct\_hash\_alg\_common - define properties of message digest

## SYNOPSIS

```
struct hash_alg_common {
  unsigned int digestsize;
  unsigned int statesize;
  struct crypto_alg base;
};
```

## MEMBERS

digestsize

Size of the result of the transformation. A buffer of this size must be available to the *final* and *finup* calls, so they can store the resulting hash into it. For various predefined sizes, search include/crypto/ using git grep \_DIGEST\_SIZE include/crypto.

statesize

Size of the block for partial state of the transformation. A buffer of this size must be passed to the *export* function as it will save the partial state of the transformation into it. On the other side, the *import* function will load the state from a buffer of this size as well.

base

Start of data structure of cipher algorithm. The common data structure of crypto\_alg contains information common to all ciphers. The hash\_alg\_common data structure now adds the hash-specific information.

## AUTHORS

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

Author.

**Marek Vasut** \<marek@denx.de\>

Author.

## COPYRIGHT
