struct_blkcipher_alg(9)

struct_blkcipher_alg9

Synchronous block cipher definition

Usage

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

Overview

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

Authors

Stephan Mueller <[email protected]>

Author.

Marek Vasut <[email protected]>

Author.

From linux-manual-4.9 4.9.228-1 in Debian 9 (Stretch). Parsed by carta from the page's man source.