cryptlib
3.4.1
|
#include "device/capabil.h"
Go to the source code of this file.
Classes | |
struct | CONV_INFO |
struct | HASH_INFO |
struct | MAC_INFO |
struct | GENERIC_INFO |
struct | CI |
Typedefs | |
typedef struct CI | CONTEXT_INFO |
Enumerations | |
enum | CONTEXT_TYPE { CONTEXT_NONE, CONTEXT_CONV, CONTEXT_PKC, CONTEXT_HASH, CONTEXT_MAC, CONTEXT_GENERIC, CONTEXT_LAST } |
#define CONTEXT_FLAG_DUMMY 0x0010 /* Context actions handled externally */ |
#define CONTEXT_FLAG_DUMMY_INITED 0x0020 /* Dummy context is inited */ |
#define CONTEXT_FLAG_HASH_DONE 0x0200 /* Hash operation is complete */ |
#define CONTEXT_FLAG_HASH_INITED 0x0100 /* Hash parameters have been inited */ |
#define CONTEXT_FLAG_ISPRIVATEKEY 0x0008 /* Key is a private key */ |
#define CONTEXT_FLAG_ISPUBLICKEY 0x0004 /* Key is a public key */ |
#define CONTEXT_FLAG_MAX 0x1FFF /* Maximum possible flag value */ |
#define CONTEXT_FLAG_OPENPGPKEYID_SET 0x0800 /* OpenPGP keyID is set */ |
#define CONTEXT_FLAG_PERSISTENT 0x0040 /* Context is backed by dev.or keyset */ |
#define CONTEXT_FLAG_PGPKEYID_SET 0x0400 /* PGP keyID is set */ |
#define CONTEXT_FLAG_SIDECHANNELPROTECTION 0x0080 /* Enabled side-channel prot.in ops */ |
#define CONTEXT_FLAG_STATICCONTEXT 0x1000 /* Static context */ |
#define DLP_OVERFLOW_SIZE bitsToBytes( 32 ) |
#define DLPPARAM_MAX_G CRYPT_MAX_PKCSIZE |
#define DLPPARAM_MAX_P CRYPT_MAX_PKCSIZE |
#define DLPPARAM_MAX_Q CRYPT_MAX_PKCSIZE |
#define DLPPARAM_MAX_X CRYPT_MAX_PKCSIZE |
#define DLPPARAM_MAX_Y CRYPT_MAX_PKCSIZE |
#define DLPPARAM_MIN_P MIN_PKCSIZE |
#define DLPPARAM_MIN_Q bitsToBytes( 128 ) |
#define DLPPARAM_MIN_SIG_R DLPPARAM_MIN_Q /* For DSA sigs */ |
#define DLPPARAM_MIN_SIG_S DLPPARAM_MIN_Q /* For DSA sigs */ |
#define DLPPARAM_MIN_X bitsToBytes( 128 ) |
#define DLPPARAM_MIN_Y MIN_PKCSIZE |
#define dlpTmp3 param8 /* More temp.values for DLP PKCs */ |
#define ECCPARAM_MAX_A CRYPT_MAX_PKCSIZE_ECC |
#define ECCPARAM_MAX_B CRYPT_MAX_PKCSIZE_ECC |
#define ECCPARAM_MAX_D CRYPT_MAX_PKCSIZE_ECC |
#define ECCPARAM_MAX_GX CRYPT_MAX_PKCSIZE_ECC |
#define ECCPARAM_MAX_GY CRYPT_MAX_PKCSIZE_ECC |
#define ECCPARAM_MAX_H CRYPT_MAX_PKCSIZE_ECC |
#define ECCPARAM_MAX_N CRYPT_MAX_PKCSIZE_ECC |
#define ECCPARAM_MAX_P CRYPT_MAX_PKCSIZE_ECC |
#define ECCPARAM_MAX_QX CRYPT_MAX_PKCSIZE_ECC |
#define ECCPARAM_MAX_QY CRYPT_MAX_PKCSIZE_ECC |
#define ECCPARAM_MIN_A MIN_PKCSIZE_ECC / 2 |
#define ECCPARAM_MIN_B MIN_PKCSIZE_ECC / 2 |
#define ECCPARAM_MIN_D MIN_PKCSIZE_ECC / 2 |
#define ECCPARAM_MIN_H MIN_PKCSIZE_ECC |
#define ECCPARAM_MIN_N MIN_PKCSIZE_ECC |
#define ECCPARAM_MIN_P MIN_PKCSIZE_ECC |
#define ECCPARAM_MIN_QX MIN_PKCSIZE_ECC / 2 |
#define ECCPARAM_MIN_QY MIN_PKCSIZE_ECC / 2 |
#define ECCPARAM_MIN_SIG_R ECCPARAM_MIN_QX /* For ECDSA sigs */ |
#define ECCPARAM_MIN_SIG_S ECCPARAM_MIN_QX /* For ECDSA sigs */ |
#define getBnStatus | ( | x | ) | ( bnStatus ? CRYPT_OK : CRYPT_ERROR_FAILED ) |
#define needsKey | ( | contextInfoPtr | ) | !( ( contextInfoPtr )->flags & CONTEXT_FLAG_KEY_SET ) |
#define needsSecureMemory | ( | contextType | ) |
#define RSAPARAM_MAX_D CRYPT_MAX_PKCSIZE |
#define RSAPARAM_MAX_EXP1 CRYPT_MAX_PKCSIZE |
#define RSAPARAM_MAX_EXP2 CRYPT_MAX_PKCSIZE |
#define RSAPARAM_MAX_N CRYPT_MAX_PKCSIZE |
#define RSAPARAM_MAX_P CRYPT_MAX_PKCSIZE |
#define RSAPARAM_MAX_Q CRYPT_MAX_PKCSIZE |
#define RSAPARAM_MAX_U CRYPT_MAX_PKCSIZE |
#define RSAPARAM_MIN_D MIN_PKCSIZE |
#define RSAPARAM_MIN_EXP1 MIN_PKCSIZE / 2 |
#define RSAPARAM_MIN_EXP2 MIN_PKCSIZE / 2 |
#define RSAPARAM_MIN_N MIN_PKCSIZE |
#define RSAPARAM_MIN_P MIN_PKCSIZE / 2 |
#define RSAPARAM_MIN_Q MIN_PKCSIZE / 2 |
#define RSAPARAM_MIN_U MIN_PKCSIZE / 2 |
typedef struct CI CONTEXT_INFO |
enum CONTEXT_TYPE |
CHECK_RETVAL int attributeToFormatType | ( | IN_ATTRIBUTE const CRYPT_ATTRIBUTE_TYPE | attribute, |
OUT_ENUM_OPT(KEYFORMAT) KEYFORMAT_TYPE * | keyformat | ||
) |
CHECK_RETVAL INOUT void IN_BUFFER | ( | keySize | ) | const |
CHECK_RETVAL INOUT void IN_BUFFER | ( | dataLength | ) | const |
CHECK_RETVAL IN_ATTRIBUTE const CRYPT_ATTRIBUTE_TYPE IN_BUFFER | ( | keyDataLen | ) | const |
CHECK_RETVAL IN_BUFFER | ( | keyValueLen | ) | const |
CHECK_RETVAL INOUT void IN_BUFFER_OPT | ( | dataLength | ) | const |
IN_LENGTH_SHORT_Z const int IN_BUFFER_OPT | ( | inLength | ) | const |
CHECK_RETVAL IN_ENUM | ( | CONTEXT_TYPE | ) | const |
IN_LENGTH_SHORT_Z const int IN_LENGTH_SHORT_Z const int IN_ENUM | ( | HASH_STATE | ) | const |
CHECK_RETVAL IN_HANDLE const CRYPT_USER const CAPABILITY_INFO IN_FLAGS_Z | ( | CREATEOBJECT | ) | const |
CHECK_RETVAL const CAPABILITY_INFO IN_LENGTH_SHORT_MIN | ( | 32 | ) | const |
CHECK_RETVAL INOUT void IN_LENGTH_SHORT_MIN | ( | MIN_KEYSIZE | ) | const |
CHECK_RETVAL INOUT void IN_LENGTH_SHORT_MIN | ( | 8 | ) | const |
BYTE IN_LENGTH_SHORT_MIN | ( | 16 | ) | const |
BYTE IN_LENGTH_SHORT_MIN | ( | 20 | ) | const |
BYTE IN_LENGTH_SHORT_MIN | ( | 64 | ) | const |
CHECK_RETVAL const CAPABILITY_INFO OUT_BUFFER_FIXED | ( | contextDataSize | ) |
OUT_BUFFER_OPT_C | ( | outBufMaxLength | , |
16 | |||
) |
OUT_BUFFER_OPT_C | ( | outBufMaxLength | , |
20 | |||
) |
OUT_BUFFER_OPT_C | ( | outBufMaxLength | , |
32 | |||
) |
OUT_BUFFER_OPT_C | ( | outBufMaxLength | , |
64 | |||
) |
CHECK_RETVAL STDC_NONNULL_ARG | ( | (1) | ) | const |
CHECK_RETVAL STDC_NONNULL_ARG | ( | (1, 3) | ) |
CHECK_RETVAL STDC_NONNULL_ARG | ( | (1, 3, 4) | ) |
CHECK_RETVAL STDC_NONNULL_ARG | ( | (1, 2, 3, 5, 6) | ) | const |
CHECK_RETVAL STDC_NONNULL_ARG | ( | (1, 2, 5) | ) | const |
CHECK_RETVAL STDC_NONNULL_ARG | ( | (1, 2, 3, 5, 7) | ) | const |
CHECK_RETVAL STDC_NONNULL_ARG | ( | (1, 2) | ) |
CHECK_RETVAL IN_ATTRIBUTE const SSH_ATTRIBUTE_TYPE attribute |
CHECK_RETVAL const CAPABILITY_INFO * capabilityInfoPtr |
CHECK_RETVAL IN_LENGTH const int dataLength |
CHECK_RETVAL INOUT void* hashDataStorage |
CHECK_RETVAL INOUT void const void * hashValue |
CHECK_RETVAL IN_HANDLE const CRYPT_USER iCryptOwner |
CHECK_RETVAL const CAPABILITY_INFO IN_OPT void* keyData |
CHECK_RETVAL IN_ATTRIBUTE const CRYPT_ATTRIBUTE_TYPE IN_LENGTH_SHORT const int keyDataLen |
CHECK_RETVAL INOUT void* keyDataStorage |
CHECK_RETVAL IN_LENGTH_SHORT const int keyValueLen |
CHECK_RETVAL INOUT void* macDataStorage |
CHECK_RETVAL INOUT MESSAGE_DATA* msgData |
CHECK_RETVAL INOUT void const void* plaintext |