Linux Kernel
3.7.1
|
#include <linux/mpi.h>
Go to the source code of this file.
Data Structures | |
struct | public_key |
struct | public_key_signature |
Macros | |
#define | PKEY_CAN_ENCRYPT 0x01 |
#define | PKEY_CAN_DECRYPT 0x02 |
#define | PKEY_CAN_SIGN 0x04 |
#define | PKEY_CAN_VERIFY 0x08 |
Enumerations | |
enum | pkey_algo { PKEY_ALGO_DSA, PKEY_ALGO_RSA, PKEY_ALGO__LAST } |
enum | pkey_hash_algo { PKEY_HASH_MD4, PKEY_HASH_MD5, PKEY_HASH_SHA1, PKEY_HASH_RIPE_MD_160, PKEY_HASH_SHA256, PKEY_HASH_SHA384, PKEY_HASH_SHA512, PKEY_HASH_SHA224, PKEY_HASH__LAST } |
enum | pkey_id_type { PKEY_ID_PGP, PKEY_ID_X509, PKEY_ID_TYPE__LAST } |
Functions | |
void | public_key_destroy (void *payload) |
int | verify_signature (const struct key *key, const struct public_key_signature *sig) |
Variables | |
const char *const | pkey_algo [PKEY_ALGO__LAST] |
const char *const | pkey_hash_algo [PKEY_HASH__LAST] |
const char *const | pkey_id_type [PKEY_ID_TYPE__LAST] |
#define PKEY_CAN_DECRYPT 0x02 |
Definition at line 59 of file public_key.h.
#define PKEY_CAN_ENCRYPT 0x01 |
Definition at line 58 of file public_key.h.
#define PKEY_CAN_SIGN 0x04 |
Definition at line 60 of file public_key.h.
#define PKEY_CAN_VERIFY 0x08 |
Definition at line 61 of file public_key.h.
enum pkey_algo |
Definition at line 19 of file public_key.h.
enum pkey_hash_algo |
PKEY_HASH_MD4 | |
PKEY_HASH_MD5 | |
PKEY_HASH_SHA1 | |
PKEY_HASH_RIPE_MD_160 | |
PKEY_HASH_SHA256 | |
PKEY_HASH_SHA384 | |
PKEY_HASH_SHA512 | |
PKEY_HASH_SHA224 | |
PKEY_HASH__LAST |
Definition at line 27 of file public_key.h.
enum pkey_id_type |
Definition at line 41 of file public_key.h.
Definition at line 65 of file public_key.c.
verify_signature - Initiate the use of an asymmetric key to verify a signature : The asymmetric key to verify against : The signature to check
Returns 0 if successful or else an error.
Definition at line 27 of file signature.c.
Definition at line 25 of file public_key.c.
Definition at line 31 of file public_key.c.
Definition at line 43 of file public_key.c.