Update include guards

Add include guard to ecc.hpp (a very silly omission)

Update sha1.hpp include guard for more consistent naming
This commit is contained in:
Jbop 2018-07-25 17:55:53 -04:00
parent 6bf856a6ce
commit cd6c1568a3
2 changed files with 7 additions and 2 deletions

View File

@ -21,6 +21,9 @@
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef NINTY_233_ECC_HPP
#define NINTY_233_ECC_HPP
typedef uint32_t element[8];
typedef struct {
@ -88,3 +91,5 @@ void os_to_elem(const uint8_t * os, element elem);
void os_to_point(const uint8_t * os, ec_point & point);
void elem_to_os(const element src, uint8_t * output_os);
void point_to_os(const ec_point & src, uint8_t * output_os);
#endif

View File

@ -17,8 +17,8 @@
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef _SHA1_HPP_
#define _SHA1_HPP_
#ifndef NINTY_233_SHA1_HPP
#define NINTY_233_SHA1_HPP
#ifndef __cplusplus
#error Do not include this header in a C project