Advertisement
1lann

rsa license

Jul 31st, 2015
1,722
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.40 KB | None | 0 0
  1. --
  2. -- Licenses for Simple RSA Library by 1lann
  3. --
  4. -- This RSA library should not be used for real-life purposes.
  5. -- It is here to demonstrate a pure Lua implementation of RSA
  6. -- for educational purposes. This RSA library is in no way
  7. -- secure and does not endorse use of this library for any
  8. -- actual security purposes.
  9. --
  10. -- Copyright (c) 2015 Jason Chu (1lann)
  11. --
  12. -- Permission to use, copy, modify, and distribute this software for any
  13. -- purpose with or without fee is hereby granted, provided that the above
  14. -- copyright notice and this permission notice appear in all copies.
  15. --
  16. -- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
  17. -- WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
  18. -- MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
  19. -- ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
  20. -- WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
  21. -- ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
  22. -- OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
  23. --
  24.  
  25. --
  26. -- Big Integer Library, copyright as follows.
  27. --
  28. -- Copyright (c) 2010 Ted Unangst <ted.unangst@gmail.com>
  29. --
  30. -- Permission to use, copy, modify, and distribute this software for any
  31. -- purpose with or without fee is hereby granted, provided that the above
  32. -- copyright notice and this permission notice appear in all copies.
  33. --
  34. -- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
  35. -- WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
  36. -- MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
  37. -- ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
  38. -- WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
  39. -- ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
  40. -- OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
  41. --
  42.  
  43. --
  44. -- Lua version ported/copied from the C version of the Big Integer Library, copyright as follows.
  45. --
  46. -- Copyright (c) 2000 by Jef Poskanzer <jef@mail.acme.com>.
  47. -- All rights reserved.
  48. --
  49. -- Redistribution and use in source and binary forms, with or without
  50. -- modification, are permitted provided that the following conditions
  51. -- are met:
  52. -- 1. Redistributions of source code must retain the above copyright
  53. -- notice, this list of conditions and the following disclaimer.
  54. -- 2. Redistributions in binary form must reproduce the above copyright
  55. -- notice, this list of conditions and the following disclaimer in the
  56. -- documentation and/or other materials provided with the distribution.
  57. --
  58. -- THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
  59. -- ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  60. -- IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
  61. -- ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
  62. -- FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
  63. -- DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
  64. -- OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  65. -- HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
  66. -- LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
  67. -- OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  68. -- SUCH DAMAGE.
  69. --
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement