Example program to test AES-GCM functionality. Used for a workshop

Dependencies:   mbed

Committer:
HannesTschofenig
Date:
Thu Sep 27 06:34:22 2018 +0000
Revision:
0:796d0f61a05b
Example AES-GCM test program

Who changed what in which revision?

UserRevisionLine numberNew contents of line
HannesTschofenig 0:796d0f61a05b 1
HannesTschofenig 0:796d0f61a05b 2 #ifndef POLARSSL_NET_H
HannesTschofenig 0:796d0f61a05b 3 #define POLARSSL_NET_H
HannesTschofenig 0:796d0f61a05b 4
HannesTschofenig 0:796d0f61a05b 5 #define POLARSSL_ERR_NET_UNKNOWN_HOST -0x0056 /**< Failed to get an IP address for the given hostname. */
HannesTschofenig 0:796d0f61a05b 6 #define POLARSSL_ERR_NET_SOCKET_FAILED -0x0042 /**< Failed to open a socket. */
HannesTschofenig 0:796d0f61a05b 7 #define POLARSSL_ERR_NET_CONNECT_FAILED -0x0044 /**< The connection to the given server / port failed. */
HannesTschofenig 0:796d0f61a05b 8 #define POLARSSL_ERR_NET_BIND_FAILED -0x0046 /**< Binding of the socket failed. */
HannesTschofenig 0:796d0f61a05b 9 #define POLARSSL_ERR_NET_LISTEN_FAILED -0x0048 /**< Could not listen on the socket. */
HannesTschofenig 0:796d0f61a05b 10 #define POLARSSL_ERR_NET_ACCEPT_FAILED -0x004A /**< Could not accept the incoming connection. */
HannesTschofenig 0:796d0f61a05b 11 #define POLARSSL_ERR_NET_RECV_FAILED -0x004C /**< Reading information from the socket failed. */
HannesTschofenig 0:796d0f61a05b 12 #define POLARSSL_ERR_NET_SEND_FAILED -0x004E /**< Sending information through the socket failed. */
HannesTschofenig 0:796d0f61a05b 13 #define POLARSSL_ERR_NET_CONN_RESET -0x0050 /**< Connection was reset by peer. */
HannesTschofenig 0:796d0f61a05b 14 #define POLARSSL_ERR_NET_WANT_READ -0x0052 /**< Connection requires a read call. */
HannesTschofenig 0:796d0f61a05b 15 #define POLARSSL_ERR_NET_WANT_WRITE -0x0054 /**< Connection requires a write call. */
HannesTschofenig 0:796d0f61a05b 16
HannesTschofenig 0:796d0f61a05b 17 #endif
HannesTschofenig 0:796d0f61a05b 18
HannesTschofenig 0:796d0f61a05b 19