VUSB-Firmware for Attiny85 implementing HMAC one time password authentication
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
hmac-otp/libcrypt/main.h

25 lines
470 B

#include "sha1/sha1.h"
#include "hmac-sha1/hmac-sha1.h"
#include "trunc.h"
#include "buffer.h"
#include "usbdrv.h"
#include "usb_key_codes.h"
#include <util/delay.h>
#include <avr/io.h>
#define _PORT_BTN B
#define _NUM_BTN 3
#define PORT_BTN PORT_PORT_BTN
#define DDR_BTN DDR_PORT_BTN
#define P_BTN P_PORT_BTN_NUM_BTN
#define BTN_VECT INT_NUM_BTN_vect
#define CNTPOS_PTR ((void*)1)
#define ERROR 32202
#ifndef UINT32_MAX
#define UINT32_MAX 4294967296
#endif