Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: nRF51_Vdd TextLCD BME280
TYBLE16_os5_BASE/features/cryptocell/FEATURE_CRYPTOCELL310/include/ssi_aes_error.h@4:e9dfb4ca4277, 2018-12-08 (annotated)
- Committer:
- kenjiArai
- Date:
- Sat Dec 08 02:13:04 2018 +0000
- Revision:
- 4:e9dfb4ca4277
test
Who changed what in which revision?
| User | Revision | Line number | New contents of line |
|---|---|---|---|
| kenjiArai | 4:e9dfb4ca4277 | 1 | /************************************************************************************** |
| kenjiArai | 4:e9dfb4ca4277 | 2 | * Copyright (c) 2016-2017, ARM Limited or its affiliates. All rights reserved * |
| kenjiArai | 4:e9dfb4ca4277 | 3 | * * |
| kenjiArai | 4:e9dfb4ca4277 | 4 | * This file and the related binary are licensed under the following license: * |
| kenjiArai | 4:e9dfb4ca4277 | 5 | * * |
| kenjiArai | 4:e9dfb4ca4277 | 6 | * ARM Object Code and Header Files License, v1.0 Redistribution. * |
| kenjiArai | 4:e9dfb4ca4277 | 7 | * * |
| kenjiArai | 4:e9dfb4ca4277 | 8 | * Redistribution and use of object code, header files, and documentation, without * |
| kenjiArai | 4:e9dfb4ca4277 | 9 | * modification, are permitted provided that the following conditions are met: * |
| kenjiArai | 4:e9dfb4ca4277 | 10 | * * |
| kenjiArai | 4:e9dfb4ca4277 | 11 | * 1) Redistributions must reproduce the above copyright notice and the * |
| kenjiArai | 4:e9dfb4ca4277 | 12 | * following disclaimer in the documentation and/or other materials * |
| kenjiArai | 4:e9dfb4ca4277 | 13 | * provided with the distribution. * |
| kenjiArai | 4:e9dfb4ca4277 | 14 | * * |
| kenjiArai | 4:e9dfb4ca4277 | 15 | * 2) Unless to the extent explicitly permitted by law, no reverse * |
| kenjiArai | 4:e9dfb4ca4277 | 16 | * engineering, decompilation, or disassembly of is permitted. * |
| kenjiArai | 4:e9dfb4ca4277 | 17 | * * |
| kenjiArai | 4:e9dfb4ca4277 | 18 | * 3) Redistribution and use is permitted solely for the purpose of * |
| kenjiArai | 4:e9dfb4ca4277 | 19 | * developing or executing applications that are targeted for use * |
| kenjiArai | 4:e9dfb4ca4277 | 20 | * on an ARM-based product. * |
| kenjiArai | 4:e9dfb4ca4277 | 21 | * * |
| kenjiArai | 4:e9dfb4ca4277 | 22 | * DISCLAIMER. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND * |
| kenjiArai | 4:e9dfb4ca4277 | 23 | * CONTRIBUTORS "AS IS." ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT * |
| kenjiArai | 4:e9dfb4ca4277 | 24 | * NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY, NON-INFRINGEMENT, * |
| kenjiArai | 4:e9dfb4ca4277 | 25 | * AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE * |
| kenjiArai | 4:e9dfb4ca4277 | 26 | * COPYRIGHT HOLDERS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, * |
| kenjiArai | 4:e9dfb4ca4277 | 27 | * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED * |
| kenjiArai | 4:e9dfb4ca4277 | 28 | * TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR * |
| kenjiArai | 4:e9dfb4ca4277 | 29 | * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF * |
| kenjiArai | 4:e9dfb4ca4277 | 30 | * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING * |
| kenjiArai | 4:e9dfb4ca4277 | 31 | * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS * |
| kenjiArai | 4:e9dfb4ca4277 | 32 | * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * |
| kenjiArai | 4:e9dfb4ca4277 | 33 | **************************************************************************************/ |
| kenjiArai | 4:e9dfb4ca4277 | 34 | |
| kenjiArai | 4:e9dfb4ca4277 | 35 | |
| kenjiArai | 4:e9dfb4ca4277 | 36 | /*! |
| kenjiArai | 4:e9dfb4ca4277 | 37 | @file |
| kenjiArai | 4:e9dfb4ca4277 | 38 | @brief This file contains the definitions of the CryptoCell AES errors. |
| kenjiArai | 4:e9dfb4ca4277 | 39 | @defgroup ssi_aes_error CryptoCell AES specific errors |
| kenjiArai | 4:e9dfb4ca4277 | 40 | @{ |
| kenjiArai | 4:e9dfb4ca4277 | 41 | @ingroup ssi_aes |
| kenjiArai | 4:e9dfb4ca4277 | 42 | */ |
| kenjiArai | 4:e9dfb4ca4277 | 43 | |
| kenjiArai | 4:e9dfb4ca4277 | 44 | #ifndef SSI_AES_ERROR_H |
| kenjiArai | 4:e9dfb4ca4277 | 45 | #define SSI_AES_ERROR_H |
| kenjiArai | 4:e9dfb4ca4277 | 46 | |
| kenjiArai | 4:e9dfb4ca4277 | 47 | #include "crys_error.h" |
| kenjiArai | 4:e9dfb4ca4277 | 48 | |
| kenjiArai | 4:e9dfb4ca4277 | 49 | #ifdef __cplusplus |
| kenjiArai | 4:e9dfb4ca4277 | 50 | extern "C" |
| kenjiArai | 4:e9dfb4ca4277 | 51 | { |
| kenjiArai | 4:e9dfb4ca4277 | 52 | #endif |
| kenjiArai | 4:e9dfb4ca4277 | 53 | |
| kenjiArai | 4:e9dfb4ca4277 | 54 | /************************ Defines ******************************/ |
| kenjiArai | 4:e9dfb4ca4277 | 55 | |
| kenjiArai | 4:e9dfb4ca4277 | 56 | /* generic errors */ |
| kenjiArai | 4:e9dfb4ca4277 | 57 | /*! General fatal error. */ |
| kenjiArai | 4:e9dfb4ca4277 | 58 | #define SASI_FATAL_ERROR CRYS_FATAL_ERROR |
| kenjiArai | 4:e9dfb4ca4277 | 59 | /*! General out of resources error. */ |
| kenjiArai | 4:e9dfb4ca4277 | 60 | #define SASI_OUT_OF_RESOURCE_ERROR CRYS_OUT_OF_RESOURCE_ERROR |
| kenjiArai | 4:e9dfb4ca4277 | 61 | /*! General Illegal resource value error. */ |
| kenjiArai | 4:e9dfb4ca4277 | 62 | #define SASI_ILLEGAL_RESOURCE_VAL_ERROR CRYS_ILLEGAL_RESOURCE_VAL_ERROR |
| kenjiArai | 4:e9dfb4ca4277 | 63 | |
| kenjiArai | 4:e9dfb4ca4277 | 64 | /*! CRYS_AES_MODULE_ERROR_BASE - 0x00F00000. */ |
| kenjiArai | 4:e9dfb4ca4277 | 65 | /*! Illegal user context. */ |
| kenjiArai | 4:e9dfb4ca4277 | 66 | #define SASI_AES_INVALID_USER_CONTEXT_POINTER_ERROR (CRYS_AES_MODULE_ERROR_BASE + 0x00UL) |
| kenjiArai | 4:e9dfb4ca4277 | 67 | /*! Illegal IV or tweak pointer. */ |
| kenjiArai | 4:e9dfb4ca4277 | 68 | #define SASI_AES_INVALID_IV_OR_TWEAK_PTR_ERROR (CRYS_AES_MODULE_ERROR_BASE + 0x01UL) |
| kenjiArai | 4:e9dfb4ca4277 | 69 | /*! Illegal operation. */ |
| kenjiArai | 4:e9dfb4ca4277 | 70 | #define SASI_AES_ILLEGAL_OPERATION_MODE_ERROR (CRYS_AES_MODULE_ERROR_BASE + 0x02UL) |
| kenjiArai | 4:e9dfb4ca4277 | 71 | /*! Illegal key size. */ |
| kenjiArai | 4:e9dfb4ca4277 | 72 | #define SASI_AES_ILLEGAL_KEY_SIZE_ERROR (CRYS_AES_MODULE_ERROR_BASE + 0x03UL) |
| kenjiArai | 4:e9dfb4ca4277 | 73 | /*! Illegal key pointer. */ |
| kenjiArai | 4:e9dfb4ca4277 | 74 | #define SASI_AES_INVALID_KEY_POINTER_ERROR (CRYS_AES_MODULE_ERROR_BASE + 0x04UL) |
| kenjiArai | 4:e9dfb4ca4277 | 75 | /*! Unsupported key type. */ |
| kenjiArai | 4:e9dfb4ca4277 | 76 | #define SASI_AES_KEY_TYPE_NOT_SUPPORTED_ERROR (CRYS_AES_MODULE_ERROR_BASE + 0x05UL) |
| kenjiArai | 4:e9dfb4ca4277 | 77 | /*! Illegal operation. */ |
| kenjiArai | 4:e9dfb4ca4277 | 78 | #define SASI_AES_INVALID_ENCRYPT_MODE_ERROR (CRYS_AES_MODULE_ERROR_BASE + 0x06UL) |
| kenjiArai | 4:e9dfb4ca4277 | 79 | /*! User context corrupted. */ |
| kenjiArai | 4:e9dfb4ca4277 | 80 | #define SASI_AES_USER_CONTEXT_CORRUPTED_ERROR (CRYS_AES_MODULE_ERROR_BASE + 0x07UL) |
| kenjiArai | 4:e9dfb4ca4277 | 81 | /*! Illegal data in pointer. */ |
| kenjiArai | 4:e9dfb4ca4277 | 82 | #define SASI_AES_DATA_IN_POINTER_INVALID_ERROR (CRYS_AES_MODULE_ERROR_BASE + 0x08UL) |
| kenjiArai | 4:e9dfb4ca4277 | 83 | /*! Illegal data out pointer. */ |
| kenjiArai | 4:e9dfb4ca4277 | 84 | #define SASI_AES_DATA_OUT_POINTER_INVALID_ERROR (CRYS_AES_MODULE_ERROR_BASE + 0x09UL) |
| kenjiArai | 4:e9dfb4ca4277 | 85 | /*! Illegal data in size. */ |
| kenjiArai | 4:e9dfb4ca4277 | 86 | #define SASI_AES_DATA_IN_SIZE_ILLEGAL (CRYS_AES_MODULE_ERROR_BASE + 0x0AUL) |
| kenjiArai | 4:e9dfb4ca4277 | 87 | /*! Illegal data out address. */ |
| kenjiArai | 4:e9dfb4ca4277 | 88 | #define SASI_AES_DATA_OUT_DATA_IN_OVERLAP_ERROR (CRYS_AES_MODULE_ERROR_BASE + 0x0BUL) |
| kenjiArai | 4:e9dfb4ca4277 | 89 | /*! Illegal data in buffer size. */ |
| kenjiArai | 4:e9dfb4ca4277 | 90 | #define SASI_AES_DATA_IN_BUFFER_SIZE_ERROR (CRYS_AES_MODULE_ERROR_BASE + 0x0CUL) |
| kenjiArai | 4:e9dfb4ca4277 | 91 | /*! Illegal data out buffer size. */ |
| kenjiArai | 4:e9dfb4ca4277 | 92 | #define SASI_AES_DATA_OUT_BUFFER_SIZE_ERROR (CRYS_AES_MODULE_ERROR_BASE + 0x0DUL) |
| kenjiArai | 4:e9dfb4ca4277 | 93 | /*! Illegal padding type. */ |
| kenjiArai | 4:e9dfb4ca4277 | 94 | #define SASI_AES_ILLEGAL_PADDING_TYPE_ERROR (CRYS_AES_MODULE_ERROR_BASE + 0x0EUL) |
| kenjiArai | 4:e9dfb4ca4277 | 95 | /*! Incorrect padding. */ |
| kenjiArai | 4:e9dfb4ca4277 | 96 | #define SASI_AES_INCORRECT_PADDING_ERROR (CRYS_AES_MODULE_ERROR_BASE + 0x0FUL) |
| kenjiArai | 4:e9dfb4ca4277 | 97 | /*! Output is corrupted. */ |
| kenjiArai | 4:e9dfb4ca4277 | 98 | #define SASI_AES_CORRUPTED_OUTPUT_ERROR (CRYS_AES_MODULE_ERROR_BASE + 0x10UL) |
| kenjiArai | 4:e9dfb4ca4277 | 99 | /*! Illegal output size. */ |
| kenjiArai | 4:e9dfb4ca4277 | 100 | #define SASI_AES_DATA_OUT_SIZE_POINTER_INVALID_ERROR (CRYS_AES_MODULE_ERROR_BASE + 0x11UL) |
| kenjiArai | 4:e9dfb4ca4277 | 101 | /*! Decryption operation is not permitted in this mode. */ |
| kenjiArai | 4:e9dfb4ca4277 | 102 | #define SASI_AES_DECRYPTION_NOT_ALLOWED_ON_THIS_MODE (CRYS_AES_MODULE_ERROR_BASE + 0x12UL) |
| kenjiArai | 4:e9dfb4ca4277 | 103 | /*! Additional block operation is not permitted. */ |
| kenjiArai | 4:e9dfb4ca4277 | 104 | #define SASI_AES_ADDITIONAL_BLOCK_NOT_PERMITTED_ERROR (CRYS_AES_MODULE_ERROR_BASE + 0x15UL) |
| kenjiArai | 4:e9dfb4ca4277 | 105 | /*! Illegal context size. */ |
| kenjiArai | 4:e9dfb4ca4277 | 106 | #define SASI_AES_CTX_SIZES_ERROR (CRYS_AES_MODULE_ERROR_BASE + 0x16UL) |
| kenjiArai | 4:e9dfb4ca4277 | 107 | |
| kenjiArai | 4:e9dfb4ca4277 | 108 | /*! Illegal parameters. */ |
| kenjiArai | 4:e9dfb4ca4277 | 109 | #define SASI_AES_ILLEGAL_PARAMS_ERROR (CRYS_AES_MODULE_ERROR_BASE + 0x60UL) |
| kenjiArai | 4:e9dfb4ca4277 | 110 | /*! Illegal CTR block offset. */ |
| kenjiArai | 4:e9dfb4ca4277 | 111 | #define SASI_AES_CTR_ILLEGAL_BLOCK_OFFSET_ERROR (CRYS_AES_MODULE_ERROR_BASE + 0x70UL) |
| kenjiArai | 4:e9dfb4ca4277 | 112 | /*! Illegal counter (in CTR mode). */ |
| kenjiArai | 4:e9dfb4ca4277 | 113 | #define SASI_AES_CTR_ILLEGAL_COUNTER_ERROR (CRYS_AES_MODULE_ERROR_BASE + 0x71UL) |
| kenjiArai | 4:e9dfb4ca4277 | 114 | /*! AES is not supported. */ |
| kenjiArai | 4:e9dfb4ca4277 | 115 | #define SASI_AES_IS_NOT_SUPPORTED (CRYS_AES_MODULE_ERROR_BASE + 0xFFUL) |
| kenjiArai | 4:e9dfb4ca4277 | 116 | |
| kenjiArai | 4:e9dfb4ca4277 | 117 | /************************ Enums ********************************/ |
| kenjiArai | 4:e9dfb4ca4277 | 118 | |
| kenjiArai | 4:e9dfb4ca4277 | 119 | /************************ Typedefs ****************************/ |
| kenjiArai | 4:e9dfb4ca4277 | 120 | |
| kenjiArai | 4:e9dfb4ca4277 | 121 | /************************ Structs *****************************/ |
| kenjiArai | 4:e9dfb4ca4277 | 122 | |
| kenjiArai | 4:e9dfb4ca4277 | 123 | /************************ Public Variables *********************/ |
| kenjiArai | 4:e9dfb4ca4277 | 124 | |
| kenjiArai | 4:e9dfb4ca4277 | 125 | /************************ Public Functions *********************/ |
| kenjiArai | 4:e9dfb4ca4277 | 126 | |
| kenjiArai | 4:e9dfb4ca4277 | 127 | #ifdef __cplusplus |
| kenjiArai | 4:e9dfb4ca4277 | 128 | } |
| kenjiArai | 4:e9dfb4ca4277 | 129 | #endif |
| kenjiArai | 4:e9dfb4ca4277 | 130 | /** |
| kenjiArai | 4:e9dfb4ca4277 | 131 | @} |
| kenjiArai | 4:e9dfb4ca4277 | 132 | */ |
| kenjiArai | 4:e9dfb4ca4277 | 133 | #endif /* #ifndef SSI_AES_ERROR_H */ |