faces/totp: define TOTP data structure
Aggregates all the data necessary for TOTP generation.
This commit is contained in:
		
							parent
							
								
									af18673e1a
								
							
						
					
					
						commit
						67907e4e5c
					
				| @ -29,6 +29,14 @@ | ||||
| #include "watch_utility.h" | ||||
| #include "TOTP.h" | ||||
| 
 | ||||
| typedef struct { | ||||
|     unsigned char labels[2]; | ||||
|     hmac_alg algorithm; | ||||
|     uint32_t period; | ||||
|     size_t key_length; | ||||
|     uint8_t *key; | ||||
| } totp_t; | ||||
| 
 | ||||
| ////////////////////////////////////////////////////////////////////////////////
 | ||||
| // Enter your TOTP key data below
 | ||||
| static const uint8_t num_keys = 2; | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user