SecureBlackbox 2020 C++ Edition

Questions / Feedback?

EncryptionInfo Event

Reports early information on encryption parameters.

Syntax

ANSI (Cross Platform)
virtual int FireEncryptionInfo(PGPReaderEncryptionInfoEventParams *e);
typedef struct {
const char *KeyIDs;
int IntegrityProtected;
int PassphraseUsed; int reserved; } PGPReaderEncryptionInfoEventParams; Unicode (Windows) virtual INT FireEncryptionInfo(PGPReaderEncryptionInfoEventParams *e);
typedef struct {
LPCWSTR KeyIDs;
BOOL IntegrityProtected;
BOOL PassphraseUsed; INT reserved; } PGPReaderEncryptionInfoEventParams;
- (void)onEncryptionInfo:(NSString*)keyIDs :(BOOL)integrityProtected :(BOOL)passphraseUsed;
#define EID_PGPREADER_ENCRYPTIONINFO 1

virtual INT SECUREBLACKBOX_CALL FireEncryptionInfo(LPSTR &lpszKeyIDs, BOOL &bIntegrityProtected, BOOL &bPassphraseUsed);

Remarks

The class fires this event to report early encryption information. Use this event to find out what encryption type is used, and to provide appropriate decryption material (the secret keys or the password) via DecryptingKeys or Passphrase properties.

KeyIDs contains the IDs of the keys that can be used to decrypt the data. PassphraseUsed shows if the message can also be decrypted with a passphrase. Both can be set at the same time, indicating that each of the decryption routes can be taken.

IntegrityProtected parameter specifies whether the message includes a modification detection record.

Copyright (c) 2022 /n software inc. - All rights reserved.
SecureBlackbox 2020 C++ Edition - Version 20.0 [Build 8166]