The present invention provides a method for driving a decryption chip for VPN, which comprises the following steps: S1: implementation of PCI access interface in Linux user equipment through the control interface; S2: Linux in user mode through the PCI access interface for encryption and decryption chip access, and for encryption and decryption chip initialization; S3: through direct access to the control register on the chip in the user mode to write SA encryption chip, to set up a VPN channel; S4: through direct access to the control register on the chip in the user mode of message encryption and decryption processing. By this method, the initialization, encryption and decryption operations of the encryption and decryption chip can be easily debugged under the Linux user state.
【技术实现步骤摘要】
【技术保护点】
1.一种用于VPN的加解密芯片驱动方法,其特征在于,所述方法包括以下步骤:S1:在Linux用户态通过设备控制接口的方式实现PCI访问接口;S2:在Linux用户态通过所述PCI访问接口对加解密芯片进行访问,并进行加解密芯片的初始化;S3:通过在用户态对芯片控制寄存器的直接访问的方式将SA写入加解密芯片,以建立VPN通道;S4:通过在用户态对芯片控制寄存器的直接访问对报文进行加解密处理。
【技术特征摘要】
还没有人留言评论。发表了对其他浏览者有用的留言会获得科技券。