0

我想从智能卡中检索证书数据。通过使用“PyScard”实用程序中的 SCardTransmit 函数,我们可以通过发送 apdu 来获取数据。但是文件的长度太大了。谁能帮我获取字符串格式的数据以及如何获取数据。我的 C 代码如下所示:

    dwLenExpected = ( ( dwOffset + 0xFD ) > dwCertFileSize )?
                                        dwLenExpected : 0xFD;


    Execute the command and get the data copy the data from receive buffer using "memcpy" and increase the offset by length 

    dwOffset += 0xFD;

现在我想在 python 中实现它。任何帮助表示赞赏。先感谢您

4

0 回答 0