methodiEncapsulatedPublicKey.get_AsDhpublicnumber
function get_AsDhpublicnumber: iASN1Integer;
iEncapsulatedPublicKey is the ASN.1 CHOICE that holds the actual public-key bits inside a certificate's subjectPublicKeyInfo (see iSubjectPublicKeyInfo. subjectPublicKey). An application reaches it after parsing a certificate to read out the peer's key: first inspect Choice to learn which algorithm the certificate carries, then read the matching AsXxx accessor to obtain the key. Reading an AsXxx accessor also SELECTS that CHOICE alternative, so the typical build-a-cert flow is the mirror image: pick the alternative via the accessor (or set Choice) and then fill in the returned key. Most apps touch this only indirectly via the ImposeXxxPublicKey helpers on iSubjectPublicKeyInfo and via the library's own certificate parsing/verification; direct use is for code that must introspect or hand-assemble a subjectPublicKeyInfo. Getter for the Diffie-Hellman (dhpublicnumber) alternative; selects it and returns the public value y as an ASN.1 INTEGER.