Contents · Forum Home · StreamSec Tools 4.1.5.363 documentation

NewPkcs11DLPrivateKey

function NewPkcs11DLPrivateKey(aToken : tPkcs11Token; aHandle: CK_OBJECT_HANDLE; const aPubl : iDLPublicKey): iDLPrivateKey;
The EC counterpart. Needs the matching PUBLIC key because a discrete-log private key cannot exist without its domain parameters, and a token key has no in-process scalar to infer them from -- aPubl supplies both the curve (Params) and the arithmetic engine (Pool). In practice that public key comes from the certificate paired with the token key by CKA_ID, which the caller has already loaded.