我正在使用智能卡,我需要生成类似下面的ASN1格式并将其编码为RSASSA-PSS,但我不知道如何在php v5.6上执行此操作( Debian的)。
IdentityIdentificationStaticData ::= SEQUENCE
{
acceptedPolicyVersion [0] DataObjectVersionNumber,
cardHolderID [1] CardHolderIdentifier,
deviceSerialNumber [2] CardAccessDeviceSerialNumber,
appLabel [3] UTF8String,
requestorRole [4] ServiceRequestorRole,
creationTime [5] UTCTime
}
IdentityIdentificationDataObject::= [APPLICATION 7] SEQUENCE
{
identityIdentificationData [0] IdentityIdentificationData,
samSignature [1] DataObjectDigitalSignature
}
IdentityIdentificationData::= SEQUENCE
{
version [0] DataObjectVersionNumber,
staticData [1] IdentityIdentificationStaticData
}
我尝试使用phpseclib,但无法确定如何做。