2010-09-11 NIIBE Yutaka * Version 0.2. * 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-10 NIIBE Yutaka * Version 0.1. * 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 Kaz Kojima * 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 NIIBE Yutaka * 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-07 NIIBE Yutaka * gnuk.svg: New file. 2010-09-06 NIIBE Yutaka * Initial version 0.0.