SecureBlackbox 2020 C++ Edition

Questions / Feedback?

BeforeGenerateKey Event

Fires when a key generation request is received.

Syntax

ANSI (Cross Platform)
virtual int FireBeforeGenerateKey(KMIPServerBeforeGenerateKeyEventParams *e);
typedef struct {
int64 ConnectionId;
char *KeyAlgorithm;
int KeyLength;
char *DefaultECCurve; int reserved; } KMIPServerBeforeGenerateKeyEventParams; Unicode (Windows) virtual INT FireBeforeGenerateKey(KMIPServerBeforeGenerateKeyEventParams *e);
typedef struct {
LONG64 ConnectionId;
LPWSTR KeyAlgorithm;
INT KeyLength;
LPWSTR DefaultECCurve; INT reserved; } KMIPServerBeforeGenerateKeyEventParams;
- (void)onBeforeGenerateKey:(long long)connectionId :(NSString**)keyAlgorithm :(int*)keyLength :(NSString**)defaultECCurve;
#define EID_KMIPSERVER_BEFOREGENERATEKEY 5

virtual INT SECUREBLACKBOX_CALL FireBeforeGenerateKey(LONG64 &lConnectionId, LPSTR &lpszKeyAlgorithm, INT &iKeyLength, LPSTR &lpszDefaultECCurve);

Remarks

The class fires this event when it receives a request from the client to generate a key or keypair. KeyAlgorithm, KeyLength, and DefaultECCurve parameters specify the requested key properties.

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