You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Open source hardware TOTP token. Currently targets the LPC1756, LPC1758 and LPC1759 (with a small change it should also run on the LPC1754).
3
3
4
-
The LPC1756 does not have enough ram to hold a full framebuffer (240 * 135 * 2 = 64'800 bytes). To work around this issue, we use 2 smaller framebuffers we alternate between. While one framebuffer is being transferred to the screen using DMA we fill the other.
5
-
6
-
To make it easier (for me) the whole screen is written to this smaller framebuffer. The pixels that do not fit the framebuffer are thrown away. This does waste CPU cycles but is not limiting the framerate. Filling a full frame with pixels takes around 6 milliseconds. Writing a full frame of framebuffers takes around 11 milliseconds. This limits the maximum framerate to ≈ 85FPS. To get a consistant frame rate there is a limit of 60FPS.
7
-
8
-
The main screen takes the longest to draw. This is caused by the amount of pixels of the circle it needs to draw. The circle is generated on compile time to work around that the LPC175x family does not have a FPU. These generated pixels use 8640 bytes of flash.
9
-
10
4
### Features
11
5
* keys never leave the token after setup
12
6
* support for 6 and 8 digit tokens
@@ -19,17 +13,7 @@ The main screen takes the longest to draw. This is caused by the amount of pixel
19
13
* 60 seconds screen timeout
20
14
21
15
### Images
22
-
Photos<br>
23
-
<imgsrc='img/totp_test.jpg'width='500'>
24
-
<imgsrc='img/full_front0.jpg'width='500'>
25
-
<imgsrc='img/case.jpg'width='500'>
26
-
27
-
PCB<br>
28
-
<imgsrc='img/pcb.jpg'width='500'>
29
-
<imgsrc='img/lpc1756_totp.png'width='500'>
30
-
<imgsrc='img/lpc1756_totp_back.png'width='500'>
31
-
32
-
More pictures can be found [here](./img/)
16
+
Images can be found in the project logs at [hackaday](https://hackaday.io/project/194867-hardware-2fa-totp-authenticator)
33
17
34
18
### TODO
35
19
* encrypt profiles
@@ -42,3 +26,9 @@ TOTP uses [klib](https://github.com/itzandroidtab/klib). This repo can be cloned
42
26
43
27
### Extra
44
28
Is intended to be used with [USB dfu bootloader](https://github.com/itzandroidtab/dfu_bootloader). To build without bootloader support delete `set(TARGET_LINKERSCRIPT ...)` from the `CMakeLists.txt` in this project.
29
+
30
+
The LPC1756 does not have enough ram to hold a full framebuffer (240 * 135 * 2 = 64'800 bytes). To work around this issue, we use 2 smaller framebuffers we alternate between. While one framebuffer is being transferred to the screen using DMA we fill the other.
31
+
32
+
To make it easier (for me) the whole screen is written to this smaller framebuffer. The pixels that do not fit the framebuffer are thrown away. This does waste CPU cycles but is not limiting the framerate. Filling a full frame with pixels takes around 6 milliseconds. Writing a full frame of framebuffers takes around 11 milliseconds. This limits the maximum framerate to ≈ 85FPS. To get a consistant frame rate there is a limit of 60FPS.
33
+
34
+
The main screen takes the longest to draw. This is caused by the amount of pixels of the circle it needs to draw. The circle is generated on compile time to work around that the LPC175x family does not have a FPU. These generated pixels use 8640 bytes of flash.
0 commit comments