-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Herbert Xu
committed
Jan 10, 2008
1 parent
0a267b8
commit fc08763
Showing
4 changed files
with
51 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
--- | ||
refs/heads/master: 03bf712fb4defc7831c727d1e32d0269f7f96de0 | ||
refs/heads/master: 743edf57272fd420348e148bf94f9e48ed6abb70 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
/* | ||
* AEAD: Authenticated Encryption with Associated Data | ||
* | ||
* Copyright (c) 2007 Herbert Xu <herbert@gondor.apana.org.au> | ||
* | ||
* This program is free software; you can redistribute it and/or modify it | ||
* under the terms of the GNU General Public License as published by the Free | ||
* Software Foundation; either version 2 of the License, or (at your option) | ||
* any later version. | ||
* | ||
*/ | ||
|
||
#ifndef _CRYPTO_AEAD_H | ||
#define _CRYPTO_AEAD_H | ||
|
||
#include <linux/crypto.h> | ||
#include <linux/kernel.h> | ||
|
||
/** | ||
* struct aead_givcrypt_request - AEAD request with IV generation | ||
* @seq: Sequence number for IV generation | ||
* @giv: Space for generated IV | ||
* @areq: The AEAD request itself | ||
*/ | ||
struct aead_givcrypt_request { | ||
u64 seq; | ||
u8 *giv; | ||
|
||
struct aead_request areq; | ||
}; | ||
|
||
static inline struct crypto_aead *aead_givcrypt_reqtfm( | ||
struct aead_givcrypt_request *req) | ||
{ | ||
return crypto_aead_reqtfm(&req->areq); | ||
} | ||
|
||
#endif /* _CRYPTO_AEAD_H */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters