#ifndef _CRYPTO_TWOFISH_H #define _CRYPTO_TWOFISH_H #include #define TF_MIN_KEY_SIZE 16 #define TF_MAX_KEY_SIZE 32 #define TF_BLOCK_SIZE 16 struct crypto_tfm; /* Structure for an expanded Twofish key. s contains the key-dependent * S-boxes composed with the MDS matrix; w contains the eight "whitening" * subkeys, K[0] through K[7]. k holds the remaining, "round" subkeys. Note * that k[i] corresponds to what the Twofish paper calls K[i+8]. */ struct twofish_ctx { u32 s[4][256], w[8], k[32]; }; int __twofish_setkey(struct twofish_ctx *ctx, const u8 *key, unsigned int key_len, u32 *flags); int twofish_setkey(struct crypto_tfm *tfm, const u8 *key, unsigned int key_len); #endif ogo'/> index : net-next.git
net-next plumbingsTobias Klauser
summaryrefslogtreecommitdiff
path: root/include/crypto/gf128mul.h
mit' value='reload'/>
AgeCommit message (Expand)AuthorFilesLines
authorGal Pressman <galp@mellanox.com>2016-05-01 22:59:54 +0300
committerDavid S. Miller <davem@davemloft.net>2016-05-03 13:37:25 -0400
commit5f8a02a441b861fd3b1b5135a1a6e1c13ee4bb33 (patch)
tree3851fc58ba67d794496eea18d18868736fe9ba0c
parent6071bd1aa13ed9e41824bafad845b7b7f4df5cfd (diff)
net/mlx5: Unmap only the relevant IO memory mapping
When freeing UAR the driver tries to unmap uar->map and uar->bf_map which are mutually exclusive thus always unmapping a NULL pointer. Make sure we only call iounmap() once, for the actual mapping. Fixes: 0ba422410bbf ('net/mlx5: Fix global UAR mapping') Signed-off-by: Gal Pressman <galp@mellanox.com> Reported-by: Doron Tsur <doront@mellanox.com> Signed-off-by: Saeed Mahameed <saeedm@mellanox.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat