Add warning to mbedtls_cipher_setup() about setting padding mode
Signed-off-by: Waleed Elmelegy <waleed.elmelegy@arm.com>
diff --git a/include/mbedtls/cipher.h b/include/mbedtls/cipher.h
index 56fc2d8..b1149f6 100644
--- a/include/mbedtls/cipher.h
+++ b/include/mbedtls/cipher.h
@@ -449,6 +449,10 @@
* \brief This function initializes a cipher context for
* use with the given cipher primitive.
*
+ * \warning The behavior if mbedtls_cipher_set_padding_mode()
+ * is not called after calling this function is not
+ * guaranteed.
+ *
* \param ctx The context to initialize. This must be initialized.
* \param cipher_info The cipher to use.
*