Skip to content

Commit

Permalink
crypto: export NULL algorithms defines
Browse files Browse the repository at this point in the history
These defines might be needed by crypto drivers.

Signed-off-by: Horia Geanta <[email protected]>
Signed-off-by: Herbert Xu <[email protected]>
  • Loading branch information
horiag authored and herbertx committed Mar 21, 2014
1 parent 4464a7d commit 7256725
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 5 deletions.
6 changes: 1 addition & 5 deletions crypto/crypto_null.c
Original file line number Diff line number Diff line change
Expand Up @@ -17,18 +17,14 @@
*
*/

#include <crypto/null.h>
#include <crypto/internal/hash.h>
#include <crypto/internal/skcipher.h>
#include <linux/init.h>
#include <linux/module.h>
#include <linux/mm.h>
#include <linux/string.h>

#define NULL_KEY_SIZE 0
#define NULL_BLOCK_SIZE 1
#define NULL_DIGEST_SIZE 0
#define NULL_IV_SIZE 0

static int null_compress(struct crypto_tfm *tfm, const u8 *src,
unsigned int slen, u8 *dst, unsigned int *dlen)
{
Expand Down
11 changes: 11 additions & 0 deletions include/crypto/null.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
/* Values for NULL algorithms */

#ifndef _CRYPTO_NULL_H
#define _CRYPTO_NULL_H

#define NULL_KEY_SIZE 0
#define NULL_BLOCK_SIZE 1
#define NULL_DIGEST_SIZE 0
#define NULL_IV_SIZE 0

#endif

0 comments on commit 7256725

Please sign in to comment.