diff options
author | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2009-12-04 01:34:03 +0200 |
---|---|---|
committer | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2009-12-04 01:34:03 +0200 |
commit | 7e13b2bef6fd81b5eadeaa982e7e82f82ae59209 (patch) | |
tree | 1797adabd90ca2faec674d137fbf21b737c5ba23 /cryptodev.h | |
parent | 0ae0d8cf7ba637036e1ad73c74b55b0cd084c64a (diff) | |
download | cryptodev-linux-7e13b2bef6fd81b5eadeaa982e7e82f82ae59209.tar.gz cryptodev-linux-7e13b2bef6fd81b5eadeaa982e7e82f82ae59209.tar.xz cryptodev-linux-7e13b2bef6fd81b5eadeaa982e7e82f82ae59209.zip |
Revert "Added CIOCCRYPTV that will encrypt/hash iovectors.". This
is a cryptodev release that intends to be fully compatible with
OpenBSD and FreeBSD APIs.
This reverts commit 30181c1a49a63fddc97dd10dbac1b49568aede1f.
Conflicts:
cryptodev.c
Diffstat (limited to 'cryptodev.h')
-rw-r--r-- | cryptodev.h | 29 |
1 files changed, 1 insertions, 28 deletions
diff --git a/cryptodev.h b/cryptodev.h index 55c3279..fcdd006 100644 --- a/cryptodev.h +++ b/cryptodev.h @@ -75,7 +75,7 @@ struct crypt_op { uint32_t ses; /* from session_op->ses */ #define COP_DECRYPT 0 #define COP_ENCRYPT 1 - uint16_t op; /* ie. COP_ENCRYPT */ + uint32_t op; /* ie. COP_ENCRYPT */ uint32_t flags; /* unused */ size_t len; @@ -84,30 +84,6 @@ struct crypt_op { void *iv; }; -struct crypt_iovec { -#define IOP_CIPHER 1 -#define IOP_HASH 2 - uint16_t op_flags; /* ie. IOP_CIPHER|IOP_HASH */ - void *src; - size_t len; -}; - -/* ioctl parameter to request a crypt/decrypt operation against a session */ -struct crypt_opv { - uint32_t ses; /* from session_op->ses */ - #define COP_DECRYPT 0 - #define COP_ENCRYPT 1 - uint16_t op; /* ie. COP_ENCRYPT */ - uint32_t flags; /* unused */ - - struct crypt_iovec* iovec; - uint16_t iovec_cnt; - - void *dst; - void *mac; - void *iv; -}; - /* clone original filedescriptor */ #define CRIOGET _IOWR('c', 101, uint32_t) @@ -124,9 +100,6 @@ struct crypt_opv { #define CIOCKEY _IOWR('c', 105, void *) #define CIOCASYMFEAT _IOR('c', 106, uint32_t) -/* request encryption/decryptions of a given buffer vector */ -#define CIOCCRYPTV _IOWR('c', 107, struct crypt_opv) - #endif /* _CRYPTODEV_H */ /* unused structures */ |