GetDeviceCryptoIDContainerInfo

Declaration

Delphi

function GetDeviceCryptoIDContainerInfo(var outLen: Integer): Pointer;

C/C++

SOPAD_API LPVOID SOPAD_GetDeviceCryptoIDContainerInfo(int* outLen);

ActiveX

HRESULT GetDeviceCryptoIDContainerInfo([out, retval] VARIANT* Result);

Description

Function retrieves CryptoID container information from device or returns NULL if pad does not support CryptoID V2.

Arguments

outLen

XML file size in bytes.

Return value

Pointer to memory block with CryptoID container information. For ActiveX - single-dimensional array.

The Result is formated to XML and the XSD definition can found in the Samples section.



XML Schema

XML
<?xml version="1.0" encoding="UTF-8"?>
<schema xmlns="http://www.w3.org/2001/XMLSchema" targetNamespace="http://www.stepover.org/CryptoIDContaineInfoXMLSchema" xmlns:tns="http://www.stepover.org/CryptoIDContaineInfoXMLSchema" elementFormDefault="qualified">

    

    <complexType name="TCryptoIDInfo">
        <sequence>
            <element name="id" type="int"></element>
            <element name="description" type="string"></element>
            <element name="padCertLength" type="int"></element>
            <element name="padNotaryLength" type="int"></element>
        </sequence>
    </complexType>


    <element name="CryptoIDInfoList" type="tns:TCryptoIDInfoList"></element>

    <complexType name="TCryptoIDInfoList">
        <sequence>
            <element name="CryptoIDInfo" type="tns:TCryptoIDInfo" maxOccurs="unbounded" minOccurs="0"></element>
        </sequence>
    </complexType>
</schema>


Sample result

XML
<CryptoIDInfoList xmlns="http://www.stepover.com/CryptoIDContaineInfoXMLSchema">
    <CryptoIDInfo>
        <id>0</id>
        <description>StepOver cryptoIdv1</description>
        <padCertLength>256</padCertLength>
        <padNotaryLength>256</padNotaryLength>
    </CryptoIDInfo>

    <CryptoIDInfo>
        <id>1</id>
        <description>No description</description>
        <padCertLength>256</padCertLength>
        <padNotaryLength>256</padNotaryLength>
    </CryptoIDInfo>
    
    <CryptoIDInfo>
        <id>2</id>
        <description>No description</description>
        <padCertLength>384</padCertLength>
        <padNotaryLength>256</padNotaryLength>
    </CryptoIDInfo>
    
    <CryptoIDInfo>
        <id>3</id>
        <description>No description</description>
        <padCertLength>384</padCertLength>
        <padNotaryLength>384</padNotaryLength>
    </CryptoIDInfo>
    
    <CryptoIDInfo>
        <id>4</id>
        <description>No description</description>
        <padCertLength>512</padCertLength>
        <padNotaryLength>256</padNotaryLength>
    </CryptoIDInfo>
    
    <CryptoIDInfo>
        <id>5</id>
        <description>No description</description>
        <padCertLength>512</padCertLength>
        <padNotaryLength>512</padNotaryLength>
    </CryptoIDInfo>
</CryptoIDInfoList>