一种用于VPN的加解密芯片驱动方法技术

技术编号:6071054 阅读:224 留言:0更新日期:2012-04-11 18:40
本发明专利技术提供了一种用于VPN的加解密芯片驱动方法,包括以下步骤:S1:在Linux用户态通过设备控制接口的方式实现PCI访问接口;S2:在Linux用户态通过所述PCI访问接口对加解密芯片进行访问,并进行加解密芯片的初始化;S3:通过在用户态对芯片控制寄存器的直接访问的方式将SA写入加解密芯片,以建立VPN通道;S4:通过在用户态对芯片控制寄存器的直接访问对报文进行加解密处理。通过该方法可以方便地在Linux用户态下对加解密芯片的初始化、加解密运算操作进行调试。

Encryption and decryption chip driving method for VPN

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:通过在用户态对芯片控制寄存器的直接访问对报文进行加解密处理。

【技术特征摘要】

【专利技术属性】
技术研发人员:王琳王博殷建儒
申请(专利权)人:汉柏科技有限公司
类型:发明
国别省市:12

网友询问留言 已有0条评论
  • 还没有人留言评论。发表了对其他浏览者有用的留言会获得科技券。

1