RTEMS 6.1-rc5
Loading...
Searching...
No Matches
Functions
Dcp_nonblocking_driver_aes

Functions

status_t DCP_AES_EncryptEcbNonBlocking (DCP_Type *base, dcp_handle_t *handle, dcp_work_packet_t *dcpPacket, const uint8_t *plaintext, uint8_t *ciphertext, size_t size)
 Encrypts AES using the ECB block mode.
 
status_t DCP_AES_DecryptEcbNonBlocking (DCP_Type *base, dcp_handle_t *handle, dcp_work_packet_t *dcpPacket, const uint8_t *ciphertext, uint8_t *plaintext, size_t size)
 Decrypts AES using ECB block mode.
 
status_t DCP_AES_EncryptCbcNonBlocking (DCP_Type *base, dcp_handle_t *handle, dcp_work_packet_t *dcpPacket, const uint8_t *plaintext, uint8_t *ciphertext, size_t size, const uint8_t *iv)
 Encrypts AES using CBC block mode.
 
status_t DCP_AES_DecryptCbcNonBlocking (DCP_Type *base, dcp_handle_t *handle, dcp_work_packet_t *dcpPacket, const uint8_t *ciphertext, uint8_t *plaintext, size_t size, const uint8_t *iv)
 Decrypts AES using CBC block mode.
 

Detailed Description

Function Documentation

◆ DCP_AES_DecryptCbcNonBlocking()

status_t DCP_AES_DecryptCbcNonBlocking ( DCP_Type base,
dcp_handle_t handle,
dcp_work_packet_t dcpPacket,
const uint8_t *  ciphertext,
uint8_t *  plaintext,
size_t  size,
const uint8_t *  iv 
)

Decrypts AES using CBC block mode.

Puts AES CBC decrypt dcpPacket to DCP input job ring.

Parameters
baseDCP peripheral base address
handleHandle used for this request. Specifies jobRing.
[out]dcpPacketMemory for the DCP work packet.
ciphertextInput cipher text to decrypt
[out]plaintextOutput plain text
sizeSize of input and output data in bytes. Must be multiple of 16 bytes.
ivInput initial vector to combine with the first input block.
Returns
kStatus_Success The work packet has been scheduled at DCP channel.
kStatus_DCP_Again The DCP channel is busy processing previous request.

brief Decrypts AES using CBC block mode.

Puts AES CBC decrypt dcpPacket to DCP input job ring.

param base DCP peripheral base address param handle Handle used for this request. Specifies jobRing. param[out] dcpPacket Memory for the DCP work packet. param ciphertext Input cipher text to decrypt param[out] plaintext Output plain text param size Size of input and output data in bytes. Must be multiple of 16 bytes. param iv Input initial vector to combine with the first input block. return kStatus_Success The work packet has been scheduled at DCP channel. return kStatus_DCP_Again The DCP channel is busy processing previous request.

◆ DCP_AES_DecryptEcbNonBlocking()

status_t DCP_AES_DecryptEcbNonBlocking ( DCP_Type base,
dcp_handle_t handle,
dcp_work_packet_t dcpPacket,
const uint8_t *  ciphertext,
uint8_t *  plaintext,
size_t  size 
)

Decrypts AES using ECB block mode.

Puts AES ECB decrypt dcpPacket to DCP input job ring.

Parameters
baseDCP peripheral base address
handleHandle used for this request.
[out]dcpPacketMemory for the DCP work packet.
ciphertextInput cipher text to decrypt
[out]plaintextOutput plain text
sizeSize of input and output data in bytes. Must be multiple of 16 bytes.
Returns
kStatus_Success The work packet has been scheduled at DCP channel.
kStatus_DCP_Again The DCP channel is busy processing previous request.

brief Decrypts AES using ECB block mode.

Puts AES ECB decrypt dcpPacket to DCP input job ring.

param base DCP peripheral base address param handle Handle used for this request. param[out] dcpPacket Memory for the DCP work packet. param ciphertext Input cipher text to decrypt param[out] plaintext Output plain text param size Size of input and output data in bytes. Must be multiple of 16 bytes. return kStatus_Success The work packet has been scheduled at DCP channel. return kStatus_DCP_Again The DCP channel is busy processing previous request.

◆ DCP_AES_EncryptCbcNonBlocking()

status_t DCP_AES_EncryptCbcNonBlocking ( DCP_Type base,
dcp_handle_t handle,
dcp_work_packet_t dcpPacket,
const uint8_t *  plaintext,
uint8_t *  ciphertext,
size_t  size,
const uint8_t *  iv 
)

Encrypts AES using CBC block mode.

Puts AES CBC encrypt dcpPacket to DCP input job ring.

Parameters
baseDCP peripheral base address
handleHandle used for this request. Specifies jobRing.
[out]dcpPacketMemory for the DCP work packet.
plaintextInput plain text to encrypt
[out]ciphertextOutput cipher text
sizeSize of input and output data in bytes. Must be multiple of 16 bytes.
ivInput initial vector to combine with the first input block.
Returns
kStatus_Success The work packet has been scheduled at DCP channel.
kStatus_DCP_Again The DCP channel is busy processing previous request.

brief Encrypts AES using CBC block mode.

Puts AES CBC encrypt dcpPacket to DCP input job ring.

param base DCP peripheral base address param handle Handle used for this request. Specifies jobRing. param[out] dcpPacket Memory for the DCP work packet. param plaintext Input plain text to encrypt param[out] ciphertext Output cipher text param size Size of input and output data in bytes. Must be multiple of 16 bytes. param iv Input initial vector to combine with the first input block. return kStatus_Success The work packet has been scheduled at DCP channel. return kStatus_DCP_Again The DCP channel is busy processing previous request.

◆ DCP_AES_EncryptEcbNonBlocking()

status_t DCP_AES_EncryptEcbNonBlocking ( DCP_Type base,
dcp_handle_t handle,
dcp_work_packet_t dcpPacket,
const uint8_t *  plaintext,
uint8_t *  ciphertext,
size_t  size 
)

Encrypts AES using the ECB block mode.

Puts AES ECB encrypt work packet to DCP channel.

Parameters
baseDCP peripheral base address
handleHandle used for this request.
[out]dcpPacketMemory for the DCP work packet.
plaintextInput plain text to encrypt.
[out]ciphertextOutput cipher text
sizeSize of input and output data in bytes. Must be multiple of 16 bytes.
Returns
kStatus_Success The work packet has been scheduled at DCP channel.
kStatus_DCP_Again The DCP channel is busy processing previous request.

brief Encrypts AES using the ECB block mode.

Puts AES ECB encrypt work packet to DCP channel.

param base DCP peripheral base address param handle Handle used for this request. param[out] dcpPacket Memory for the DCP work packet. param plaintext Input plain text to encrypt. param[out] ciphertext Output cipher text param size Size of input and output data in bytes. Must be multiple of 16 bytes. return kStatus_Success The work packet has been scheduled at DCP channel. return kStatus_DCP_Again The DCP channel is busy processing previous request.