aboutsummaryrefslogtreecommitdiffstats
path: root/cipher (follow)
Commit message (Collapse)AuthorAgeFilesLines
* * random.c: Fix prototype of the fast random gatherer. Noted by JoeDavid Shaw2005-06-072-2/+7
| | | | | Vender.
* Updated FSF street address and preparations for a release candidate.Werner Koch2005-05-3136-36/+70
|
* (rndw32_gather_random_fast): While adding data use theWerner Koch2005-03-232-5/+12
| | | | | | size of the object and not the one of its address. Bug reported by Sascha Kiefer.
* * primegen.c (is_prime): Free A2. Noted by [email protected].Werner Koch2005-03-072-8/+15
| | | | | | | | | | | | | | | | | | | Fixes #423. * DETAILS: Document new status codes. * cardglue.c (agent_scd_pkdecrypt, agent_scd_pksign) (agent_scd_genkey, agent_scd_setattr, agent_scd_change_pin) (agent_scd_checkpin, agent_openpgp_storekey): Make sure to send a SC_OP_FAILURE after card operations which might change data. * card-util.c (change_pin): Send a SC_OP_SUCCESS after a PIN has been changed. (change_name): Removed a debug output. * status.h, status.c: New codes BAD_PASSPHRASE_PIN, SC_OP_FAILURE and SC_OP_SUCCESS. * de.po: Updated. Translation is still in the works, though.
* Minor changesWerner Koch2005-01-201-2/+2
|
* * md.c (string_to_digest_algo): Allow read/write SHA384 and SHA512.David Shaw2004-12-012-15/+5
|
* 2004-11-03 Timo Schulz <[email protected]>Timo Schulz2004-11-032-9/+11
| | | | | | | | * strgutil.c (w32_strerror): New. * ttyio.c (init_ttyfp, tty_printf, do_get): Use it here. * iobuf.c (fd_cache_open, file_filter): Likewise. (iobuf_seek, translate_file_handle): Likewise.
* * rndunix.c (start_gatherer) [ENABLE_SELINUX_HACKS]: Don't allowWerner Koch2004-10-142-1/+13
| | | | | | | | logging. * gpgkeys_finger.c (get_key): s/unsigned char/byte/ due to a strange typedef for RISC OS. Noted by Stefan.
* * algorithms.h, cast5.c, cipher.c, idea-stub.c, twofish.c, blowfish.c,David Shaw2004-10-129-135/+112
| | | | | des.c, rijndael.c: Consistently use const for input buffers.
* Note: I have not fully tested the new key creation due to a pc/scWerner Koch2004-09-232-1/+7
| | | | | | | | | | | | | | | | | | | error. However the backupfile has been created successfully. * rsa.c (rsa_generate): Return the dummy list of factors only if the caller asked for it. * card_util.c (generate_card_keys): ask whether backup should be created. (card_store_subkey): Factored some code out to .. * keygen.c (save_unprotected_key_to_card): .. new function. (gen_card_key_with_backup): New. (generate_raw_key): New. (generate_keypair): New arg BACKUP_ENCRYPTION_DIR. Changed all callers. (do_generate_keypair): Divert to gen_card_key_with_backup when desired.
* * dsa.c (verify): s/exp/exponent/ to fix a compiler warning. From WernerDavid Shaw2004-05-202-5/+10
| | | | | on stable branch.
* * cipher.c (setup_cipher_table): May as well call Rijndael AES at thisDavid Shaw2004-01-172-4/+7
| | | | | point.
* * pubkey.c (setup_pubkey_table), elgamal.c (sign, verify, test_keys,David Shaw2004-01-173-182/+13
| | | | | | elg_sign, elg_verify, elg_get_info): Remove the last bits of Elgamal type 20 support.
* * idea-stub.c (load_module, idea_get_info): Return the proper type forDavid Shaw2003-12-302-19/+11
| | | | | idea_get_info from inside load_module. From Stefan Bellon.
* * rijndael.c, rndunix.c, twofish.c: Remove dead IS_MODULE code.David Shaw2003-12-306-190/+10
| | | | | | | * g10c.c: Dead code. Remove. * Makefile.am: Don't compile g10c.c.
* cleaned up RISC OS code and removed lots of unnecessary stuffStefan Bellon2003-12-284-38/+10
|
* * dsa.h, dsa.c (dsa_verify), elgamal.h, elgamal.c (elg_verify), rsa.h,David Shaw2003-12-178-26/+19
| | | | | | rsa.c (rsa_verify), pubkey.c (dummy_verify, pubkey_verify): Remove old unused code.
* * pubkey.c (setup_pubkey_table): Don't allow signatures to and fromDavid Shaw2003-12-042-7/+46
| | | | | | | encrypt-only Elgamal keys. (pubkey_get_npkey, pubkey_get_nskey, pubkey_get_nsig, pubkey_get_nenc, pubkey_nbits): Wrap the RSA cheats in !USE_RSA. Add cheats for sign+encrypt Elgamal.
* * pubkey.c (setup_pubkey_table): Only include RSA if USE_RSA is defined.David Shaw2003-12-012-3/+14
| | | | | | | | | | (pubkey_get_npkey): Return 2 for RSA even if it isn't available so we can at least handle RSA keys. ---------------------------------------------------------------------- pubkey.c CVS: ----------------------------------------------------------------------
* * pubkey.c (pubkey_sign): Return an error if an ElGamal key is used.Werner Koch2003-11-273-27/+43
| | | | | | | * elgamal.c (gen_k): New arg SMALL_K. (sign): Use it here with SMALL_K set to false (do_encrypt): and here with SMALL_K set to true.
* * primegen.c (gen_prime): Bail out if we try to generate a primeWerner Koch2003-10-102-3/+13
| | | | | | | with less than 16 bits. Include i18n.h. * POTFILES.in (cipher/primegen.c): Added.
* * primegen.c (gen_prime): Bail out if NBITS is zero. This isWerner Koch2003-10-062-1/+9
| | | | | Debian bug #213989 reported by Max <[email protected]>.
* * md.c (string_to_digest_algo): Enable read-write SHA-256 support.David Shaw2003-09-045-948/+11
| | | | | | * algorithms.h, Makefile.am, md.c (load_digest_module, string_to_digest_algo), tiger.c: Drop TIGER/192 support.
* * idea-stub.c, random.c; s/__MINGW32__/_WIN32/ to help building on nativeDavid Shaw2003-08-283-7/+16
| | | | | | Windows compilers. Requested by Brian Gladman. From Werner on stable branch.
* * random.c (getfnc_gather_random): Don't check NAME_OF_DEV_RANDOM twice.David Shaw2003-08-212-1/+6
| | | | | Use NAME_OF_DEV_URANDOM.
* * bithelp.h, des.c, random.c, rndlinux.c, sha1.c, blowfish.c, elgamal.c,David Shaw2003-05-2420-196/+179
| | | | | | | | rijndael.c, rndunix.c, sha256.c, cast5.c, idea-stub.c, rmd160.c, rndw32.c, sha512.c, md5.c, rmd160test.c, rsa.c, tiger.c: Edit all preprocessor instructions to remove whitespace before the '#'. This is not required by C89, but there are some compilers out there that don't like it.
* * cipher.c (setup_cipher_table): #ifdef IDEA.David Shaw2003-05-157-598/+629
| | | | | | | | | | | | | | | * random.c (fast_random_poll): Only use times() if we HAVE_TIMES. * sha512.c, tiger.c: Use the U64_C() macro to specify 64-bit constants. U64_C is defined in include/types.h and uses the correct suffix depending on the underlying type of u64. * idea-stub.c (load_module): Catch an error if the idea module file is unloadable for some reason (unreadable, bad permissions, etc.) * md.c (string_to_digest_algo): Give a warning about TIGER192 not being part of OpenPGP.
* * md.c (md_start_debug): Need to open the file in binary mode.Werner Koch2003-04-152-2/+6
|
* * cipher.c (setup_cipher_table): #ifdef all optional ciphers.David Shaw2003-02-213-4/+22
| | | | | * md.c (load_digest_module): #ifdef all optional digests.
* * Makefile.am, md.c (load_digest_module): Only build in SHA384/512 andDavid Shaw2003-02-123-6/+14
| | | | | TIGER if specifically enabled by the 64-bit type check in configure.
* * sha256.c, sha512.c: New.David Shaw2003-02-046-2/+792
| | | | | | * Makefile.am, algorithms.h, md.c (load_digest_module, string_to_digest_algo): Add read-only support for the new SHAs.
* * rndw32.c [__CYGWIN32__]: Don't include winioctl.h - it is not requiredDavid Shaw2002-11-0614-25/+41
| | | | | | | | | | | | | | | anymore. (From Werner) * random.c (read_seed_file,update_random_seed_file): Use binary mode for __CYGWIN__. (From Werner) * blowfish.c (burn_stack), cast5.c (burn_stack), des.c (burn_stack), md5.c (burn_stack), random.c (burn_stack, read_pool, fast_random_poll), rijndael.c (burn_stack), rmd160.c (burn_stack), rndegd.c (rndegd_gather_random), rndlinux.c (rndlinux_gather_random), sha1.c (burn_stack), tiger.c (burn_stack), twofish.c (burn_stack): Replace various calls to memset() with the more secure wipememory().
* * cipher.c (string_to_cipher_algo), md.c (string_to_digest_algo): AllowDavid Shaw2002-11-023-8/+33
| | | | | the Sxxx and Hxxx format for cipher and digest names.
* added RISC OS module loading supportStefan Bellon2002-10-312-32/+14
|
* * rndunix.c (my_popen): Make sure that stdin and stderr areWerner Koch2002-10-122-24/+49
| | | | | | | | connected to a file. This is to avoid NetBSD to complain about set{u,g}id programs invoked with fd 0, 2 closed. Reported by Cristian Biere. (start_gatherer): Likewise. Reordered code.
* * tiger.c (tiger_get_info): Select the OID to use for TIGER at compileDavid Shaw2002-10-022-0/+14
| | | | | time.
* * Makefile.am, md.c (load_digest_module): TIGER is now always enabled.David Shaw2002-09-273-6/+10
|
* * tiger.c (tiger_get_info): Use a regular OID. Note that thisWerner Koch2002-09-262-15/+10
| | | | | | breaks all TIGER generated signatures; if we want to do something about it we have to do it in ../g10/sig-check.c .
* * rndw32.c (SIZEOF_DISK_PERFORMANCE_STRUCT): Increased to 256.Werner Koch2002-09-172-1/+7
|
* updated RISC OS stuffStefan Bellon2002-09-122-0/+6
|
* typo fixes and disabled dummy cipherWerner Koch2002-09-102-4/+4
|
* * random.c: Automagically detect the entrop gatherer whenWerner Koch2002-08-305-69/+129
| | | | | | | | | configure so. * rndegd.c (rndegd_connect_socket): New. Factored out from .. (rndegd_gather_random): here and call it. (do_read): Update the counter variables correctly. This was not a problem due to the way EGD works. Bug found by Christian Biere.
* Include intl/ in the CVS again; otherwise we are not able toWerner Koch2002-08-232-1/+6
| | | | | | re-recreate a distribution from CVS. Some minor other fixes.
* * cipher.c: Include the DUMMY cipher only when the new ALLOW_DUMMYWerner Koch2002-08-122-5/+17
| | | | | is defined. It should only be defined for hard core debugging.
* * Makefile.am, md.c (load_digest_module): Allow switching TIGER on and offDavid Shaw2002-08-083-8/+13
| | | | | via configure.
* * md.c (md_algo_present): New function to check if a given algo is in useDavid Shaw2002-08-072-2/+22
| | | | | for a given MD_HANDLE.
* Removed some obsolete header files.V1-1-91Werner Koch2002-08-0414-211/+64
|
* RISC OS changes because of dynload removalStefan Bellon2002-08-032-28/+20
|
* RISC OS changes due to dynload removalStefan Bellon2002-08-034-54/+30
|
* The big extension module removal.Werner Koch2002-08-0319-1650/+505
|