PyCtxtHandle.EncryptMessage

EncryptMessage(fqop, Message, MessageSeqNo)

Encrypts data with session key of security context

Parameters

fqop : int

Flags that indicate quality of protection desired, specific to each security package

Message : PySecBufferDesc

PySecBufferDesc that contains data buffer(s) to be encrypted

MessageSeqNo : int

A sequential number used by some packages to verify that no extraneous messages have been received

Comments

The buffer configuration is dependent on the security package. Usually there is one input buffer of type SECBUFFER_DATA to be encrypted in-place and another empty buffer of type SECBUFFER_PADDING or SECBUFFER_TOKEN to receive signature or padding data

Return Value

Returns None on success, and buffer(s) will contain encrypted data