Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F149202673
D22362.1789664504.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D22362.1789664504.diff
View Options
Index: sys/opencrypto/cryptodev.h
===================================================================
--- sys/opencrypto/cryptodev.h
+++ sys/opencrypto/cryptodev.h
@@ -206,7 +206,8 @@
#define CRYPTO_POLY1305 38
#define CRYPTO_AES_CCM_CBC_MAC 39 /* auth side */
#define CRYPTO_AES_CCM_16 40 /* cipher side */
-#define CRYPTO_ALGORITHM_MAX 40 /* Keep updated - see below */
+#define CRYPTO_ESN 41 /* Support for Extended Sequence Numbers */
+#define CRYPTO_ALGORITHM_MAX 41 /* Keep updated - see below */
#define CRYPTO_ALGO_VALID(x) ((x) >= CRYPTO_ALGORITHM_MIN && \
(x) <= CRYPTO_ALGORITHM_MAX)
@@ -393,7 +394,10 @@
int cri_mlen; /* Number of bytes we want from the
entire hash. 0 means all. */
caddr_t cri_key; /* key to use */
+ union {
u_int8_t cri_iv[EALG_MAX_BLOCK_LEN]; /* IV to use */
+ u_int8_t cri_esn[4]; /* high-order ESN */
+ };
struct cryptoini *cri_next;
};
@@ -411,6 +415,7 @@
#define CRD_F_DSA_SHA_NEEDED 0x08 /* Compute SHA-1 of buffer for DSA */
#define CRD_F_COMP 0x0f /* Set when doing compression */
#define CRD_F_KEY_EXPLICIT 0x10 /* Key explicitly provided */
+#define CRD_F_ESN 0x20 /* Set when ESN field is provided */
struct cryptoini CRD_INI; /* Initialization/context data */
#define crd_esn CRD_INI.cri_esn
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Sep 17, 5:01 PM (18 h, 7 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
29736488
Default Alt Text
D22362.1789664504.diff (1 KB)
Attached To
Mode
D22362: Add CRYPTO_ESN, CRD_F_ESN flags and appropriate fields in cryptodev
Attached
Detach File
Event Timeline
Log In to Comment