2011-01-17 07:40:04 +00:00
|
|
|
2011-01-17 NIIBE Yutaka <gniibe@fsij.org>
|
|
|
|
|
|
|
|
* src/openpgp.c (cmd_nop): Removed.
|
|
|
|
|
|
|
|
* src/config.h.in: ifdef-out (not for ASSEMBLER).
|
|
|
|
|
2011-01-15 12:49:17 +00:00
|
|
|
2011-01-15 NIIBE Yutaka <gniibe@fsij.org>
|
|
|
|
|
|
|
|
* src/usb-icc.c (icc_handle_data): Bug fix: add break for case
|
|
|
|
ICC_STATE_SEND.
|
|
|
|
|
2011-01-14 06:47:15 +00:00
|
|
|
2011-01-14 NIIBE Yutaka <gniibe@fsij.org>
|
|
|
|
|
|
|
|
* Version 0.6.
|
|
|
|
|
|
|
|
* src/usb_prop.c (gnukStringSerial): Include version number (again).
|
|
|
|
|
|
|
|
* boards/STM8S_DISCOVERY/board.c (hwinit1): Initialize TIM3 and
|
|
|
|
remap TIM3.
|
|
|
|
(cir_ext_disable, cir_ext_enable, EXTI9_5_IRQHandler)
|
|
|
|
(TIM3_IRQHandler): New.
|
|
|
|
|
|
|
|
* boards/STBEE_MINI/board.h (HAVE_7SEGLED): New.
|
|
|
|
|
|
|
|
* boards/STM8S_DISCOVERY/board.h: Include "config.h".
|
|
|
|
(VAL_GPIOBODR): PB0 (TIM3_CH3) is pull-down for PINPAD_SUPPORT.
|
|
|
|
|
|
|
|
* src/pin-cir.c (pindisp): Handle the board with no 7 segment
|
|
|
|
display.
|
|
|
|
|
2011-01-11 03:07:44 +00:00
|
|
|
2011-01-11 NIIBE Yutaka <gniibe@fsij.org>
|
|
|
|
|
|
|
|
* src/openpgp-do.c (do_openpgpcard_aid): Fix length of res_p;
|
|
|
|
|
2011-01-11 00:16:40 +00:00
|
|
|
2011-01-08 NIIBE Yutaka <gniibe@fsij.org>
|
|
|
|
|
|
|
|
* src/usb-icc.c (icc_handle_data): Handle the case of
|
|
|
|
ICC_STATE_SEND (back again to the implementation of v0.4).
|
|
|
|
(USBthread): Don't send back larger block (for libccid 1.3.11).
|
|
|
|
|
2011-01-07 07:18:47 +00:00
|
|
|
2011-01-07 NIIBE Yutaka <gniibe@fsij.org>
|
|
|
|
|
|
|
|
* src/openpgp.c (cmd_read_binary): Call gpg_do_get_data for AID.
|
|
|
|
|
|
|
|
* src/openpgp-do.c (gpg_do_get_data): Added new argument WITH_TAG.
|
|
|
|
|
|
|
|
* src/usb_prop.c (gnuk_device_init)
|
|
|
|
(gnuk_device_GetStringDescriptor): gnukStringSerial with unique
|
|
|
|
chip ID.
|
|
|
|
|
|
|
|
* src/openpgp-do.c (do_openpgpcard_aid): New.
|
|
|
|
(openpgpcard_aid): Removed.
|
|
|
|
|
|
|
|
* boards/common/hw_config.c (unique_device_id): New.
|
|
|
|
|
2011-01-06 06:50:23 +00:00
|
|
|
2011-01-06 NIIBE Yutaka <gniibe@fsij.org>
|
|
|
|
|
2011-01-07 07:18:47 +00:00
|
|
|
* src/config.h.in (PINPAD_MORE_DEFINE): Added.
|
|
|
|
|
|
|
|
* src/configure: Requiring bash (for variable substitution), added
|
|
|
|
PINPAD.
|
|
|
|
|
|
|
|
* src/Makefile.in: Support PINPAD.
|
|
|
|
|
2011-01-06 06:50:23 +00:00
|
|
|
* src/pin-cir.c (cir_timer_interrupt): Support Sharp protocol.
|
|
|
|
|
2011-01-04 12:06:55 +00:00
|
|
|
2011-01-04 NIIBE Yutaka <gniibe@fsij.org>
|
|
|
|
|
|
|
|
* src/chconf.h (CH_USE_DYNAMIC): It's TRUE now.
|
|
|
|
|
|
|
|
* src/usb_desc.c (gnukConfigDescriptor): Added PINPAD_SUPPORT.
|
|
|
|
|
2011-01-04 14:02:03 +00:00
|
|
|
* src/pin-cir.c (cir_timer_interrupt): Added CIR_PERIOD_INHIBIT_CHATTER.
|
2011-01-04 12:06:55 +00:00
|
|
|
|
2010-12-29 05:30:49 +00:00
|
|
|
2010-12-29 NIIBE Yutaka <gniibe@fsij.org>
|
|
|
|
|
|
|
|
* src/pin-cir.c (cir_timer_interrupt): Support Philips RC-5 protocol.
|
|
|
|
|
2010-12-28 11:01:43 +00:00
|
|
|
2010-12-28 NIIBE Yutaka <gniibe@fsij.org>
|
|
|
|
|
|
|
|
* src/pin-cir.c (cir_timer_interrupt): Support Philips RC-6 protocol.
|
|
|
|
|
2010-12-27 02:57:25 +00:00
|
|
|
2010-12-27 NIIBE Yutaka <gniibe@fsij.org>
|
|
|
|
|
|
|
|
* src/pin-cir.c (cir_timer_interrupt): Support Sony protocol.
|
|
|
|
|
2010-12-24 06:28:23 +00:00
|
|
|
2010-12-24 NIIBE Yutaka <gniibe@fsij.org>
|
|
|
|
|
|
|
|
* src/pin-cir.c: New file.
|
|
|
|
|
2010-12-20 08:00:23 +00:00
|
|
|
2010-12-20 NIIBE Yutaka <gniibe@fsij.org>
|
|
|
|
|
|
|
|
* src/openpgp.c (GPGthread): Added PINPAD_SUPPORT.
|
|
|
|
* boards/STBEE_MINI/mcuconf.h: Simplified.
|
|
|
|
* boards/STBEE_MINI/board.h: Include config.h.
|
|
|
|
(PINPAD_SUPPORT): Added.
|
|
|
|
* boards/STBEE_MINI/board.c (hwinit1): Added PINPAD_SUPPORT.
|
|
|
|
|
2010-12-15 01:24:39 +00:00
|
|
|
2010-12-15 NIIBE Yutaka <gniibe@fsij.org>
|
|
|
|
|
|
|
|
* src/configure (FLASH_SIZE): Without 'k'.
|
|
|
|
* src/gnuk.ld.in (MEMORY): Append "k" here.
|
2010-12-15 02:55:57 +00:00
|
|
|
(.gnuk_flash): End point should be aligned too.
|
2010-12-15 01:24:39 +00:00
|
|
|
|
|
|
|
* src/config.h.in (@PINPAD_DEFINE@): New.
|
|
|
|
* src/Makefile.in (@PINPAD_MAKE_OPTION@): New.
|
|
|
|
* src/configure (PINPAD_MAKE_OPTION, PINPAD_DEFINE): New.
|
|
|
|
|
2010-12-14 08:42:38 +00:00
|
|
|
2010-12-14 NIIBE Yutaka <gniibe@fsij.org>
|
|
|
|
|
|
|
|
* src/configure (FLASH_PAGE_SIZE): Always set.
|
|
|
|
|
2010-12-12 23:51:48 +00:00
|
|
|
2010-12-13 NIIBE Yutaka <gniibe@fsij.org>
|
|
|
|
|
|
|
|
* Version 0.5.
|
|
|
|
|
|
|
|
* src/usb_desc.c (gnukStringSerial): Updated.
|
|
|
|
|
2010-12-10 07:31:25 +00:00
|
|
|
2010-12-10 NIIBE Yutaka <gniibe@fsij.org>
|
|
|
|
|
|
|
|
* src/usb-cdc-vport.c (Virtual_Com_Port_Data_Setup)
|
|
|
|
(Virtual_Com_Port_NoData_Setup): No check for class&interface
|
|
|
|
request.
|
|
|
|
|
|
|
|
* src/usb-icc.c (ATR): Fixed.
|
|
|
|
|
|
|
|
* src/usb_desc.c (/* ICC Descriptor*/): bcdCCID = 1.1.
|
|
|
|
dwDefaultClock = dwMaximumClock = 3571.
|
|
|
|
dwFeatures 0x00040842.
|
|
|
|
|
|
|
|
* src/usb_prop.c (gnuk_clock_frequencies, gnuk_data_rates): New.
|
|
|
|
(gnuk_nothing_todo): Removed.
|
|
|
|
(gnuk_setup_with_data, gnuk_setup_with_nodata): New.
|
|
|
|
(Device_Property): Changed to call gnuk_setup_with_data and
|
|
|
|
gnuk_setup_with_nodata.
|
|
|
|
|
2010-12-09 01:12:54 +00:00
|
|
|
2010-12-09 NIIBE Yutaka <gniibe@fsij.org>
|
|
|
|
|
|
|
|
* src/usb-icc.c (icc_power_off): Set icc_data_size = 0 to specify
|
|
|
|
no command APDU. Signal GPGThread.
|
|
|
|
(icc_handle_data, USBthread): Don't signal main thread any more.
|
|
|
|
|
|
|
|
* src/openpgp.c (GPGthread): Only process the command APDU, if any.
|
|
|
|
|
|
|
|
* src/openpgp-do.c (do_tag_to_nr): Don't call fatal.
|
|
|
|
* src/main.c (fatal_code): New.
|
|
|
|
(main): Implemented 1-bit LED status display.
|
|
|
|
(fatal): Added argument CODE.
|
|
|
|
* src/flash.c (flash_data_pool_allocate): Supply argument FATAL_FLASH.
|
|
|
|
* src/random.c (random_bytes_get): Supply argument FATAL_RANDOM.
|
|
|
|
* src/ac.c (auth_status): Added volatile, and remove static.
|
|
|
|
|
2010-12-08 05:10:30 +00:00
|
|
|
2010-12-08 NIIBE Yutaka <gniibe@fsij.org>
|
|
|
|
|
2010-12-08 06:10:41 +00:00
|
|
|
* src/gnuk.h (AC_OTHER_AUTHORIZED): Renamed (was:
|
|
|
|
AC_PSO_OTHER_AUTHORIZED).
|
|
|
|
* src/ac.c (ac_reset_other): Renamed (was: ac_reset_pso_other).
|
|
|
|
(verify_other): Renamed (was: verify_pso_other).
|
|
|
|
(ac_reset_admin): New.
|
|
|
|
* src/openpgp.c (cmd_change_password): Call ac_reset_admin.
|
|
|
|
|
2010-12-08 05:10:30 +00:00
|
|
|
* src/main.c (main): Don't create GPGThread here.
|
|
|
|
* src/usb-icc.c (icc_power_on): But create here, when requested.
|
|
|
|
(icc_power_off): Terminate GPGThread.
|
|
|
|
* src/openpgp.c (gpg_init, gpg_fini): New.
|
|
|
|
(GPGthread): Check chThdShouldTerminate. Call gpg_init and gpg_fini.
|
|
|
|
|
2010-12-07 05:34:25 +00:00
|
|
|
2010-12-07 NIIBE Yutaka <gniibe@fsij.org>
|
|
|
|
|
|
|
|
USB CCID/ICC implementation changes.
|
|
|
|
* src/usb_desc.c (dwMaxCCIDMessageLength): Updated.
|
|
|
|
* src/usb-icc.c (EV_TX_FINISHED): New.
|
|
|
|
(icc_rcv_data, icc_tx_data): Removed.
|
|
|
|
(icc_buffer, icc_seq): New.
|
|
|
|
(icc_next_p, icc_chain_p): New.
|
|
|
|
(icc_tx_ready): Removed.
|
|
|
|
(EP1_IN_Callback): Handle multiple transactions.
|
|
|
|
(icc_prepare_receive): New.
|
|
|
|
(EP2_OUT_Callback): Handle multiple transactions.
|
|
|
|
(icc_error, icc_send_status): Handle the case of receive in chain.
|
|
|
|
(icc_power_on, icc_send_params): Specify it's a single transaction.
|
|
|
|
(icc_send_data_block_filling_header): New.
|
|
|
|
(icc_send_data_block): Simplify.
|
|
|
|
(icc_handle_data): Removed the case of ICC_STATE_SEND.
|
|
|
|
Handle buffer of multiple transactions.
|
|
|
|
(USBthread): Don't use sending in chain.
|
|
|
|
* src/gnuk.h (USB_LL_BUF_SIZE): New.
|
|
|
|
(USB_BUF_SIZE): Now, it's larger value.
|
|
|
|
* src/configure: Echo for --enable-debug.
|
|
|
|
* src/call-rsa.c (rsa_sign): Use temp[] buffer as rsa_pkcs1_sign
|
|
|
|
writes OUTPUT in early stage.
|
|
|
|
|
2010-12-04 04:46:37 +00:00
|
|
|
2010-12-04 NIIBE Yutaka <gniibe@fsij.org>
|
|
|
|
|
|
|
|
* src/flash.c (flash_keystore_release): Reset keystore storage.
|
|
|
|
|
2010-12-03 08:35:22 +00:00
|
|
|
2010-12-03 NIIBE Yutaka <gniibe@fsij.org>
|
|
|
|
|
|
|
|
Keystore management changes.
|
|
|
|
* src/flash.c (flash_key_alloc): Check FLASH_KEYSTORE_SIZE.
|
|
|
|
(flash_key_release): Removed.
|
|
|
|
(flash_keystore_release): New function.
|
|
|
|
* src/openpgp-do.c (gpg_do_write_prvkey): Make it static.
|
|
|
|
When there is a key already, return as error.
|
|
|
|
(proc_key_import): Call flash_keystore_release when all keys removed.
|
|
|
|
* src/gnuk.ld.in (_keystore_pool): Size of keystore is now 1.5KB.
|
|
|
|
|
2010-11-29 23:40:01 +00:00
|
|
|
2010-11-30 NIIBE Yutaka <gniibe@fsij.org>
|
|
|
|
|
2010-11-30 05:32:56 +00:00
|
|
|
Flash ROM fixes for STM32F10X_HD.
|
|
|
|
* src/gnuk.ld.in (.gnuk_flash): Use FLASH_PAGE_SIZE.
|
|
|
|
* src/configure (FLASH_PAGE_SIZE): Defined for gnuk.ld.
|
|
|
|
* src/flash.c (FLASH_PAGE_SIZE): New define.
|
|
|
|
(FLASH_DATA_POOL_SIZE): Use FLASH_PAGE_SIZE.
|
|
|
|
|
2010-11-30 04:54:43 +00:00
|
|
|
Import changes of ChibiOS_2.0.8.
|
|
|
|
* ChibiOS_2.0.8/os/hal/include/pwm.h
|
|
|
|
* ChibiOS_2.0.8/os/hal/platforms/STM32/pwm_lld.c
|
|
|
|
* ChibiOS_2.0.8/os/hal/platforms/STM32/pwm_lld.h
|
|
|
|
* ChibiOS_2.0.8/os/hal/src/pwm.c
|
|
|
|
* ChibiOS_2.0.8/os/hal/templates/pwm_lld.c
|
|
|
|
* ChibiOS_2.0.8/os/hal/templates/pwm_lld.h
|
|
|
|
* ChibiOS_2.0.8/os/kernel/include/ch.h
|
|
|
|
* ChibiOS_2.0.8/os/kernel/src/chevents.c
|
|
|
|
* ChibiOS_2.0.8/os/kernel/src/chthreads.c
|
|
|
|
* ChibiOS_2.0.8/boards/OLIMEX_LPC_P2148/board.h
|
|
|
|
* ChibiOS_2.0.8/readme.txt
|
|
|
|
* ChibiOS_2.0.8/test/testdyn.c
|
2010-12-03 08:35:22 +00:00
|
|
|
* ChibiOS_2.0.8/docs/*/*: Updated.
|
2010-11-30 04:54:43 +00:00
|
|
|
|
2010-11-30 01:04:30 +00:00
|
|
|
New private key management.
|
|
|
|
* src/ac.c (ac_reset_pso_cds, ac_reset_pso_other): Call
|
|
|
|
gpg_do_clear_prvkey.
|
|
|
|
(verify_pso_other): load private keys here.
|
|
|
|
* src/openpgp-do.c (kd): Keydata for Signing, Decryption, and
|
|
|
|
Authentication.
|
|
|
|
(gpg_do_load_prvkey, gpg_do_write_prvkey): Use kd[].
|
|
|
|
(gpg_do_clear_prvkey): New function.
|
|
|
|
* src/openpgp.c (cmd_pso, cmd_internal_authenticate): Use new API
|
|
|
|
of rsa_sign and rsa_decrypt.
|
2010-11-30 03:50:28 +00:00
|
|
|
(cmd_pso): Fixed bug of checking return value of gpg_get_pw1_lifetime.
|
2010-11-30 01:04:30 +00:00
|
|
|
* src/call-rsa.c (rsa_sign): New argument KD.
|
|
|
|
(rsa_decrypt): Likewise.
|
|
|
|
|
|
|
|
Don't use malloc/free in C library.
|
2010-11-29 23:40:01 +00:00
|
|
|
* src/stdlib.h (malloc, free): Use chHeapAlloc and chHeapFree.
|
|
|
|
|
2010-11-26 00:56:23 +00:00
|
|
|
2010-11-26 NIIBE Yutaka <gniibe@fsij.org>
|
|
|
|
|
2010-11-26 07:27:01 +00:00
|
|
|
* boards/STM8S_DISCOVERY/*: New.
|
|
|
|
* src/configure: STM8S_DISCOVERY only has 64KB flash memory.
|
|
|
|
|
2010-11-26 07:24:36 +00:00
|
|
|
* boards/STBEE_MINI/board.h (CPU_WITH_NO_GPIOE): New define.
|
|
|
|
* ChibiOS_2.0.6/os/hal/platforms/STM32/hal_lld.c: Use it.
|
|
|
|
* ChibiOS_2.0.6/os/hal/platforms/STM32/pal_lld.c: Likewise.
|
|
|
|
* ChibiOS_2.0.6/os/hal/platforms/STM32/pal_lld.h: Likewise.
|
|
|
|
|
2010-11-29 23:40:01 +00:00
|
|
|
* src/openpgp.c (cmd_pso): DigestInfo by SHA224/SHA384/SHA512 is
|
|
|
|
supported.
|
2010-11-26 00:56:23 +00:00
|
|
|
|
2010-11-22 05:53:37 +00:00
|
|
|
2010-11-22 NIIBE Yutaka <gniibe@fsij.org>
|
|
|
|
|
|
|
|
Import changes of ChibiOS_2.0.6.
|
|
|
|
* ChibiOS_2.0.6/demos/ARM7-AT91SAM7X-LWIP-GCC/chconf.h
|
|
|
|
* ChibiOS_2.0.6/os/hal/include/can.h
|
|
|
|
* ChibiOS_2.0.6/os/hal/platforms/AT91SAM7/hal_lld.c
|
|
|
|
* ChibiOS_2.0.6/os/hal/platforms/AT91SAM7/serial_lld.c
|
|
|
|
* ChibiOS_2.0.6/os/hal/platforms/LPC214x/serial_lld.c
|
|
|
|
* ChibiOS_2.0.6/os/hal/platforms/STM32/hal_lld_f103.h
|
|
|
|
* ChibiOS_2.0.6/os/hal/platforms/STM32/hal_lld_f105_f107.h
|
|
|
|
* ChibiOS_2.0.6/os/hal/platforms/STM32/pwm_lld.c
|
|
|
|
* ChibiOS_2.0.6/os/hal/platforms/STM32/serial_lld.h
|
|
|
|
* ChibiOS_2.0.6/os/hal/platforms/STM32/spi_lld.h
|
|
|
|
* ChibiOS_2.0.6/os/hal/src/adc.c
|
|
|
|
* ChibiOS_2.0.6/os/hal/src/spi.c
|
|
|
|
* ChibiOS_2.0.6/os/kernel/include/ch.h
|
|
|
|
* ChibiOS_2.0.6/os/kernel/include/chinline.h
|
|
|
|
* ChibiOS_2.0.6/os/kernel/include/chioch.h
|
|
|
|
* ChibiOS_2.0.6/os/kernel/include/chstreams.h
|
|
|
|
* ChibiOS_2.0.6/os/kernel/include/chthreads.h
|
|
|
|
* ChibiOS_2.0.6/os/kernel/src/chlists.c
|
|
|
|
* ChibiOS_2.0.6/os/kernel/src/chschd.c
|
|
|
|
* ChibiOS_2.0.6/os/kernel/src/chthreads.c
|
|
|
|
* ChibiOS_2.0.6/os/ports/GCC/ARM/rules.mk
|
|
|
|
* ChibiOS_2.0.6/os/ports/GCC/ARM7/chcore.h
|
|
|
|
* ChibiOS_2.0.6/os/ports/GCC/ARM7/port.dox
|
|
|
|
* ChibiOS_2.0.6/os/ports/GCC/ARMCMx/chcore_v6m.c
|
|
|
|
* ChibiOS_2.0.6/os/ports/GCC/ARMCMx/chcore_v6m.h
|
|
|
|
* ChibiOS_2.0.6/os/ports/GCC/ARMCMx/chcore_v7m.c
|
|
|
|
* ChibiOS_2.0.6/os/ports/GCC/ARMCMx/chcore_v7m.h
|
|
|
|
* ChibiOS_2.0.6/os/ports/GCC/ARMCMx/old/chcore_v7m.h
|
|
|
|
* ChibiOS_2.0.6/os/ports/GCC/AVR/chcore.h
|
|
|
|
* ChibiOS_2.0.6/os/ports/GCC/AVR/port.dox
|
|
|
|
* ChibiOS_2.0.6/os/ports/GCC/MSP430/chcore.c
|
|
|
|
* ChibiOS_2.0.6/os/ports/GCC/MSP430/chcore.h
|
|
|
|
* ChibiOS_2.0.6/os/ports/GCC/MSP430/port.dox
|
|
|
|
* ChibiOS_2.0.6/os/ports/GCC/PPC/chcore.h
|
|
|
|
* ChibiOS_2.0.6/os/ports/GCC/PPC/port.dox
|
|
|
|
* ChibiOS_2.0.6/os/ports/RC/STM8/port.dox
|
|
|
|
* ChibiOS_2.0.6/os/various/memstreams.h
|
|
|
|
* ChibiOS_2.0.6/readme.txt
|
|
|
|
* ChibiOS_2.0.6/docs/*/*: Updated
|
|
|
|
|
2010-11-19 14:43:12 +00:00
|
|
|
2010-11-14 NIIBE Yutaka <gniibe@fsij.org>
|
|
|
|
|
|
|
|
* src/openpgp.c (cmd_pso): DigestInfo by SHA256 is supported.
|
|
|
|
|
2010-11-12 14:19:27 +00:00
|
|
|
2010-11-12 NIIBE Yutaka <gniibe@fsij.org>
|
|
|
|
|
|
|
|
* src/usb_desc.c (gnukConfigDescriptor): Change dwFeatures.
|
|
|
|
|
|
|
|
* src/usb-icc.c (icc_send_params): Always return fixed result.
|
|
|
|
(icc_handle_data): Support ICC_GET_PARAMS.
|
|
|
|
|
|
|
|
2010-11-10 NIIBE Yutaka <gniibe@fsij.org>
|
|
|
|
|
|
|
|
* src/usb_desc.c (gnukConfigDescriptor): Fix bmAttributes.
|
|
|
|
|
2010-11-09 05:32:41 +00:00
|
|
|
2010-11-09 NIIBE Yutaka <gniibe@fsij.org>
|
|
|
|
|
|
|
|
* Version 0.4.
|
|
|
|
|
|
|
|
* src/usb_desc.c (gnukStringSerial): Updated.
|
|
|
|
|
|
|
|
* ChibiOS_2.0.2/os/hal/platforms/STM32/pal_lld.h (PALConfig):
|
|
|
|
STBee Mini uses STM32F103CBT6 which expose no GPIO E port.
|
|
|
|
* ChibiOS_2.0.2/os/hal/platforms/STM32/pal_lld.c (_pal_lld_init):
|
|
|
|
Likewise.
|
|
|
|
|
2010-11-08 00:16:06 +00:00
|
|
|
2010-11-08 NIIBE Yutaka <gniibe@fsij.org>
|
|
|
|
|
2010-11-09 05:32:41 +00:00
|
|
|
* tool/dump_mem.py: New tool.
|
|
|
|
|
2010-11-08 04:17:30 +00:00
|
|
|
Implement GC for data pool in flash memory.
|
|
|
|
* src/openpgp-do.c (gpg_write_digital_signature_counter): New.
|
|
|
|
(gpg_increment_digital_signature_counter): Fix for GC.
|
|
|
|
(gpg_data_scan): Rename from gpg_do_table_init.
|
|
|
|
(gpg_data_copy): New function for copying GC.
|
|
|
|
* src/main.c (main): Call gpg_data_scan with the address which
|
|
|
|
flash_init returns.
|
|
|
|
* src/flash.c (flash_erase_page): New function.
|
|
|
|
(FLASH_DATA_POOL_SIZE): data_pool is 2KiB now.
|
|
|
|
(flash_data): Put a header (GC generation).
|
|
|
|
(flash_init): Implement choosing a data pool page.
|
|
|
|
(flash_data_pool): Removed.
|
|
|
|
(flash_copying_gc): New function.
|
|
|
|
(flash_data_pool_allocate): Call flash_copying_gc when full.
|
|
|
|
(flash_do_write_internal, flash_put_data_internal)
|
|
|
|
(flash_bool_write_internal, flash_cnt123_write_internal): New
|
|
|
|
* src/gnuk.ld.in (gnuk_flash): data_pool is 2KiB now.
|
|
|
|
|
|
|
|
Bug fixes.
|
2010-11-08 00:40:31 +00:00
|
|
|
* src/openpgp.c (cmd_change_password, cmd_reset_user_password):
|
|
|
|
Write to APDU correctly.
|
|
|
|
* src/flash.c (flash_warning): Make it public.
|
2010-11-08 00:16:06 +00:00
|
|
|
* src/openpgp-do.c (do_hist_bytes, do_fp_all, do_cafp_all)
|
|
|
|
(do_kgtime_all, do_ds_count): Fix return value.
|
2010-11-08 00:24:52 +00:00
|
|
|
(rw_pw_status): Correctly return value.
|
|
|
|
(proc_resetting_code): Change func proto. to return success/failure.
|
|
|
|
(proc_key_import): Ditto.
|
|
|
|
(gpg_do_put_data): Handle return values.
|
2010-11-08 00:40:31 +00:00
|
|
|
(gpg_do_write_simple): Don't write to APDU.
|
2010-11-08 00:16:06 +00:00
|
|
|
|
2010-11-05 07:42:17 +00:00
|
|
|
2010-11-05 NIIBE Yutaka <gniibe@fsij.org>
|
|
|
|
|
2010-11-05 09:22:56 +00:00
|
|
|
Bug fixes.
|
2010-11-05 08:43:01 +00:00
|
|
|
* src/openpgp.c (gpg_change_keystring): Handle
|
|
|
|
GPG_KEY_FOR_AUTHENTICATION.
|
2010-11-05 09:22:56 +00:00
|
|
|
* src/openpgp-do.c (gpg_do_write_prvkey): Remove multiple call
|
|
|
|
of flash_do_release.
|
2010-11-05 08:43:01 +00:00
|
|
|
|
2010-11-08 05:06:54 +00:00
|
|
|
Bug fix.
|
|
|
|
* src/openpgp-do.c (gpg_do_write_prvkey): Don't hardcode 6, but
|
|
|
|
use strlen.
|
2010-11-05 08:37:58 +00:00
|
|
|
|
2010-11-05 07:42:17 +00:00
|
|
|
* src/flash.c, src/gnuk.ld.in: Rename "Flash DO Pool" to "Flash
|
|
|
|
Data Pool", because it's not only DO.
|
|
|
|
* src/gnuk.h, src/opengpg-do.c: Cleanup.
|
|
|
|
|
|
|
|
Digital Signature Counter implementation improvement.
|
|
|
|
* src/gnuk.h (NR_DO_DS_COUNT): Removed.
|
|
|
|
(NR_COUNTER_DS, NR_COUNTER_DS_LSB): New.
|
|
|
|
* src/openpgp-do.c (do_ds_count_initial_value): Removed.
|
|
|
|
(gpg_do_increment_digital_signature_counter): Removed.
|
|
|
|
(digital_signature_counter): New variable.
|
|
|
|
(do_ds_count, gpg_increment_digital_signature_counter): New functions.
|
|
|
|
(gpg_do_table): Change the entry for GPG_DO_DS_COUNT as DO_PROC_READ.
|
|
|
|
(gpg_do_table_init): Handle digital_signature_counter.
|
|
|
|
* src/flash.c (flash_data_pool_allocate, flash_put_data): New.
|
|
|
|
|
|
|
|
Password status implementation improvement.
|
|
|
|
* src/gnuk.h (PW_STATUS_PW1, PW_STATUS_RC, PW_STATUS_PW3): Removed.
|
|
|
|
(PW_ERR_PW1, PW_ERR_RC, PW_ERR_PW3): New define.
|
|
|
|
(NR_COUNTER_123, NR_BOOL_PW1_LIFETIME): New define.
|
|
|
|
(NR_NONE, NR_EMPTY): New define.
|
|
|
|
* src/flash.c (flash_bool_clear, flash_bool_write)
|
|
|
|
(flash_cnt123_get_value, flash_cnt123_increment)
|
|
|
|
(flash_cnt123_clear): New functions.
|
|
|
|
* src/openpgp-do.c (do_pw_status_bytes_template): Removed.
|
|
|
|
(PW_STATUS_BYTES_TEMPLATE, gpg_do_reset_pw_counter): Removed.
|
|
|
|
(PASSWORD_ERRORS_MAX, PW_LEN_MAX): New define.
|
|
|
|
(pw1_lifetime_p, pw_err_counter_p): New variables.
|
|
|
|
(gpg_get_pw1_lifetime): New function.
|
|
|
|
(gpg_get_pw_err_counter, gpg_passwd_locked, gpg_reset_pw_counter)
|
|
|
|
(gpg_increment_pw_counter): New functions.
|
|
|
|
(rw_pw_status): Use pw1_lifetime_p and pw_err_counter_p.
|
|
|
|
(gpg_do_table_init): Handle NR_COUNTER_123 and NR_BOOL_PW1_LIFETIME.
|
|
|
|
* src/ac.c (verify_pso_cds, verify_pso_other, verify_admin_0):
|
|
|
|
Follow the changes.
|
|
|
|
* src/openpgp.c (cmd_change_password, cmd_reset_user_password)
|
|
|
|
(cmd_pso, cmd_internal_authenticate): Likewise.
|
|
|
|
|
2010-11-04 01:33:20 +00:00
|
|
|
2010-11-04 NIIBE Yutaka <gniibe@fsij.org>
|
|
|
|
|
2010-11-05 07:42:17 +00:00
|
|
|
* src/flash.c (flash_warning): New.
|
2010-11-04 04:57:42 +00:00
|
|
|
(flash_do_pool): Added header for DO pool.
|
|
|
|
(flash_do_release): Fill zero.
|
|
|
|
(flash_do_write): Change DO format in flash.
|
|
|
|
* src/openpgp-do.c (gpg_do_table_init, copy_do_1)
|
|
|
|
(gpg_do_read_simple): Follow the change of DO format in flash.
|
|
|
|
|
2010-11-04 01:33:20 +00:00
|
|
|
* src/openpgp-do.c (DO_CMP_READ): Renamed.
|
|
|
|
(cmp_ch_data, cmp_app_data, cmp_ss_temp): Likewise.
|
|
|
|
(with_tag): Removed static global variable.
|
|
|
|
(do_hist_bytes, do_fp_all, do_cafp_all, do_kgtime_all)
|
|
|
|
(rw_pw_status, copy_do_1, copy_do, gpg_do_get_data): Added
|
|
|
|
with_tag argument.
|
|
|
|
(gpg_do_put_data): length > 255 will be error.
|
|
|
|
|
2010-11-03 04:47:28 +00:00
|
|
|
2010-11-03 NIIBE Yutaka <gniibe@fsij.org>
|
|
|
|
|
|
|
|
Bug fixes.
|
|
|
|
* src/ac.c (verify_admin_0): Initialize pwsb earlier.
|
|
|
|
* src/openpgp-do.c (copy_do_1): Access do_data[0] (was: do_data[1]).
|
|
|
|
|
2010-11-02 03:05:18 +00:00
|
|
|
2010-11-02 NIIBE Yutaka <gniibe@fsij.org>
|
|
|
|
|
2010-11-03 04:47:28 +00:00
|
|
|
DfuSe support.
|
2010-11-02 03:05:18 +00:00
|
|
|
* tool/dfuse.py (DFU_STM32.download): Put '#' for each 4-KiB.
|
|
|
|
Added 0-length write to finish download.
|
|
|
|
Take intel_hex object as argument.
|
|
|
|
(DFU_STM32.ll_upload_block): New method.
|
|
|
|
(DFU_STM32.dfuse_read_memory): New method.
|
|
|
|
(DFU_STM32.verify): New method.
|
|
|
|
(get_device): Support DFU_STM32PROTOCOL_0 too (for CQ STARM).
|
|
|
|
|
|
|
|
* tool/dfuse.py: Renamed from dfu_stmicroelectronics_extention.py.
|
|
|
|
|
2010-11-01 09:14:10 +00:00
|
|
|
2010-11-01 NIIBE Yutaka <gniibe@fsij.org>
|
|
|
|
|
|
|
|
* tool/intel_hex.py: New file.
|
|
|
|
* tool/dfu_stmicroelectronics_extention.py: New file.
|
|
|
|
|
2010-10-28 00:53:41 +00:00
|
|
|
2010-10-28 NIIBE Yutaka <gniibe@fsij.org>
|
|
|
|
|
|
|
|
* src/gnuk.h (OPENPGP_CARD_INITIAL_PW3): New.
|
|
|
|
* src/ac.c (verify_admin_0): Use OPENPGP_CARD_INITIAL_PW3.
|
|
|
|
|
2010-10-23 02:20:56 +00:00
|
|
|
2010-10-23 NIIBE Yutaka <gniibe@fsij.org>
|
|
|
|
|
|
|
|
* Version 0.3.
|
|
|
|
|
|
|
|
* src/usb_desc.c (gnukStringSerial): Updated.
|
|
|
|
|
2010-10-22 03:56:40 +00:00
|
|
|
2010-10-22 NIIBE Yutaka <gniibe@fsij.org>
|
|
|
|
|
2010-10-22 08:18:06 +00:00
|
|
|
* src/gnuk.ld.in (.gnuk_random): Fix description so that
|
|
|
|
padding with 0xffffffff will be in gnuk.hex.
|
|
|
|
|
|
|
|
* src/openpgp.c (file_selection): Change type (was: int).
|
|
|
|
(FILE_NONE..FILE_EF_SERIAL): Change the values.
|
|
|
|
|
2010-10-22 03:56:40 +00:00
|
|
|
* src/configure: Added STBee Mini support.
|
|
|
|
* boards/STBEE_MINI/mcuconf.h: New.
|
|
|
|
* boards/STBEE_MINI/board.mk: New.
|
|
|
|
* boards/STBEE_MINI/board.h: New.
|
|
|
|
* boards/STBEE_MINI/board.c: New.
|
|
|
|
|
|
|
|
* ChibiOS_2.0.2/os/hal/platforms/STM32/hal_lld.c
|
|
|
|
(pal_default_config): STBee Mini uses STM32F103CBT6 which expose
|
|
|
|
no GPIO E port.
|
|
|
|
|
2010-10-22 00:24:12 +00:00
|
|
|
2010-10-21 NIIBE Yutaka <gniibe@fsij.org>
|
|
|
|
|
|
|
|
* boards/common/hw_config.c (Get_SerialNum): Removed.
|
|
|
|
* src/usb_prop.c (gnuk_device_init): Remove calling Get_SerialNum.
|
|
|
|
* src/usb_desc.c (gnukStringSerial): Updated.
|
|
|
|
* boards/CQ_STARM/board.c (set_led): Fix polarity.
|
|
|
|
|
2010-10-20 01:14:03 +00:00
|
|
|
2010-10-20 NIIBE Yutaka <gniibe@fsij.org>
|
|
|
|
|
2010-10-20 04:34:04 +00:00
|
|
|
* FSIJ_SERIAL_NUMBER: New.
|
|
|
|
* src/configure (with_fsij): Added FSIJ serial number support.
|
|
|
|
* src/config.h.in (@FSIJ_DEFINE@, @SERIAL_NUMBER_FOUR_BYTES@): New.
|
|
|
|
|
2010-10-20 01:14:03 +00:00
|
|
|
* src/configure: Added CQ STARM target.
|
|
|
|
* boards/CQ_STARM/mcuconf.h: New.
|
|
|
|
* boards/CQ_STARM/board.mk: New.
|
|
|
|
* boards/CQ_STARM/board.h: New.
|
|
|
|
* boards/CQ_STARM/board.c: New.
|
|
|
|
|
2010-10-20 01:00:37 +00:00
|
|
|
2010-10-19 NIIBE Yutaka <gniibe@fsij.org>
|
|
|
|
|
|
|
|
* boards/STM32_PRIMER2/board.mk (BOARDSRC): Use common/hw_config.c.
|
|
|
|
* boards/OLIMEX_STM32_H103/board.mk (BOARDSRC): Likewise.
|
|
|
|
|
|
|
|
* boards/common/hw_config.c: Move board specific functions to ...
|
|
|
|
* boards/STM32_PRIMER2/board.c (USB_Cable_Config, set_led): ... here.
|
|
|
|
* boards/OLIMEX_STM32_H103/board.c (USB_Cable_Config, set_led): Ditto.
|
|
|
|
|
|
|
|
* boards/{OLIMEX_STM32_H103,STM32_PRIMER2}/hw_config.c: Removed.
|
|
|
|
* boards/common/hw_config.c: New file (was: boards/*/hw_config.c).
|
|
|
|
|
|
|
|
* .gitignore: New file.
|
|
|
|
|
2010-10-16 00:22:18 +00:00
|
|
|
2010-10-16 NIIBE Yutaka <gniibe@fsij.org>
|
|
|
|
|
|
|
|
Implement "INTERNAL AUTHENTICATE" command.
|
|
|
|
|
|
|
|
* src/gnuk.h (BY_USER, BY_RESETCODE, BY_ADMIN): New defines.
|
|
|
|
(NUM_ALL_PRV_KEYS): Now it's 3 (was: 2).
|
|
|
|
|
|
|
|
* src/openpgp.c (INS_INTERNAL_AUTHENTICATE): New define.
|
|
|
|
(cmd_internal_authenticate): New function.
|
|
|
|
(cmds): Added INS_INTERNAL_AUTHENTICATE.
|
|
|
|
(cmd_change_password): Use BY_USER.
|
|
|
|
(cmd_reset_user_password): Use BY_USER, BY_RESETCODE, BY_ADMIN.
|
|
|
|
(cmd_pso): Load GPG_KEY_FOR_DECRYPTION here.
|
|
|
|
(cmd_pso): Removed adding status word into res_APDU...
|
|
|
|
* src/call-rsa.c (rsa_sign): and moved adding status word into
|
|
|
|
res_APDU here.
|
|
|
|
|
|
|
|
* src/ac.c (pw1_keystring): New variable.
|
|
|
|
(ac_reset_pso_other): Clear pw1_keystring.
|
|
|
|
(verify_pso_cds): Use BY_USER.
|
|
|
|
(verify_pso_other): Just check the length of password here, and
|
|
|
|
defer real check to cmd_pso or cmd_internal_authenticate.
|
|
|
|
|
2010-10-14 08:08:09 +00:00
|
|
|
2010-10-14 NIIBE Yutaka <gniibe@fsij.org>
|
|
|
|
|
|
|
|
Adding 'configure' support.
|
|
|
|
* src/configure: New file.
|
|
|
|
* src/Makefile.in: Renamed from src/Makefile.
|
|
|
|
* src/config.h: Renamed from src/config.h.
|
|
|
|
* src/gnuk.ld: Renamed from src/gnuk.ld.
|
|
|
|
|
|
|
|
Adding DFU_SUPPORT.
|
|
|
|
* boards/common/hwinit0.c: New file adding DFU_SUPPORT.
|
|
|
|
* boards/common/hwinit1.c: New file.
|
|
|
|
* boards/OLIMEX_STM32_H103/board.c: Include config.h.
|
|
|
|
Use common/hwinit0.c and common/hwinit1.c.
|
|
|
|
* boards/STM32_PRIMER2/board.c: Likewise.
|
|
|
|
|
2010-09-16 02:03:14 +00:00
|
|
|
2010-09-16 NIIBE Yutaka <gniibe@fsij.org>
|
|
|
|
|
|
|
|
* src/usb-icc.c (icc_error): New function.
|
|
|
|
(icc_handle_data): Call icc_error.
|
|
|
|
Don't go to STATE_START on errors.
|
|
|
|
|
2010-09-13 02:47:21 +00:00
|
|
|
2010-09-13 NIIBE Yutaka <gniibe@fsij.org>
|
2010-09-10 01:52:07 +00:00
|
|
|
|
|
|
|
* Version 0.2.
|
|
|
|
|
2010-09-13 02:47:21 +00:00
|
|
|
* src/openpgp.c (cmd_select_file): Override data of number_of_bytes.
|
|
|
|
|
|
|
|
* src/openpgp-do.c (gpg_do_table_init): Calculate number of byte
|
|
|
|
which Data Objects consumes.
|
|
|
|
|
|
|
|
2010-09-12 Kaz Kojima <kkojima@rr.iij4u.or.jp>
|
|
|
|
|
|
|
|
* src/call-rsa.c (rsa_decrypt): Debug output only when DEBUG.
|
|
|
|
|
|
|
|
* boards/STM32_PRIMER2/hw_config.c (USB_Cable_Config): Fix GPIO.
|
|
|
|
(set_led): Ditto.
|
|
|
|
|
|
|
|
* boards/STM32_PRIMER2/board.c (hwinit1): Added LED initialization.
|
|
|
|
|
|
|
|
2010-09-11 NIIBE Yutaka <gniibe@fsij.org>
|
|
|
|
|
2010-09-10 01:52:07 +00:00
|
|
|
* src/usb-icc.c (ATR): Fixed.
|
|
|
|
(icc_send_params): New function.
|
|
|
|
(icc_handle_data): Handle ICC_SET_PARAMS request.
|
|
|
|
|
|
|
|
* src/random.c (random_bytes_get, random_bytes_free, get_random):
|
|
|
|
Clear used random bytes.
|
|
|
|
|
|
|
|
* src/flash.c (flash_clear_halfword): New function.
|
|
|
|
|
2010-09-09 08:50:34 +00:00
|
|
|
2010-09-10 NIIBE Yutaka <gniibe@fsij.org>
|
|
|
|
|
2010-09-10 01:52:07 +00:00
|
|
|
* Version 0.1.
|
|
|
|
|
2010-09-09 08:50:34 +00:00
|
|
|
* src/usb_desc.c (gnukStringSerial): Change the value so that
|
|
|
|
libccid doesn't get confused.
|
|
|
|
|
|
|
|
* src/openpgp.c (gpg_change_keystring): Support key for decryption
|
|
|
|
as well.
|
|
|
|
(cmd_read_binary): Use openpgpcard_aid.
|
|
|
|
(cmd_pso): call ac_reset_pso_other.
|
|
|
|
|
|
|
|
* src/openpgp-do.c (openpgpcard_aid): Renamed from aid, and exported.
|
|
|
|
(do_ds_count_initial_value): New const variable.
|
|
|
|
(num_prv_keys): New variable.
|
|
|
|
(gpg_do_write_prvkey): Remove contents of keystring only if
|
|
|
|
++num_prv_keys == NUM_ALL_PRV_KEYS.
|
|
|
|
(gpg_do_chks_prvkey): Call flash_do_release.
|
|
|
|
(gpg_do_table_init): Initialize with do_ds_count_initial_value.
|
|
|
|
Initialize num_prv_keys.
|
|
|
|
(gpg_do_write_simple): Support removing DO.
|
|
|
|
(gpg_do_increment_digital_signature_counter): Call flash_do_release.
|
|
|
|
|
|
|
|
* src/gnuk.h (NUM_ALL_PRV_KEYS): New definition.
|
|
|
|
(OPENPGP_CARD_INITIAL_PW1): New definition.
|
|
|
|
(enum kind_of_key): Rename.
|
|
|
|
|
|
|
|
* src/ac.c (ac_reset_pso_cds): New function.
|
|
|
|
|
2010-09-09 00:51:09 +00:00
|
|
|
2010-09-09 Kaz Kojima <kkojima@rr.iij4u.or.jp>
|
|
|
|
|
|
|
|
* boards/STM32_PRIMER2/{board.c,board.h,board.mk,hw_config.c,mcuconf.h}:
|
|
|
|
New files.
|
|
|
|
|
|
|
|
* boards/OLIMEX_STM32_H103/{mcuconf.h,hw_config.c}: Moved from src.
|
|
|
|
|
|
|
|
* src/main.c (main): Use set_led instead of palClearPad directly.
|
|
|
|
|
2010-09-08 05:24:12 +00:00
|
|
|
2010-09-08 NIIBE Yutaka <gniibe@fsij.org>
|
|
|
|
|
|
|
|
* src/ac.c (calc_md): Make SHA1 variable auto.
|
|
|
|
|
|
|
|
* src/debug.c (put_int): New.
|
|
|
|
|
|
|
|
* src/gnuk.ld (__process_stack_size__): Removed.
|
|
|
|
|
|
|
|
* src/main.c (STDOUTthread): Use Event.
|
|
|
|
(main): Make LED ON during command execution, blink usually.
|
|
|
|
|
|
|
|
* src/openpgp-do.c (encrypt, decrypt): Make AES variables auto.
|
|
|
|
(gpg_do_table): GPG_DO_ALG_AUT is NULL.
|
|
|
|
|
|
|
|
* src/openpgp.c (cmd_pso): Bug fix for extended Lc.
|
|
|
|
|
|
|
|
* src/usb-icc.c (icc_power_off): Make LED ON during command
|
|
|
|
execution.
|
|
|
|
(USB_ICC_TIMEOUT): Longer value (was: 1000).
|
|
|
|
|
|
|
|
* src/usb_desc.c (gnukConfigDescriptor): Fix bcdCCID value.
|
|
|
|
|
|
|
|
* src/vcomport.mk (VCOMSRC): Use our own usb_endp.c.
|
|
|
|
|
|
|
|
* src/usb_desc.c (gnukConfigDescriptor): ICC Descriptor is
|
|
|
|
Revision 1.0.
|
|
|
|
|
|
|
|
* polarssl-0.14.0/include/polarssl/config.h: Commend out
|
|
|
|
POLARSSL_SELF_TEST.
|
|
|
|
|
|
|
|
* polarssl-0.14.0/library/rsa.c (rsa_private): Don't check input,
|
|
|
|
so that we don't access ctx->N.
|
|
|
|
(rsa_pkcs1_decrypt): size of BUF is enough as 256.
|
|
|
|
|
|
|
|
* polarssl-0.14.0/library/sha1.c (sha1_file): #if-out to avoid
|
|
|
|
stdio of libc.
|
|
|
|
|
|
|
|
* polarssl-0.14.0/library/bignum.c (mpi_write_hlp)
|
|
|
|
(mpi_write_string, mpi_read_file, mpi_read_file): #if-out to avoid
|
|
|
|
stdio of libc.
|
|
|
|
|
2010-09-09 08:50:34 +00:00
|
|
|
2010-09-07 NIIBE Yutaka <gniibe@fsij.org>
|
|
|
|
|
2010-09-08 05:24:12 +00:00
|
|
|
* gnuk.svg: New file.
|
|
|
|
|
2010-09-05 17:31:32 +00:00
|
|
|
2010-09-06 NIIBE Yutaka <gniibe@fsij.org>
|
|
|
|
|
|
|
|
* Initial version 0.0.
|