Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions | Variables
public_key.c File Reference
#include <linux/module.h>
#include <linux/export.h>
#include <linux/kernel.h>
#include <linux/slab.h>
#include <linux/seq_file.h>
#include <keys/asymmetric-subtype.h>
#include "public_key.h"

Go to the source code of this file.

Macros

#define pr_fmt(fmt)   "PKEY: "fmt
 

Functions

 MODULE_LICENSE ("GPL")
 
 EXPORT_SYMBOL_GPL (pkey_algo)
 
 EXPORT_SYMBOL_GPL (pkey_hash_algo)
 
 EXPORT_SYMBOL_GPL (pkey_id_type)
 
void public_key_destroy (void *payload)
 
 EXPORT_SYMBOL_GPL (public_key_destroy)
 
 EXPORT_SYMBOL_GPL (public_key_subtype)
 

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]
 
struct asymmetric_key_subtype public_key_subtype
 

Macro Definition Documentation

#define pr_fmt (   fmt)    "PKEY: "fmt

Definition at line 14 of file public_key.c.

Function Documentation

EXPORT_SYMBOL_GPL ( pkey_algo  )
EXPORT_SYMBOL_GPL ( pkey_hash_algo  )
EXPORT_SYMBOL_GPL ( pkey_id_type  )
EXPORT_SYMBOL_GPL ( public_key_destroy  )
EXPORT_SYMBOL_GPL ( public_key_subtype  )
MODULE_LICENSE ( "GPL"  )
void public_key_destroy ( void payload)

Definition at line 65 of file public_key.c.

Variable Documentation

Initial value:
= {
[PKEY_ALGO_DSA] = "DSA",
[PKEY_ALGO_RSA] = "RSA",
}

Definition at line 25 of file public_key.c.

Initial value:
= {
[PKEY_HASH_MD4] = "md4",
[PKEY_HASH_MD5] = "md5",
[PKEY_HASH_SHA1] = "sha1",
[PKEY_HASH_RIPE_MD_160] = "rmd160",
[PKEY_HASH_SHA256] = "sha256",
[PKEY_HASH_SHA384] = "sha384",
[PKEY_HASH_SHA512] = "sha512",
[PKEY_HASH_SHA224] = "sha224",
}

Definition at line 31 of file public_key.c.

Initial value:
= {
[PKEY_ID_PGP] = "PGP",
[PKEY_ID_X509] = "X509",
}

Definition at line 43 of file public_key.c.

struct asymmetric_key_subtype public_key_subtype
Initial value:
= {
.owner = THIS_MODULE,
.name = "public_key",
.describe = public_key_describe,
.destroy = public_key_destroy,
.verify_signature = public_key_verify_signature,
}

Definition at line 101 of file public_key.c.