CryptoAPI

De UnixWiki
Version datée du 23 mai 2017 à 11:38 par Futex (discussion | contributions)
(diff) ← Version précédente | Voir la version actuelle (diff) | Version suivante → (diff)
Aller à la navigation Aller à la recherche

CryptAcquireContext

dwProvType hex value:

   PROV_RSA_FULL       0X1
   PROV_RSA_AES        0x18
   PROV_RSA_SIG        0x2
   PROV_RSA_SCHANNEL   0xC
   PROV_DSS            0x3
   PROV_DSS_DH         0xD
   PROV_DH_SCHANNEL    0x12
   PROV_FORTEZZA       0x4
   PROV_MS_EXCHANGE    0x5
   PROV_SSL            0x6

dwFlags

   CRYPT_VERIFYCONTEXT                0xF0000000
   CRYPT_NEWKEYSET                    0x8
   CRYPT_MACHINE_KEYSET               0x20
   CRYPT_DELETEKEYSET                 0x10
   CRYPT_SILENT                       0X40
   CRYPT_DEFAULT_CONTAINER_OPTIONAL   0X80


CryptGenKey

ALG_ID values:

   CALG_3DES 0x00006603
   CALG_3DES_112 0x00006609
   CALG_AES 0x00006611
   CALG_AES_128 0x0000660e
   CALG_AES_192 0x0000660f
   CALG_AES_256 0x00006610
   CALG_AGREEDKEY_ANY 0x0000aa03
   CALG_CYLINK_MEK 0x0000660c
   CALG_DES 0x00006601
   CALG_DESX 0x00006604
   CALG_DH_EPHEM 0x0000aa02
   CALG_DH_SF 0x0000aa01
   CALG_DSS_SIGN 0x00002200
   CALG_ECDH 0x0000aa05
   CALG_ECDH_EPHEM 0x0000ae06
   CALG_ECDSA 0x00002203
   CALG_ECMQV 0x0000a001
   CALG_HASH_REPLACE_OWF 0x0000800b
   CALG_HUGHES_MD5 0x0000a003
   CALG_HMAC 0x00008009
   CALG_KEA_KEYX 0x0000aa04
   CALG_MAC 0x00008005
   CALG_MD2 0x00008001
   CALG_MD4 0x00008002
   CALG_MD5 0x00008003
   CALG_NO_SIGN 0x00002000
   CALG_OID_INFO_CNG_ONLY 0xffffffff
   CALG_OID_INFO_PARAMETERS 0xfffffffe
   CALG_PCT1_MASTER 0x00004c04
   CALG_RC2 0x00006602
   CALG_RC4 0x00006801
   CALG_RC5 0x0000660d
   CALG_RSA_KEYX 0x0000a400
   CALG_RSA_SIGN 0x00002400
   CALG_SCHANNEL_ENC_KEY 0x00004c07
   CALG_SCHANNEL_MAC_KEY 0x00004c03
   CALG_SCHANNEL_MASTER_HASH 0x00004c02
   CALG_SEAL 0x00006802
   CALG_SHA 0x00008004
   CALG_SHA1 0x00008004
   CALG_SHA_256 0x0000800c
   CALG_SHA_384 0x0000800d
   CALG_SHA_512 0x0000800e
   CALG_SKIPJACK 0x0000660a
   CALG_SSL2_MASTER 0x00004c05
   CALG_SSL3_MASTER 0x00004c01
   CALG_SSL3_SHAMD5 0x00008008
   CALG_TEK 0x0000660b
   CALG_TLS1_MASTER 0x00004c06
   CALG_TLS1PRF 0x0000800a