rsa_free.c 597 B

123456789101112131415161718192021222324
  1. /* LibTomCrypt, modular cryptographic library -- Tom St Denis
  2. *
  3. * LibTomCrypt is a library that provides various cryptographic
  4. * algorithms in a highly modular and flexible manner.
  5. *
  6. * The library is free for all purposes without any express
  7. * guarantee it works.
  8. *
  9. * Tom St Denis, [email protected], http://libtomcrypt.org
  10. */
  11. /* RSA Code by Tom St Denis */
  12. #include "mycrypt.h"
  13. #ifdef MRSA
  14. void rsa_free(rsa_key *key)
  15. {
  16. _ARGCHK(key != NULL);
  17. mp_clear_multi(&key->e, &key->d, &key->N, &key->dQ, &key->dP,
  18. &key->qP, &key->pQ, &key->p, &key->q, NULL);
  19. }
  20. #endif