Device Information Definition
Field Name |
Data Length (Byte) |
Description |
|---|---|---|
IssuerName |
40 |
Device vendor name. |
DeviceName |
16 |
Device model. |
DeviceSerial |
16 |
Device ID, which consists of the date (8 characters), batch number (3 characters), and serial number (5 characters). |
DeviceVersion |
4 |
Internal software version of the cryptographic device. |
StandardVersion |
4 |
Interface specifications version supported by the cryptographic device. |
AsymAlgAbility |
8 |
The first four bytes identify the supported asymmetric algorithms, which are represented as the result of the bitwise OR operation on the identifiers of the supported algorithms. The last four bytes identify the maximum modulus lengths of the algorithms, which are represented as the result of the bitwise OR operation on the maximum modulus lengths of the supported algorithms. |
SymAlgAbility |
4 |
Supported symmetric algorithms, represented as the result of the bitwise OR operation on their identifiers. |
HashAlgAbility |
4 |
Supported hash algorithms, represented as the result of the bitwise OR operation on their identifiers. |
BufferSize |
4 |
Maximum file storage space (unit: byte). |
Data structure definition:
typedef struct {
unsigned char IssuerName[40];
unsigned char DeviceName[16];
unsigned char DeviceSerial[16];
unsigned int DeviceVersion;
unsigned int StandardVersion;
unsigned int AsymAlgAbility[2];
unsigned int SymAlgAbility;
unsigned int HashAlgAbility;
unsigned int BufferSize;
} DEVICEINFO;