@@ -69,8 +69,8 @@ typedef struct tc_aes_key_sched_struct *TCAesKeySched_t;
69
69
/**
70
70
* @brief Set AES-128 encryption key
71
71
* Uses key k to initialize s
72
- * @return returns TC_SUCCESS (1)
73
- * returns TC_FAIL (0) if: s == NULL or k == NULL
72
+ * @return returns TC_CRYPTO_SUCCESS (1)
73
+ * returns TC_CRYPTO_FAIL (0) if: s == NULL or k == NULL
74
74
* @note This implementation skips the additional steps required for keys
75
75
* larger than 128 bits, and must not be used for AES-192 or
76
76
* AES-256 key schedule -- see FIPS 197 for details
@@ -85,8 +85,8 @@ int32_t tc_aes128_set_encrypt_key(TCAesKeySched_t s, const uint8_t *k);
85
85
* schedule s
86
86
* @note Assumes s was initialized by aes_set_encrypt_key;
87
87
* out and in point to 16 byte buffers
88
- * @return returns TC_SUCCESS (1)
89
- * returns TC_FAIL (0) if: out == NULL or in == NULL or s == NULL
88
+ * @return returns TC_CRYPTO_SUCCESS (1)
89
+ * returns TC_CRYPTO_FAIL (0) if: out == NULL or in == NULL or s == NULL
90
90
* @param out IN/OUT -- buffer to receive ciphertext block
91
91
* @param in IN -- a plaintext block to encrypt
92
92
* @param s IN -- initialized AES key schedule
@@ -98,8 +98,8 @@ int32_t tc_aes_encrypt(uint8_t *out,
98
98
/**
99
99
* @brief Set the AES-128 decryption key
100
100
* Uses key k to initialize s
101
- * @return returns TC_SUCCESS (1)
102
- * returns TC_FAIL (0) if: s == NULL or k == NULL
101
+ * @return returns TC_CRYPTO_SUCCESS (1)
102
+ * returns TC_CRYPTO_FAIL (0) if: s == NULL or k == NULL
103
103
* @note This is the implementation of the straightforward inverse cipher
104
104
* using the cipher documented in FIPS-197 figure 12, not the
105
105
* equivalent inverse cipher presented in Figure 15
@@ -114,8 +114,8 @@ int32_t tc_aes128_set_decrypt_key(TCAesKeySched_t s, const uint8_t *k);
114
114
/**
115
115
* @brief AES-128 Encryption procedure
116
116
* Decrypts in buffer into out buffer under key schedule s
117
- * @return returns TC_SUCCESS (1)
118
- * returns TC_FAIL (0) if: out is NULL or in is NULL or s is NULL
117
+ * @return returns TC_CRYPTO_SUCCESS (1)
118
+ * returns TC_CRYPTO_FAIL (0) if: out is NULL or in is NULL or s is NULL
119
119
* @note Assumes s was initialized by aes_set_encrypt_key
120
120
* out and in point to 16 byte buffers
121
121
* @param out IN/OUT -- buffer to receive ciphertext block
0 commit comments