Browse Source

Remove `init_{GMP,LTM,TFM}()`

Signed-off-by: Steffen Jaeckel <[email protected]>
Steffen Jaeckel 1 month ago
parent
commit
934bd7e0fe
3 changed files with 0 additions and 42 deletions
  1. 0 11
      doc/crypt.tex
  2. 0 9
      src/headers/tomcrypt_misc.h
  3. 0 22
      src/misc/crypt/crypt_inits.c

+ 0 - 11
doc/crypt.tex

@@ -10369,17 +10369,6 @@ Since the function is given the entire RSA key (for private keys only) CRT is po
 
 \mysection{Deprecated API functions}
 
-\subsection{After v1.18.0}
-
-\index{init\_LTM()} \index{init\_TFM()} \index{init\_GMP()}
-\begin{verbatim}
-void init_LTM(void);
-void init_TFM(void);
-void init_GMP(void);
-\end{verbatim}
-
-These three MPI init functions have been introduced in version 1.18.0 and have been deprecated in the same version in favor of \code{crypt\_mp\_init()}, c.f. Ch. \ref{mp-init}.
-
 \clearpage
 \addcontentsline{toc}{chapter}{Index}
 \printindex

+ 0 - 9
src/headers/tomcrypt_misc.h

@@ -102,15 +102,6 @@ int crypt_list_all_constants(char *names_list, unsigned int *names_list_size);
 int crypt_get_size(const char* namein, unsigned int *sizeout);
 int crypt_list_all_sizes(char *names_list, unsigned int *names_list_size);
 
-#ifdef LTM_DESC
-LTC_DEPRECATED(crypt_mp_init) void init_LTM(void);
-#endif
-#ifdef TFM_DESC
-LTC_DEPRECATED(crypt_mp_init) void init_TFM(void);
-#endif
-#ifdef GMP_DESC
-LTC_DEPRECATED(crypt_mp_init) void init_GMP(void);
-#endif
 int crypt_mp_init(const char* mpi);
 
 #ifdef LTC_ADLER32

+ 0 - 22
src/misc/crypt/crypt_inits.c

@@ -9,28 +9,6 @@
   like Python - Larry Bugbee, February 2013
 */
 
-
-#ifdef LTM_DESC
-void init_LTM(void)
-{
-    ltc_mp = ltm_desc;
-}
-#endif
-
-#ifdef TFM_DESC
-void init_TFM(void)
-{
-    ltc_mp = tfm_desc;
-}
-#endif
-
-#ifdef GMP_DESC
-void init_GMP(void)
-{
-    ltc_mp = gmp_desc;
-}
-#endif
-
 int crypt_mp_init(const char* mpi)
 {
    if (mpi == NULL) return CRYPT_ERROR;