win32crypt.CryptQueryObject
dict = CryptQueryObject(ObjectType, Object , ExpectedContentTypeFlags , ExpectedFormatTypeFlags , Flags )
Determines the cryptographic type of input data
Parameters
Return Value
Returns a dictionary containing{MsgAndCertEncodingType:int, ## encoding type, usually X509_ASN_ENCODING combined with PKCS_7_ASN_ENCODING
ContentType:int, ## One of the CERT_QUERY_CONTENT_* constants
FormatType:int, ## One of the CERT_QUERY_FORMAT_* constants
CertStore:PyCERTSTORE, ## Handle to certificate store containing all certficates in the object, may be None
Msg:PyCRYPTMSG, ## If input doesn't contains a PKCS7 message, will be None
Context:PyCERT_CONTEXT} ## A certificate, CRL, or CTL context depending on ContentType, may be None