chcr_crypto.h (597473720f4dc69749542bfcfed4a927a43d935e) chcr_crypto.h (571c47ab98ad8c85e44b28f2f0c41b0e27312a9b)
1/*
2 * This file is part of the Chelsio T6 Crypto driver for Linux.
3 *
4 * Copyright (c) 2003-2016 Chelsio Communications, Inc. All rights reserved.
5 *
6 * This software is available to you under a choice of one of two
7 * licenses. You may choose to be licensed under the terms of the GNU
8 * General Public License (GPL) Version 2, available from the file

--- 158 unchanged lines hidden (view full) ---

167
168static inline struct chcr_context *h_ctx(struct crypto_ahash *tfm)
169{
170 return crypto_tfm_ctx(crypto_ahash_tfm(tfm));
171}
172
173struct ablk_ctx {
174 struct crypto_sync_skcipher *sw_cipher;
1/*
2 * This file is part of the Chelsio T6 Crypto driver for Linux.
3 *
4 * Copyright (c) 2003-2016 Chelsio Communications, Inc. All rights reserved.
5 *
6 * This software is available to you under a choice of one of two
7 * licenses. You may choose to be licensed under the terms of the GNU
8 * General Public License (GPL) Version 2, available from the file

--- 158 unchanged lines hidden (view full) ---

167
168static inline struct chcr_context *h_ctx(struct crypto_ahash *tfm)
169{
170 return crypto_tfm_ctx(crypto_ahash_tfm(tfm));
171}
172
173struct ablk_ctx {
174 struct crypto_sync_skcipher *sw_cipher;
175 struct crypto_cipher *aes_generic;
176 __be32 key_ctx_hdr;
177 unsigned int enckey_len;
178 unsigned char ciph_mode;
179 u8 key[CHCR_AES_MAX_KEY_LEN];
180 u8 nonce[4];
181 u8 rrkey[AES_MAX_KEY_SIZE];
182};
183struct chcr_aead_reqctx {

--- 157 unchanged lines hidden ---
175 __be32 key_ctx_hdr;
176 unsigned int enckey_len;
177 unsigned char ciph_mode;
178 u8 key[CHCR_AES_MAX_KEY_LEN];
179 u8 nonce[4];
180 u8 rrkey[AES_MAX_KEY_SIZE];
181};
182struct chcr_aead_reqctx {

--- 157 unchanged lines hidden ---