cryptlib  3.4.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Macros
Macros | Functions
cryptctx.c File Reference
#include "crypt.h"
#include "context/context.h"
#include "enc_dec/asn1.h"

Go to the source code of this file.

Macros

#define PKC_CONTEXT   /* Indicate that we're working with PKC contexts */
 
#define ENCRYPT_CHECKSIZE   16
 
#define STORAGE_ALIGN_SIZE   8
 
#define CONTEXT_INFO_ALIGN_SIZE   roundUp( sizeof( CONTEXT_INFO ), STORAGE_ALIGN_SIZE )
 
#define ALIGN_CONTEXT_PTR(basePtr, type)   ( type * ) ( ( BYTE * ) ( basePtr ) + CONTEXT_INFO_ALIGN_SIZE )
 

Functions

CHECK_RETVAL STDC_NONNULL_ARG ((1))
 
CHECK_RETVAL STDC_NONNULL_ARG ((1, 2))
 
CHECK_RETVAL STDC_NONNULL_ARG ((1, 3))
 

Macro Definition Documentation

#define ALIGN_CONTEXT_PTR (   basePtr,
  type 
)    ( type * ) ( ( BYTE * ) ( basePtr ) + CONTEXT_INFO_ALIGN_SIZE )

Definition at line 37 of file cryptctx.c.

#define CONTEXT_INFO_ALIGN_SIZE   roundUp( sizeof( CONTEXT_INFO ), STORAGE_ALIGN_SIZE )

Definition at line 35 of file cryptctx.c.

#define ENCRYPT_CHECKSIZE   16

Definition at line 26 of file cryptctx.c.

#define PKC_CONTEXT   /* Indicate that we're working with PKC contexts */

Definition at line 12 of file cryptctx.c.

#define STORAGE_ALIGN_SIZE   8

Definition at line 34 of file cryptctx.c.

Function Documentation

CHECK_RETVAL STDC_NONNULL_ARG ( (1)  )

Definition at line 48 of file cryptctx.c.

CHECK_RETVAL STDC_NONNULL_ARG ( (1, 2)  )

Definition at line 253 of file cryptctx.c.

CHECK_RETVAL STDC_NONNULL_ARG ( (1, 3)  )

Definition at line 768 of file cryptctx.c.