⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 interface.txt

📁 linux for amd development lx8
💻 TXT
字号:
AMD AES Encryption Module Interface** DESCRIPTION **The AES encryption module provides two paths for a user application to performan encryption or decryption operation. Asynchronous operations can be performed via write() and read() operationsthrough the device file.  These are considered to be asynchronous, because theuser can go off and do other things while waiting for the encryption to return.Synchronous methods are prompted via an ioctl() call (see below), and wait forthe result to be calculated. Both methods use the key specified by the AES_IOCTL_SETKEY ioctl() call.** IOCTL **-----------------------------AES_IOCTL_SETMODE (0x01)-----------------------------Arguments: AES_MODE_ENCRYPT (0x01)AES_MODE_DECRYPT (0x02)Description:Set the appropriate mode for subsequent asynchronous operations.-----------------------------AES_IOCTL_SETKEY (0x02)-----------------------------Argument:  16 byte AES keyDescription:Set the AES key for subsequent operations (both synchronous and asynchronous)-----------------------------AES_IOCTL_ENCRYPT (0x03)AES_IOCTL_DECRYPT (0x04)-----------------------------Arguments:struct aes_operation {       unsigned long src;       unsigned long dst;       int len;}Description:Perform a synchronous encryption or decryption operation.  The argumentis the aes_operation structure, where src is the address of the source block,dst is the address of the destination block, and len is the size of the block.(padded to 16 byte intervals).	-----------------------------AES_IOCTL_SET_COHERENCY (0x05)-----------------------------Arguments:true (1) or false (0)Description:Determine if the AES module should perform its own cache coherency,or if it should be left to the driver to flush the cache.

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -