Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Enumerations | Functions | Variables
public_key.h File Reference
#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]
 

Macro Definition Documentation

#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.

Enumeration Type Documentation

enum pkey_algo
Enumerator:
PKEY_ALGO_DSA 
PKEY_ALGO_RSA 
PKEY_ALGO__LAST 

Definition at line 19 of file public_key.h.

Enumerator:
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.

Enumerator:
PKEY_ID_PGP 
PKEY_ID_X509 
PKEY_ID_TYPE__LAST 

Definition at line 41 of file public_key.h.

Function Documentation

void public_key_destroy ( void payload)

Definition at line 65 of file public_key.c.

int verify_signature ( const struct key key,
const struct public_key_signature sig 
)

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.

Variable Documentation

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.