OpenSSL  1.0.1c
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros
Macros | Functions
pmeth_fn.c File Reference
#include <stdio.h>
#include <stdlib.h>
#include "cryptlib.h"
#include <openssl/objects.h>
#include <openssl/evp.h>
#include "evp_locl.h"

Go to the source code of this file.

Macros

#define M_check_autoarg(ctx, arg, arglen, err)
 

Functions

int EVP_PKEY_sign_init (EVP_PKEY_CTX *ctx)
 
int EVP_PKEY_sign (EVP_PKEY_CTX *ctx, unsigned char *sig, size_t *siglen, const unsigned char *tbs, size_t tbslen)
 
int EVP_PKEY_verify_init (EVP_PKEY_CTX *ctx)
 
int EVP_PKEY_verify (EVP_PKEY_CTX *ctx, const unsigned char *sig, size_t siglen, const unsigned char *tbs, size_t tbslen)
 
int EVP_PKEY_verify_recover_init (EVP_PKEY_CTX *ctx)
 
int EVP_PKEY_verify_recover (EVP_PKEY_CTX *ctx, unsigned char *rout, size_t *routlen, const unsigned char *sig, size_t siglen)
 
int EVP_PKEY_encrypt_init (EVP_PKEY_CTX *ctx)
 
int EVP_PKEY_encrypt (EVP_PKEY_CTX *ctx, unsigned char *out, size_t *outlen, const unsigned char *in, size_t inlen)
 
int EVP_PKEY_decrypt_init (EVP_PKEY_CTX *ctx)
 
int EVP_PKEY_decrypt (EVP_PKEY_CTX *ctx, unsigned char *out, size_t *outlen, const unsigned char *in, size_t inlen)
 
int EVP_PKEY_derive_init (EVP_PKEY_CTX *ctx)
 
int EVP_PKEY_derive_set_peer (EVP_PKEY_CTX *ctx, EVP_PKEY *peer)
 
int EVP_PKEY_derive (EVP_PKEY_CTX *ctx, unsigned char *key, size_t *pkeylen)
 

Macro Definition Documentation

#define M_check_autoarg (   ctx,
  arg,
  arglen,
  err 
)
Value:
if (ctx->pmeth->flags & EVP_PKEY_FLAG_AUTOARGLEN) \
{ \
size_t pksize = (size_t)EVP_PKEY_size(ctx->pkey); \
if (!arg) \
{ \
*arglen = pksize; \
return 1; \
} \
else if (*arglen < pksize) \
{ \
EVPerr(err, EVP_R_BUFFER_TOO_SMALL); /*ckerr_ignore*/\
return 0; \
} \
}

Definition at line 66 of file pmeth_fn.c.

Function Documentation

int EVP_PKEY_decrypt ( EVP_PKEY_CTX ctx,
unsigned char *  out,
size_t *  outlen,
const unsigned char *  in,
size_t  inlen 
)

Definition at line 247 of file pmeth_fn.c.

int EVP_PKEY_decrypt_init ( EVP_PKEY_CTX ctx)

Definition at line 229 of file pmeth_fn.c.

int EVP_PKEY_derive ( EVP_PKEY_CTX ctx,
unsigned char *  key,
size_t *  pkeylen 
)

Definition at line 352 of file pmeth_fn.c.

int EVP_PKEY_derive_init ( EVP_PKEY_CTX ctx)

Definition at line 267 of file pmeth_fn.c.

int EVP_PKEY_derive_set_peer ( EVP_PKEY_CTX ctx,
EVP_PKEY peer 
)

Definition at line 285 of file pmeth_fn.c.

int EVP_PKEY_encrypt ( EVP_PKEY_CTX ctx,
unsigned char *  out,
size_t *  outlen,
const unsigned char *  in,
size_t  inlen 
)

Definition at line 210 of file pmeth_fn.c.

int EVP_PKEY_encrypt_init ( EVP_PKEY_CTX ctx)

Definition at line 192 of file pmeth_fn.c.

int EVP_PKEY_sign ( EVP_PKEY_CTX ctx,
unsigned char *  sig,
size_t *  siglen,
const unsigned char *  tbs,
size_t  tbslen 
)

Definition at line 100 of file pmeth_fn.c.

int EVP_PKEY_sign_init ( EVP_PKEY_CTX ctx)

Definition at line 82 of file pmeth_fn.c.

int EVP_PKEY_verify ( EVP_PKEY_CTX ctx,
const unsigned char *  sig,
size_t  siglen,
const unsigned char *  tbs,
size_t  tbslen 
)

Definition at line 137 of file pmeth_fn.c.

int EVP_PKEY_verify_init ( EVP_PKEY_CTX ctx)

Definition at line 119 of file pmeth_fn.c.

int EVP_PKEY_verify_recover ( EVP_PKEY_CTX ctx,
unsigned char *  rout,
size_t *  routlen,
const unsigned char *  sig,
size_t  siglen 
)

Definition at line 173 of file pmeth_fn.c.

int EVP_PKEY_verify_recover_init ( EVP_PKEY_CTX ctx)

Definition at line 155 of file pmeth_fn.c.