@@ -69,8 +69,8 @@ typedef struct tc_aes_key_sched_struct *TCAesKeySched_t;
6969/**
7070 * @brief Set AES-128 encryption key
7171 * 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
7474 * @note This implementation skips the additional steps required for keys
7575 * larger than 128 bits, and must not be used for AES-192 or
7676 * 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);
8585 * schedule s
8686 * @note Assumes s was initialized by aes_set_encrypt_key;
8787 * 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
9090 * @param out IN/OUT -- buffer to receive ciphertext block
9191 * @param in IN -- a plaintext block to encrypt
9292 * @param s IN -- initialized AES key schedule
@@ -98,8 +98,8 @@ int32_t tc_aes_encrypt(uint8_t *out,
9898/**
9999 * @brief Set the AES-128 decryption key
100100 * 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
103103 * @note This is the implementation of the straightforward inverse cipher
104104 * using the cipher documented in FIPS-197 figure 12, not the
105105 * 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);
114114/**
115115 * @brief AES-128 Encryption procedure
116116 * 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
119119 * @note Assumes s was initialized by aes_set_encrypt_key
120120 * out and in point to 16 byte buffers
121121 * @param out IN/OUT -- buffer to receive ciphertext block
0 commit comments