Example program to test AES-GCM functionality. Used for a workshop
Embed:
(wiki syntax)
Show/hide line numbers
version.c
00001 /* 00002 * Version information 00003 * 00004 * Copyright (C) 2006-2014, Brainspark B.V. 00005 * 00006 * This file is part of PolarSSL (http://www.polarssl.org) 00007 * Lead Maintainer: Paul Bakker <polarssl_maintainer at polarssl.org> 00008 * 00009 * All rights reserved. 00010 * 00011 * This program is free software; you can redistribute it and/or modify 00012 * it under the terms of the GNU General Public License as published by 00013 * the Free Software Foundation; either version 2 of the License, or 00014 * (at your option) any later version. 00015 * 00016 * This program is distributed in the hope that it will be useful, 00017 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00018 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00019 * GNU General Public License for more details. 00020 * 00021 * You should have received a copy of the GNU General Public License along 00022 * with this program; if not, write to the Free Software Foundation, Inc., 00023 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. 00024 */ 00025 00026 #if !defined(POLARSSL_CONFIG_FILE) 00027 #include "polarssl/config.h" 00028 #else 00029 #include POLARSSL_CONFIG_FILE 00030 #endif 00031 00032 #if defined(POLARSSL_VERSION_C) 00033 00034 #include "polarssl/version.h" 00035 #include <string.h> 00036 00037 const char version[] = POLARSSL_VERSION_STRING; 00038 00039 unsigned int version_get_number() 00040 { 00041 return POLARSSL_VERSION_NUMBER; 00042 } 00043 00044 void version_get_string( char *string ) 00045 { 00046 memcpy( string, POLARSSL_VERSION_STRING, 00047 sizeof( POLARSSL_VERSION_STRING ) ); 00048 } 00049 00050 void version_get_string_full( char *string ) 00051 { 00052 memcpy( string, POLARSSL_VERSION_STRING_FULL, 00053 sizeof( POLARSSL_VERSION_STRING_FULL ) ); 00054 } 00055 00056 #endif /* POLARSSL_VERSION_C */ 00057 00058
Generated on Tue Jul 12 2022 19:40:21 by
1.7.2