cryptlib
3.4.1
|
Go to the source code of this file.
Classes | |
struct | CMS_CONTENT_INFO |
Macros | |
#define | OID_CRYPTLIB_PRESENCECHECK MKOID( "\x06\x0A\x2B\x06\x01\x04\x01\x97\x55\x03\x01\x01" ) |
#define | OID_ESS_CERTID MKOID( "\x06\x0B\x2A\x86\x48\x86\xF7\x0D\x01\x09\x10\x02\x0C" ) |
#define | OID_TSP_TSTOKEN MKOID( "\x06\x0B\x2A\x86\x48\x86\xF7\x0D\x01\x09\x10\x02\x0E" ) |
#define | OID_PKCS9_FRIENDLYNAME MKOID( "\x06\x09\x2A\x86\x48\x86\xF7\x0D\x01\x09\x14" ) |
#define | OID_PKCS9_LOCALKEYID MKOID( "\x06\x09\x2A\x86\x48\x86\xF7\x0D\x01\x09\x15" ) |
#define | OID_PKCS9_X509CERTIFICATE MKOID( "\x06\x0A\x2A\x86\x48\x86\xF7\x0D\x01\x09\x16\x01" ) |
#define | OID_PKCS9_EXTREQ MKOID( "\x06\x09\x2A\x86\x48\x86\xF7\x0D\x01\x09\x0E" ) |
#define | OID_MS_EXTREQ MKOID( "\x06\x0A\x2B\x06\x01\x04\x01\x82\x37\x02\x01\x0E" ) |
#define | OID_CMS_DATA MKOID( "\x06\x09\x2A\x86\x48\x86\xF7\x0D\x01\x07\x01" ) |
#define | OID_CMS_SIGNEDDATA MKOID( "\x06\x09\x2A\x86\x48\x86\xF7\x0D\x01\x07\x02" ) |
#define | OID_CMS_ENVELOPEDDATA MKOID( "\x06\x09\x2A\x86\x48\x86\xF7\x0D\x01\x07\x03" ) |
#define | OID_CMS_DIGESTEDDATA MKOID( "\x06\x09\x2A\x86\x48\x86\xF7\x0D\x01\x07\x05" ) |
#define | OID_CMS_ENCRYPTEDDATA MKOID( "\x06\x09\x2A\x86\x48\x86\xF7\x0D\x01\x07\x06" ) |
#define | OID_CMS_AUTHDATA MKOID( "\x06\x0B\x2A\x86\x48\x86\xF7\x0D\x01\x09\x10\x01\x02" ) |
#define | OID_CMS_TSTOKEN MKOID( "\x06\x0B\x2A\x86\x48\x86\xF7\x0D\x01\x09\x10\x01\x04" ) |
#define | OID_CMS_COMPRESSEDDATA MKOID( "\x06\x0B\x2A\x86\x48\x86\xF7\x0D\x01\x09\x10\x01\x09" ) |
#define | OID_CMS_AUTHENVDATA MKOID( "\x06\x0B\x2A\x86\x48\x86\xF7\x0D\x01\x09\x10\x01\x17" ) |
#define | OID_CRYPTLIB_CONTENTTYPE MKOID( "\x06\x09\x2B\x06\x01\x04\x01\x97\x55\x04\x01" ) |
#define | OID_CRYPTLIB_CONFIGDATA MKOID( "\x06\x0A\x2B\x06\x01\x04\x01\x97\x55\x04\x01\x01" ) |
#define | OID_CRYPTLIB_USERINDEX MKOID( "\x06\x0A\x2B\x06\x01\x04\x01\x97\x55\x04\x01\x02" ) |
#define | OID_CRYPTLIB_USERINFO MKOID( "\x06\x0A\x2B\x06\x01\x04\x01\x97\x55\x04\x01\x03" ) |
#define | OID_CRYPTLIB_RTCSREQ MKOID( "\x06\x0A\x2B\x06\x01\x04\x01\x97\x55\x04\x01\x04" ) |
#define | OID_CRYPTLIB_RTCSRESP MKOID( "\x06\x0A\x2B\x06\x01\x04\x01\x97\x55\x04\x01\x05" ) |
#define | OID_CRYPTLIB_RTCSRESP_EXT MKOID( "\x06\x0A\x2B\x06\x01\x04\x01\x97\x55\x04\x01\x06" ) |
#define | OID_MS_SPCINDIRECTDATACONTEXT MKOID( "\x06\x0A\x2B\x06\x01\x04\x01\x82\x37\x02\x01\x04" ) |
#define | OID_NS_CERTSEQ MKOID( "\x06\x09\x60\x86\x48\x01\x86\xF8\x42\x02\x05" ) |
#define | OID_OCSP_RESPONSE_OCSP MKOID( "\x06\x09\x2B\x06\x01\x05\x05\x07\x30\x01\x01" ) |
#define | OID_PKIBOOT MKOID( "\x06\x0A\x2B\x06\x01\x04\x01\x97\x55\x03\x01\x02" ) |
#define | OID_PKCS12_SHROUDEDKEYBAG MKOID( "\x06\x0B\x2A\x86\x48\x86\xF7\x0D\x01\x0C\x0A\x01\x02" ) |
#define | OID_PKCS12_CERTBAG MKOID( "\x06\x0B\x2A\x86\x48\x86\xF7\x0D\x01\x0C\x0A\x01\x03" ) |
#define | OID_PKCS15_CONTENTTYPE MKOID( "\x06\x0A\x2A\x86\x48\x86\xF7\x0D\x01\x0F\x03\x01" ) |
#define | OID_ANYPOLICY MKOID( "\x06\x04\x55\x1D\x20\x00" ) |
#define | OID_CRYPTLIB_XYZZYCERT MKOID( "\x06\x0C\x2B\x06\x01\x04\x01\x97\x55\x58\x59\x5A\x5A\x59" ) |
#define | OID_PKCS12_PBEWITHSHAAND3KEYTRIPLEDESCBC MKOID( "\x06\x0A\x2A\x86\x48\x86\xF7\x0D\x01\x0C\x01\x03" ) |
#define | OID_PKCS12_PBEWITHSHAAND2KEYTRIPLEDESCBC MKOID( "\x06\x0A\x2A\x86\x48\x86\xF7\x0D\x01\x0C\x01\x04" ) |
#define | OID_PKCS12_PBEWITHSHAAND40BITRC2CBC MKOID( "\x06\x0A\x2A\x86\x48\x86\xF7\x0D\x01\x0C\x01\x06" ) |
#define | OID_RPKI_POLICY MKOID( "\x06\x08\x2B\x06\x01\x05\x05\x07\x0E\x02" ) |
#define | OID_ZLIB MKOID( "\x06\x0B\x2A\x86\x48\x86\xF7\x0D\x01\x09\x10\x03\x08" ) |
#define | READCMS_FLAG_NONE 0x00 /* No CMS read flag */ |
#define | READCMS_FLAG_INNERHEADER 0x01 /* Inner CMS header */ |
#define | READCMS_FLAG_AUTHENC 0x02 /* Content uses auth.enc */ |
#define | READCMS_FLAG_WRAPPERONLY 0x04 /* Only read wrapper */ |
#define | READCMS_FLAG_DEFINITELENGTH 0x08 /* Try and get definte len */ |
#define | READCMS_FLAG_DEFINITELENGTH_OPT 0x10/* Opt.try and get def.len */ |
#define | READCMS_FLAG_MAX 0x1F /* Maximum possible flag value */ |
Enumerations | |
enum | ALGOID_CLASS_TYPE { ALGOID_CLASS_NONE, ALGOID_CLASS_CRYPT, ALGOID_CLASS_HASH, ALGOID_CLASS_AUTHENC, ALGOID_CLASS_PKC, ALGOID_CLASS_PKCSIG, ALGOID_CLASS_LAST } |
#define OID_ANYPOLICY MKOID( "\x06\x04\x55\x1D\x20\x00" ) |
Definition at line 87 of file asn1_ext.h.
#define OID_CMS_AUTHDATA MKOID( "\x06\x0B\x2A\x86\x48\x86\xF7\x0D\x01\x09\x10\x01\x02" ) |
Definition at line 66 of file asn1_ext.h.
#define OID_CMS_AUTHENVDATA MKOID( "\x06\x0B\x2A\x86\x48\x86\xF7\x0D\x01\x09\x10\x01\x17" ) |
Definition at line 69 of file asn1_ext.h.
#define OID_CMS_COMPRESSEDDATA MKOID( "\x06\x0B\x2A\x86\x48\x86\xF7\x0D\x01\x09\x10\x01\x09" ) |
Definition at line 68 of file asn1_ext.h.
#define OID_CMS_DATA MKOID( "\x06\x09\x2A\x86\x48\x86\xF7\x0D\x01\x07\x01" ) |
Definition at line 61 of file asn1_ext.h.
#define OID_CMS_DIGESTEDDATA MKOID( "\x06\x09\x2A\x86\x48\x86\xF7\x0D\x01\x07\x05" ) |
Definition at line 64 of file asn1_ext.h.
#define OID_CMS_ENCRYPTEDDATA MKOID( "\x06\x09\x2A\x86\x48\x86\xF7\x0D\x01\x07\x06" ) |
Definition at line 65 of file asn1_ext.h.
#define OID_CMS_ENVELOPEDDATA MKOID( "\x06\x09\x2A\x86\x48\x86\xF7\x0D\x01\x07\x03" ) |
Definition at line 63 of file asn1_ext.h.
#define OID_CMS_SIGNEDDATA MKOID( "\x06\x09\x2A\x86\x48\x86\xF7\x0D\x01\x07\x02" ) |
Definition at line 62 of file asn1_ext.h.
#define OID_CMS_TSTOKEN MKOID( "\x06\x0B\x2A\x86\x48\x86\xF7\x0D\x01\x09\x10\x01\x04" ) |
Definition at line 67 of file asn1_ext.h.
#define OID_CRYPTLIB_CONFIGDATA MKOID( "\x06\x0A\x2B\x06\x01\x04\x01\x97\x55\x04\x01\x01" ) |
Definition at line 71 of file asn1_ext.h.
#define OID_CRYPTLIB_CONTENTTYPE MKOID( "\x06\x09\x2B\x06\x01\x04\x01\x97\x55\x04\x01" ) |
Definition at line 70 of file asn1_ext.h.
#define OID_CRYPTLIB_PRESENCECHECK MKOID( "\x06\x0A\x2B\x06\x01\x04\x01\x97\x55\x03\x01\x01" ) |
Definition at line 45 of file asn1_ext.h.
#define OID_CRYPTLIB_RTCSREQ MKOID( "\x06\x0A\x2B\x06\x01\x04\x01\x97\x55\x04\x01\x04" ) |
Definition at line 74 of file asn1_ext.h.
#define OID_CRYPTLIB_RTCSRESP MKOID( "\x06\x0A\x2B\x06\x01\x04\x01\x97\x55\x04\x01\x05" ) |
Definition at line 75 of file asn1_ext.h.
#define OID_CRYPTLIB_RTCSRESP_EXT MKOID( "\x06\x0A\x2B\x06\x01\x04\x01\x97\x55\x04\x01\x06" ) |
Definition at line 76 of file asn1_ext.h.
#define OID_CRYPTLIB_USERINDEX MKOID( "\x06\x0A\x2B\x06\x01\x04\x01\x97\x55\x04\x01\x02" ) |
Definition at line 72 of file asn1_ext.h.
#define OID_CRYPTLIB_USERINFO MKOID( "\x06\x0A\x2B\x06\x01\x04\x01\x97\x55\x04\x01\x03" ) |
Definition at line 73 of file asn1_ext.h.
#define OID_CRYPTLIB_XYZZYCERT MKOID( "\x06\x0C\x2B\x06\x01\x04\x01\x97\x55\x58\x59\x5A\x5A\x59" ) |
Definition at line 88 of file asn1_ext.h.
#define OID_ESS_CERTID MKOID( "\x06\x0B\x2A\x86\x48\x86\xF7\x0D\x01\x09\x10\x02\x0C" ) |
Definition at line 46 of file asn1_ext.h.
#define OID_MS_EXTREQ MKOID( "\x06\x0A\x2B\x06\x01\x04\x01\x82\x37\x02\x01\x0E" ) |
Definition at line 57 of file asn1_ext.h.
#define OID_MS_SPCINDIRECTDATACONTEXT MKOID( "\x06\x0A\x2B\x06\x01\x04\x01\x82\x37\x02\x01\x04" ) |
Definition at line 77 of file asn1_ext.h.
#define OID_NS_CERTSEQ MKOID( "\x06\x09\x60\x86\x48\x01\x86\xF8\x42\x02\x05" ) |
Definition at line 78 of file asn1_ext.h.
#define OID_OCSP_RESPONSE_OCSP MKOID( "\x06\x09\x2B\x06\x01\x05\x05\x07\x30\x01\x01" ) |
Definition at line 79 of file asn1_ext.h.
#define OID_PKCS12_CERTBAG MKOID( "\x06\x0B\x2A\x86\x48\x86\xF7\x0D\x01\x0C\x0A\x01\x03" ) |
Definition at line 82 of file asn1_ext.h.
#define OID_PKCS12_PBEWITHSHAAND2KEYTRIPLEDESCBC MKOID( "\x06\x0A\x2A\x86\x48\x86\xF7\x0D\x01\x0C\x01\x04" ) |
Definition at line 90 of file asn1_ext.h.
#define OID_PKCS12_PBEWITHSHAAND3KEYTRIPLEDESCBC MKOID( "\x06\x0A\x2A\x86\x48\x86\xF7\x0D\x01\x0C\x01\x03" ) |
Definition at line 89 of file asn1_ext.h.
#define OID_PKCS12_PBEWITHSHAAND40BITRC2CBC MKOID( "\x06\x0A\x2A\x86\x48\x86\xF7\x0D\x01\x0C\x01\x06" ) |
Definition at line 91 of file asn1_ext.h.
#define OID_PKCS12_SHROUDEDKEYBAG MKOID( "\x06\x0B\x2A\x86\x48\x86\xF7\x0D\x01\x0C\x0A\x01\x02" ) |
Definition at line 81 of file asn1_ext.h.
#define OID_PKCS15_CONTENTTYPE MKOID( "\x06\x0A\x2A\x86\x48\x86\xF7\x0D\x01\x0F\x03\x01" ) |
Definition at line 83 of file asn1_ext.h.
#define OID_PKCS9_EXTREQ MKOID( "\x06\x09\x2A\x86\x48\x86\xF7\x0D\x01\x09\x0E" ) |
Definition at line 56 of file asn1_ext.h.
#define OID_PKCS9_FRIENDLYNAME MKOID( "\x06\x09\x2A\x86\x48\x86\xF7\x0D\x01\x09\x14" ) |
Definition at line 48 of file asn1_ext.h.
#define OID_PKCS9_LOCALKEYID MKOID( "\x06\x09\x2A\x86\x48\x86\xF7\x0D\x01\x09\x15" ) |
Definition at line 49 of file asn1_ext.h.
#define OID_PKCS9_X509CERTIFICATE MKOID( "\x06\x0A\x2A\x86\x48\x86\xF7\x0D\x01\x09\x16\x01" ) |
Definition at line 50 of file asn1_ext.h.
#define OID_PKIBOOT MKOID( "\x06\x0A\x2B\x06\x01\x04\x01\x97\x55\x03\x01\x02" ) |
Definition at line 80 of file asn1_ext.h.
#define OID_RPKI_POLICY MKOID( "\x06\x08\x2B\x06\x01\x05\x05\x07\x0E\x02" ) |
Definition at line 92 of file asn1_ext.h.
#define OID_TSP_TSTOKEN MKOID( "\x06\x0B\x2A\x86\x48\x86\xF7\x0D\x01\x09\x10\x02\x0E" ) |
Definition at line 47 of file asn1_ext.h.
#define OID_ZLIB MKOID( "\x06\x0B\x2A\x86\x48\x86\xF7\x0D\x01\x09\x10\x03\x08" ) |
Definition at line 93 of file asn1_ext.h.
#define READCMS_FLAG_AUTHENC 0x02 /* Content uses auth.enc */ |
Definition at line 238 of file asn1_ext.h.
#define READCMS_FLAG_DEFINITELENGTH 0x08 /* Try and get definte len */ |
Definition at line 240 of file asn1_ext.h.
#define READCMS_FLAG_DEFINITELENGTH_OPT 0x10/* Opt.try and get def.len */ |
Definition at line 241 of file asn1_ext.h.
#define READCMS_FLAG_INNERHEADER 0x01 /* Inner CMS header */ |
Definition at line 237 of file asn1_ext.h.
#define READCMS_FLAG_MAX 0x1F /* Maximum possible flag value */ |
Definition at line 242 of file asn1_ext.h.
#define READCMS_FLAG_NONE 0x00 /* No CMS read flag */ |
Definition at line 236 of file asn1_ext.h.
#define READCMS_FLAG_WRAPPERONLY 0x04 /* Only read wrapper */ |
Definition at line 239 of file asn1_ext.h.
enum ALGOID_CLASS_TYPE |
ALGOID_CLASS_NONE | |
ALGOID_CLASS_CRYPT | |
ALGOID_CLASS_HASH | |
ALGOID_CLASS_AUTHENC | |
ALGOID_CLASS_PKC | |
ALGOID_CLASS_PKCSIG | |
ALGOID_CLASS_LAST |
Definition at line 114 of file asn1_ext.h.
CHECK_RETVAL_BOOL BOOLEAN checkAlgoID | ( | IN_ALGO const CRYPT_ALGO_TYPE | cryptAlgo, |
IN_MODE const CRYPT_MODE_TYPE | cryptMode | ||
) |
Definition at line 755 of file asn1_algid.c.
CHECK_RETVAL IN_ARRAY | ( | noOidInfoEntries | ) | const |
CHECK_RETVAL IN_BUFFER | ( | oidLength | ) | const |
RETVAL IN_ALGO const CRYPT_ALGO_TYPE IN_BUFFER | ( | hashSize | ) | const |
CHECK_RETVAL IN_BUFFER | ( | contentOIDlength | ) | const |
CHECK_RETVAL OUT_ALGO_Z CRYPT_ALGO_TYPE IN_ENUM | ( | ALGOID_CLASS | ) | const |
CHECK_RETVAL OUT_OPT_HANDLE_OPT CRYPT_CONTEXT OUT_OPT QUERY_INFO IN_FLAGS_Z | ( | READCMS | ) | const |
CHECK_RETVAL IN_RANGE | ( | 1 | , |
50 | |||
) | const |
CHECK_RETVAL OUT_ALGO_Z CRYPT_ALGO_TYPE OUT_BUFFER | ( | hashMaxLen | , |
* | hashSize | ||
) |
CHECK_RETVAL_LENGTH int sizeofAlgoID | ( | IN_ALGO const CRYPT_ALGO_TYPE | cryptAlgo | ) |
Definition at line 789 of file asn1_algid.c.
CHECK_RETVAL_LENGTH int sizeofAlgoIDex | ( | IN_ALGO const CRYPT_ALGO_TYPE | cryptAlgo, |
IN_RANGE(0, 999) const int | parameter, | ||
IN_LENGTH_SHORT_Z const int | extraLength | ||
) |
Definition at line 771 of file asn1_algid.c.
CHECK_RETVAL_LENGTH int sizeofContextAlgoID | ( | IN_HANDLE const CRYPT_CONTEXT | iCryptContext, |
IN_RANGE(0, 999) const int | parameter | ||
) |
Definition at line 934 of file asn1_algid.c.
CHECK_RETVAL_LENGTH int sizeofCryptContextAlgoID | ( | IN_HANDLE const CRYPT_CONTEXT | iCryptContext | ) |
Definition at line 552 of file asn1_algid.c.
CHECK_RETVAL_LENGTH int sizeofMessageDigest | ( | IN_ALGO const CRYPT_ALGO_TYPE | hashAlgo, |
IN_LENGTH_HASH const int | hashSize | ||
) |
Definition at line 27 of file asn1_ext.c.
RETVAL STDC_NONNULL_ARG | ( | (1) | ) |
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
Definition at line 26 of file ctx_attr.c.
CHECK_RETVAL STDC_NONNULL_ARG | ( | (1, 2) | ) |
CHECK_RETVAL STDC_NONNULL_ARG | ( | (1, 2, 3, 4) | ) |
CHECK_RETVAL STDC_NONNULL_ARG | ( | (1, 2, 3) | ) |
CHECK_RETVAL STDC_NONNULL_ARG | ( | (1, 2, 3, 5) | ) |
RETVAL STDC_NONNULL_ARG | ( | (1, 3) | ) |
CHECK_RETVAL OUT_ALGO_Z CRYPT_ALGO_TYPE OUT_ALGO_Z CRYPT_ALGO_TYPE* altCryptAlgo |
Definition at line 146 of file asn1_ext.h.
RETVAL IN_HANDLE const CRYPT_CONTEXT IN_ALGO_OPT const int associatedAlgo |
Definition at line 170 of file asn1_ext.h.
RETVAL IN_LENGTH_OID const int contentOIDlength |
Definition at line 255 of file asn1_ext.h.
CHECK_RETVAL OUT_ALGO_Z CRYPT_ALGO_TYPE* cryptAlgo |
Definition at line 135 of file asn1_ext.h.
CHECK_RETVAL IN_LENGTH_Z const int IN_LENGTH const int dataSize |
Definition at line 249 of file asn1_ext.h.
RETVAL IN_ALGO const CRYPT_ALGO_TYPE hashAlgo |
Definition at line 200 of file asn1_ext.h.
CHECK_RETVAL OUT_ALGO_Z CRYPT_ALGO_TYPE IN_LENGTH_HASH const int hashMaxLen |
Definition at line 202 of file asn1_ext.h.
RETVAL IN_ALGO const CRYPT_ALGO_TYPE IN_LENGTH_HASH const int hashSize |
Definition at line 202 of file asn1_ext.h.
RETVAL IN_LENGTH_OID const int IN_LENGTH_INDEF const long IN_HANDLE const CRYPT_CONTEXT iCryptContext |
Definition at line 164 of file asn1_ext.h.
CHECK_RETVAL IN_LENGTH_OID const int IN_LENGTH_INDEF const long const BOOLEAN isInnerHeader |
Definition at line 255 of file asn1_ext.h.
RETVAL IN_LENGTH_OID const int oidLength |
Definition at line 186 of file asn1_ext.h.
CHECK_RETVAL OUT_ALGO_Z CRYPT_ALGO_TYPE OUT_ALGO_Z CRYPT_ALGO_TYPE OUT_INT_Z int* parameter |
Definition at line 146 of file asn1_ext.h.
CHECK_RETVAL OUT_ALGO_Z CRYPT_ALGO_TYPE OUT_LENGTH_SHORT_Z int * paramLength |
Definition at line 138 of file asn1_ext.h.
Definition at line 164 of file asn1_ext.h.
Definition at line 164 of file asn1_ext.h.