---
name: "struct_blkcipher_alg"
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_blkcipher_alg"
---

# struct\_blkcipher\_alg(9)

synchronous block cipher definition

## NAME

struct\_blkcipher\_alg - synchronous block cipher definition

## SYNOPSIS

```
struct blkcipher_alg {
  int (* setkey) (struct crypto_tfm *tfm, const u8 *key,unsigned int keylen);
  int (* encrypt) (struct blkcipher_desc *desc,struct scatterlist *dst, struct scatterlist *src,unsigned int nbytes);
  int (* decrypt) (struct blkcipher_desc *desc,struct scatterlist *dst, struct scatterlist *src,unsigned int nbytes);
  const char * geniv;
  unsigned int min_keysize;
  unsigned int max_keysize;
  unsigned int ivsize;
};
```

## MEMBERS

setkey

see struct ablkcipher\_alg

encrypt

see struct ablkcipher\_alg

decrypt

see struct ablkcipher\_alg

geniv

see struct ablkcipher\_alg

min\_keysize

see struct ablkcipher\_alg

max\_keysize

see struct ablkcipher\_alg

ivsize

see struct ablkcipher\_alg

## DESCRIPTION

All fields except *geniv* and *ivsize* are mandatory and must be filled.

## AUTHORS

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

Author.

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

Author.

## COPYRIGHT
