/*1* pcrypt - Parallel crypto engine.2*3* Copyright (C) 2009 secunet Security Networks AG4* Copyright (C) 2009 Steffen Klassert <[email protected]>5*6* This program is free software; you can redistribute it and/or modify it7* under the terms and conditions of the GNU General Public License,8* version 2, as published by the Free Software Foundation.9*10* This program is distributed in the hope it will be useful, but WITHOUT11* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or12* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for13* more details.14*15* You should have received a copy of the GNU General Public License along with16* this program; if not, write to the Free Software Foundation, Inc.,17* 51 Franklin St - Fifth Floor, Boston, MA 02110-1301 USA.18*/1920#ifndef _CRYPTO_PCRYPT_H21#define _CRYPTO_PCRYPT_H2223#include <linux/crypto.h>24#include <linux/kernel.h>25#include <linux/padata.h>2627struct pcrypt_request {28struct padata_priv padata;29void *data;30void *__ctx[] CRYPTO_MINALIGN_ATTR;31};3233static inline void *pcrypt_request_ctx(struct pcrypt_request *req)34{35return req->__ctx;36}3738static inline39struct padata_priv *pcrypt_request_padata(struct pcrypt_request *req)40{41return &req->padata;42}4344static inline45struct pcrypt_request *pcrypt_padata_request(struct padata_priv *padata)46{47return container_of(padata, struct pcrypt_request, padata);48}4950#endif515253