Back to index

texmacs  1.0.7.15
openssl.hpp
Go to the documentation of this file.
00001 
00002 /******************************************************************************
00003 * MODULE     : openssl.hpp
00004 * DESCRIPTION: Functions for cryptography
00005 * COPYRIGHT  : (C) 2007  Joris van der Hoeven
00006 *******************************************************************************
00007 * This software falls under the GNU general public license version 3 or later.
00008 * It comes WITHOUT ANY WARRANTY WHATSOEVER. For details, see the file LICENSE
00009 * in the root directory or <http://www.gnu.org/licenses/gpl-3.0.html>.
00010 ******************************************************************************/
00011 
00012 #ifndef TM_OPENSSL_H
00013 #define TM_OPENSSL_H
00014 #include "string.hpp"
00015 
00016 string rsa_my_private_key ();
00017 string rsa_my_public_key ();
00018 string rsa_encode (string msg, string key);
00019 string rsa_decode (string msg, string key);
00020 
00021 string secret_generate (int len= 32);
00022 string secret_encode (string msg, string key);
00023 string secret_decode (string msg, string key);
00024 string secret_hash (string msg);
00025 
00026 #endif // TM_OPENSSL_H