forked from torvalds/linux
-
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.
crypto: keys - Revert "convert public key to akcipher api"
This needs to go through the security tree so I'm reverting the patches for now. Signed-off-by: Herbert Xu <[email protected]>
- Loading branch information
Showing
14 changed files
with
316 additions
and
139 deletions.
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
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
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
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,36 @@ | ||
/* Public key algorithm internals | ||
* | ||
* See Documentation/crypto/asymmetric-keys.txt | ||
* | ||
* Copyright (C) 2012 Red Hat, Inc. All Rights Reserved. | ||
* Written by David Howells ([email protected]) | ||
* | ||
* This program is free software; you can redistribute it and/or | ||
* modify it under the terms of the GNU General Public Licence | ||
* as published by the Free Software Foundation; either version | ||
* 2 of the Licence, or (at your option) any later version. | ||
*/ | ||
|
||
#include <crypto/public_key.h> | ||
|
||
extern struct asymmetric_key_subtype public_key_subtype; | ||
|
||
/* | ||
* Public key algorithm definition. | ||
*/ | ||
struct public_key_algorithm { | ||
const char *name; | ||
u8 n_pub_mpi; /* Number of MPIs in public key */ | ||
u8 n_sec_mpi; /* Number of MPIs in secret key */ | ||
u8 n_sig_mpi; /* Number of MPIs in a signature */ | ||
int (*verify_signature)(const struct public_key *key, | ||
const struct public_key_signature *sig); | ||
}; | ||
|
||
extern const struct public_key_algorithm RSA_public_key_algorithm; | ||
|
||
/* | ||
* public_key.c | ||
*/ | ||
extern int public_key_verify_signature(const struct public_key *pk, | ||
const struct public_key_signature *sig); |
Oops, something went wrong.