RTEMS 6.1-rc4
|
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. | |
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.
base | DCP peripheral base address | |
handle | Handle used for this request. Specifies jobRing. | |
[out] | dcpPacket | Memory for the DCP work packet. |
ciphertext | Input cipher text to decrypt | |
[out] | plaintext | Output plain text |
size | Size of input and output data in bytes. Must be multiple of 16 bytes. | |
iv | Input initial vector to combine with the first input block. |
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.
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.
base | DCP peripheral base address | |
handle | Handle used for this request. | |
[out] | dcpPacket | Memory for the DCP work packet. |
ciphertext | Input cipher text to decrypt | |
[out] | plaintext | Output plain text |
size | Size of input and output data in bytes. Must be multiple of 16 bytes. |
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.
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.
base | DCP peripheral base address | |
handle | Handle used for this request. Specifies jobRing. | |
[out] | dcpPacket | Memory for the DCP work packet. |
plaintext | Input plain text to encrypt | |
[out] | ciphertext | Output cipher text |
size | Size of input and output data in bytes. Must be multiple of 16 bytes. | |
iv | Input initial vector to combine with the first input block. |
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.
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.
base | DCP peripheral base address | |
handle | Handle used for this request. | |
[out] | dcpPacket | Memory for the DCP work packet. |
plaintext | Input plain text to encrypt. | |
[out] | ciphertext | Output cipher text |
size | Size of input and output data in bytes. Must be multiple of 16 bytes. |
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.