|
Contiki 3.x
|
Driver for the cc2538 AES/SHA cryptoprocessor. More...
Modules | |
| cc2538 AES | |
| Driver for the cc2538 AES modes of the security core. | |
| cc2538 SHA-256 | |
| Driver for the cc2538 SHA-256 mode of the security core. | |
Files | |
| file | crypto.c |
| Implementation of the cc2538 AES/SHA cryptoprocessor driver. | |
| file | crypto.h |
| Header file for the cc2538 AES/SHA cryptoprocessor driver. | |
Functions | |
| void | crypto_isr (void) |
| The AES/SHA cryptoprocessor ISR. More... | |
Crypto macros | |
| #define | CRYPTO_IS_ENABLED() (!!(REG(SYS_CTRL_RCGCSEC) & SYS_CTRL_RCGCSEC_AES)) |
| Indicates whether the AES/SHA cryptoprocessor is enabled. More... | |
Crypto functions | |
| void | crypto_init (void) |
| Enables and resets the AES/SHA cryptoprocessor. | |
| void | crypto_enable (void) |
| Enables the AES/SHA cryptoprocessor. | |
| void | crypto_disable (void) |
| Disables the AES/SHA cryptoprocessor. More... | |
| void | crypto_register_process_notification (struct process *p) |
| Registers a process to be notified of the completion of a crypto operation. More... | |
Driver for the cc2538 AES/SHA cryptoprocessor.
| #define CRYPTO_IS_ENABLED | ( | ) | (!!(REG(SYS_CTRL_RCGCSEC) & SYS_CTRL_RCGCSEC_AES)) |
| void crypto_disable | ( | void | ) |
Disables the AES/SHA cryptoprocessor.
Definition at line 106 of file crypto.c.
References SYS_CTRL_DCGCSEC, SYS_CTRL_DCGCSEC_AES, SYS_CTRL_RCGCSEC, SYS_CTRL_RCGCSEC_AES, SYS_CTRL_SCGCSEC, and SYS_CTRL_SCGCSEC_AES.
Referenced by main().
| void crypto_isr | ( | void | ) |
The AES/SHA cryptoprocessor ISR.
This is the interrupt service routine for the AES/SHA cryptoprocessor.
This ISR is called at worst from PM0, so lpm_exit() does not need to be called.
Definition at line 60 of file crypto.c.
References NULL, NVIC_INT_AES, nvic_interrupt_disable(), nvic_interrupt_unpend(), and process_poll().
| void crypto_register_process_notification | ( | struct process * | p | ) |
Registers a process to be notified of the completion of a crypto operation.
| p | Process to be polled upon IRQ |
Definition at line 115 of file crypto.c.
Referenced by aes_auth_crypt_get_result(), and aes_auth_crypt_start().
1.8.6