chcr_algo.h (3b5d1afd1f13bcab85eaa28223ad396694f929e3) | chcr_algo.h (44fd1c1fd821955118ecb518f46076b98343e591) |
---|---|
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 --- 72 unchanged lines hidden (view full) --- 81#define KEY_CONTEXT_OPAD_PRESENT_S 11 82#define KEY_CONTEXT_OPAD_PRESENT_M 0x1 83#define KEY_CONTEXT_OPAD_PRESENT_V(x) ((x) << KEY_CONTEXT_OPAD_PRESENT_S) 84#define KEY_CONTEXT_OPAD_PRESENT_G(x) \ 85 (((x) >> KEY_CONTEXT_OPAD_PRESENT_S) & \ 86 KEY_CONTEXT_OPAD_PRESENT_M) 87#define KEY_CONTEXT_OPAD_PRESENT_F KEY_CONTEXT_OPAD_PRESENT_V(1U) 88 | 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 --- 72 unchanged lines hidden (view full) --- 81#define KEY_CONTEXT_OPAD_PRESENT_S 11 82#define KEY_CONTEXT_OPAD_PRESENT_M 0x1 83#define KEY_CONTEXT_OPAD_PRESENT_V(x) ((x) << KEY_CONTEXT_OPAD_PRESENT_S) 84#define KEY_CONTEXT_OPAD_PRESENT_G(x) \ 85 (((x) >> KEY_CONTEXT_OPAD_PRESENT_S) & \ 86 KEY_CONTEXT_OPAD_PRESENT_M) 87#define KEY_CONTEXT_OPAD_PRESENT_F KEY_CONTEXT_OPAD_PRESENT_V(1U) 88 |
89#define TLS_KEYCTX_RXFLIT_CNT_S 24 90#define TLS_KEYCTX_RXFLIT_CNT_V(x) ((x) << TLS_KEYCTX_RXFLIT_CNT_S) 91 92#define TLS_KEYCTX_RXPROT_VER_S 20 93#define TLS_KEYCTX_RXPROT_VER_M 0xf 94#define TLS_KEYCTX_RXPROT_VER_V(x) ((x) << TLS_KEYCTX_RXPROT_VER_S) 95 96#define TLS_KEYCTX_RXCIPH_MODE_S 16 97#define TLS_KEYCTX_RXCIPH_MODE_M 0xf 98#define TLS_KEYCTX_RXCIPH_MODE_V(x) ((x) << TLS_KEYCTX_RXCIPH_MODE_S) 99 100#define TLS_KEYCTX_RXAUTH_MODE_S 12 101#define TLS_KEYCTX_RXAUTH_MODE_M 0xf 102#define TLS_KEYCTX_RXAUTH_MODE_V(x) ((x) << TLS_KEYCTX_RXAUTH_MODE_S) 103 104#define TLS_KEYCTX_RXCIAU_CTRL_S 11 105#define TLS_KEYCTX_RXCIAU_CTRL_V(x) ((x) << TLS_KEYCTX_RXCIAU_CTRL_S) 106 107#define TLS_KEYCTX_RX_SEQCTR_S 9 108#define TLS_KEYCTX_RX_SEQCTR_M 0x3 109#define TLS_KEYCTX_RX_SEQCTR_V(x) ((x) << TLS_KEYCTX_RX_SEQCTR_S) 110 111#define TLS_KEYCTX_RX_VALID_S 8 112#define TLS_KEYCTX_RX_VALID_V(x) ((x) << TLS_KEYCTX_RX_VALID_S) 113 114#define TLS_KEYCTX_RXCK_SIZE_S 3 115#define TLS_KEYCTX_RXCK_SIZE_M 0x7 116#define TLS_KEYCTX_RXCK_SIZE_V(x) ((x) << TLS_KEYCTX_RXCK_SIZE_S) 117 118#define TLS_KEYCTX_RXMK_SIZE_S 0 119#define TLS_KEYCTX_RXMK_SIZE_M 0x7 120#define TLS_KEYCTX_RXMK_SIZE_V(x) ((x) << TLS_KEYCTX_RXMK_SIZE_S) 121 | |
122#define CHCR_HASH_MAX_DIGEST_SIZE 64 123#define CHCR_MAX_SHA_DIGEST_SIZE 64 124 125#define IPSEC_TRUNCATED_ICV_SIZE 12 126#define TLS_TRUNCATED_HMAC_SIZE 10 127#define CBCMAC_DIGEST_SIZE 16 128#define MAX_HASH_NAME 20 129 --- 309 unchanged lines hidden --- | 89#define CHCR_HASH_MAX_DIGEST_SIZE 64 90#define CHCR_MAX_SHA_DIGEST_SIZE 64 91 92#define IPSEC_TRUNCATED_ICV_SIZE 12 93#define TLS_TRUNCATED_HMAC_SIZE 10 94#define CBCMAC_DIGEST_SIZE 16 95#define MAX_HASH_NAME 20 96 --- 309 unchanged lines hidden --- |