NIIBE Yutaka
7cc8d8930e
Support single-salt KDF for admin-less mode.
2018-03-30 15:57:34 +09:00
NIIBE Yutaka
6446a5bd89
KDF format validation should be done before removing data object.
2018-03-22 16:03:56 +09:00
NIIBE Yutaka
8b0cb8be65
factory-reset should erase all upgrade public keys.
2018-03-13 14:05:18 +09:00
NIIBE Yutaka
c73bb0548e
Fix KDF DO handling.
2018-02-13 07:26:29 +09:00
NIIBE Yutaka
d4c776e308
Fix the procedure to put VID:PID. Apply the procedure to regnual.
2018-01-23 10:11:35 +09:00
NIIBE Yutaka
704d8a5cf1
Check passphrase length when changing.
2018-01-22 11:55:10 +09:00
NIIBE Yutaka
55781cb7bb
Remove keystring with BY_ADMIN when it's becomming admin-less mode.
2018-01-22 11:02:02 +09:00
NIIBE Yutaka
de24655920
VIDPID substitution at the last stage of build.
2018-01-19 22:36:01 +09:00
NIIBE Yutaka
7bfe0f5427
Add binary-edit.sh.
2018-01-19 22:22:29 +09:00
NIIBE Yutaka
abeb1015ec
Update neug.c.
2018-01-18 19:42:40 +09:00
NIIBE Yutaka
c5f20dc355
Update Chopstx and follow the changes.
2018-01-18 15:14:34 +09:00
NIIBE Yutaka
c81544fffd
Fix long-standing bug of admin-less mode. GnuPG should be fixed.
2017-11-26 21:20:46 +09:00
NIIBE Yutaka
543f28574e
Use of eventflag poll change.
2017-11-17 20:10:13 +09:00
NIIBE Yutaka
fe94e1885b
LED status loop change.
...
Using chopstx_poll, it requires more memory on stack.
2017-11-17 17:20:52 +09:00
NIIBE Yutaka
ce82b347f9
Make sure to turn off LED soon.
2017-11-17 16:25:26 +09:00
NIIBE Yutaka
d54712c04c
Less power consumption on suspend.
2017-11-17 15:49:56 +09:00
NIIBE Yutaka
bb9b31166f
Fix NeuG for CRC module clock setting.
2017-11-17 15:47:22 +09:00
NIIBE Yutaka
e417846408
More change for USB suspend.
2017-11-17 12:29:32 +09:00
NIIBE Yutaka
21a481060c
Make sure to turn off LED on suspend.
2017-11-16 13:08:00 +09:00
NIIBE Yutaka
d4c9d6653b
Use const pointer for chopstx_poll.
2017-11-16 09:17:33 +09:00
NIIBE Yutaka
f00306627b
Fix pin-cir.c for use of EXTI.
2017-11-16 08:40:49 +09:00
NIIBE Yutaka
f4b36b7503
Lower power consumption on suspend.
2017-11-15 10:59:55 +09:00
NIIBE Yutaka
e85527d302
USB suspend/resume change.
2017-11-14 12:59:18 +09:00
NIIBE Yutaka
bd58997dc9
Possibly support other hash in future, for KDF.
2017-11-08 10:28:55 +09:00
NIIBE Yutaka
9d5834d47b
Avoid passphrase-error-lock by old GnuPG.
2017-11-07 13:48:08 +09:00
NIIBE Yutaka
01b5aa5984
Enable KDF-DO available bit.
2017-11-02 13:53:06 +09:00
NIIBE Yutaka
b735c02ec2
Implement use of KDF data object.
2017-11-02 10:59:17 +09:00
NIIBE Yutaka
2ecb104ae4
Implement rw_kdf.
2017-11-02 09:28:43 +09:00
NIIBE Yutaka
6b4f3c9934
Start adding KDF-DO of OpenPGPcard v3.
2017-11-01 16:52:58 +09:00
NIIBE Yutaka
660aaeb04b
Bug fix for keygeneration.
2017-10-31 17:10:03 +09:00
NIIBE Yutaka
1022534c02
Fix gpg_do_keygen.
2017-10-30 15:01:17 +09:00
Aurelien Jarno
6cbf5a4822
linker script: fix keystore_pool size
...
Gnuk supports RSA keys up to 4096 bits. This require 1024 bytes of
storage (p and q are 256 bytes, n is 512 bytes). The linker script
should therefore reserve 1024 bytes per key instead of 512.
In practice it's not an issue at all as all supported MCU have a page
size bigger than 1024 bytes and Gnuk use one page per key.
2017-10-19 14:31:12 +09:00
Aurelien Jarno
43009f39e8
polarssl: use a bigger sliding window when possible
2017-10-17 15:01:17 +09:00
Aurelien Jarno
56fb5002bf
malloc: rename MEMORY_ into HEAP_
...
That way MEMORY_SIZE can be exported in a later patch.
2017-10-17 15:01:13 +09:00
Aurelien Jarno
8319f4a14b
polarssl: replace BIGNUM_C_IMPLEMENTATION check
...
Replace the BIGNUM_C_IMPLEMENTATION check by a check on POLARSSL_HAVE_ASM
and __arm__. This way it's possible to use this code on non arm, but
also to run the GNU/Linux emulation on an arm machine, which is useful
for debugging and profiling.
2017-10-17 15:01:06 +09:00
NIIBE Yutaka
f72e132967
Fix configure.
2017-10-11 11:24:12 +09:00
NIIBE Yutaka
a22b695f96
No --vidpid for GNU/Linux.
2017-10-10 21:06:42 +09:00
NIIBE Yutaka
0c901d8052
Support --debug option for GNU/Linux emulation.
2017-10-10 14:36:34 +09:00
NIIBE Yutaka
a1b8e7f40c
STM8S Discovery kit is supported again.
2017-10-06 17:19:55 +09:00
NIIBE Yutaka
dccda32b93
Fix for 64KB STM32F103.
2017-10-06 17:04:45 +09:00
NIIBE Yutaka
75049ce949
Fix linker script.
2017-10-06 17:00:00 +09:00
NIIBE Yutaka
be80a3ef2f
For emulation, support --vidpid at runtime.
2017-10-06 10:20:54 +09:00
NIIBE Yutaka
94424e85c3
Fix stack size for ARM.
2017-10-05 17:07:06 +09:00
NIIBE Yutaka
43980d1c81
RSA in a single step.
2017-10-05 17:06:50 +09:00
NIIBE Yutaka
183cec8a04
Emulation tool added.
2017-10-05 13:53:48 +09:00
NIIBE Yutaka
7e4ee2b361
Serial string for GNU/Linux emulation.
2017-10-04 18:54:16 +09:00
NIIBE Yutaka
eee8d046a9
Fix gnuk_malloc for 64-bit.
2017-10-04 12:38:37 +09:00
NIIBE Yutaka
550010f25f
Tweak the size of stack of openpgp-card thread.
2017-10-04 10:45:39 +09:00
NIIBE Yutaka
3adbe30c4d
RSA key generation in two steps.
2017-10-04 09:44:19 +09:00
NIIBE Yutaka
d9ec8778fc
Don't use malloc if not needed.
2017-10-03 16:12:41 +09:00