aboutsummaryrefslogtreecommitdiffstats
path: root/crypto/asn1/t_pkey.c
Commit message (Collapse)AuthorAgeFilesLines
* Allocate ASN1_bn_print buffer internally.Dr. Stephen Henson2016-02-051-18/+28
| | | | | | | | Don't require an application to work out the appropriate buffer size for ASN1_bn_print(), which is unsafe. Ignore the supplied buffer and allocate it internally instead. Reviewed-by: Viktor Dukhovni <viktor@openssl.org>
* Add ASN1_buf_print to print a buffer in ASN1_bn_print format.Dr. Stephen Henson2016-02-051-17/+37
| | | | Reviewed-by: Viktor Dukhovni <viktor@openssl.org>
* Remove /* foo.c */ commentsRich Salz2016-01-261-1/+0
| | | | | | | | | | | | This was done by the following find . -name '*.[ch]' | /tmp/pl where /tmp/pl is the following three-line script: print unless $. == 1 && m@/\* .*\.[ch] \*/@; close ARGV if eof; # Close file to reset $. And then some hand-editing of other files. Reviewed-by: Viktor Dukhovni <viktor@openssl.org>
* Identify and move common internal libcrypto header filesRichard Levitte2015-05-141-1/+1
| | | | | | | | | | | | | There are header files in crypto/ that are used by a number of crypto/ submodules. Move those to crypto/include/internal and adapt the affected source code and Makefiles. The header files that got moved are: crypto/cryptolib.h crypto/md32_common.h Reviewed-by: Rich Salz <rsalz@openssl.org>
* Run util/openssl-format-source -v -c .Matt Caswell2015-01-221-52/+50
| | | | Reviewed-by: Tim Hudson <tjh@openssl.org>
* Implement internally opaque bn access from asn1Matt Caswell2014-12-081-3/+3
| | | | Reviewed-by: Tim Hudson <tjh@openssl.org>
* Revert to original...Dr. Stephen Henson2006-04-151-727/+2
|
* Oops...Dr. Stephen Henson2006-04-151-2/+727
|
* Move algorithm specific print code from crypto/asn1/t_pkey.c to separateDr. Stephen Henson2006-03-221-262/+0
| | | | *_prn.c files in each algorithm directory.
* Gather printing routines into EVP_PKEY_ASN1_METHOD.Dr. Stephen Henson2006-03-221-526/+49
|
* create BN_CTX objectNils Larsch2006-03-151-0/+14
|
* add additional checks + cleanupNils Larsch2006-01-291-12/+22
| | | | Submitted by: David Hartman <david_hartman@symantec.com>
* Some error code cleanups (SSL lib. used SSL_R_... codes reserved for alerts)Bodo Möller2006-01-081-2/+2
|
* remove unused variableNils Larsch2005-07-271-1/+1
|
* improved error checking and some fixesNils Larsch2005-07-261-2/+16
| | | | | | PR: 1170 Submitted by: Yair Elharrar Reviewed and edited by: Nils Larsch
* makeNils Larsch2005-07-161-0/+4
| | | | | | | | ./configure no-deprecated [no-dsa] [no-dh] [no-ec] [no-rsa] make depend all test work again PR: 1159
* ecc api cleanup; summary:Nils Larsch2005-05-161-15/+21
| | | | | | | | | | - hide the EC_KEY structure definition in ec_lcl.c + add some functions to use/access the EC_KEY fields - change the way how method specific data (ecdsa/ecdh) is attached to a EC_KEY - add ECDSA_sign_ex and ECDSA_do_sign_ex functions with additional parameters for pre-computed values - rebuild libeay.num from 0.9.7
* give EC_GROUP_*_nid functions a more meaningful nameNils Larsch2005-05-081-1/+1
| | | | | EC_GROUP_get_nid -> EC_GROUP_get_curve_name EC_GROUP_set_nid -> EC_GROUP_set_curve_name
* - use BN_set_negative and BN_is_negative instead of BN_set_signNils Larsch2005-04-221-1/+1
| | | | | | and BN_get_sign - implement BN_set_negative as a function - always use "#define BN_is_zero(a) ((a)->top == 0)"
* Use BUF_strlcpy() instead of strcpy().Richard Levitte2003-12-271-2/+2
| | | | | | | Use BUF_strlcat() instead of strcat(). Use BIO_snprintf() instead of sprintf(). In some cases, keep better track of buffer lengths. This is part of a large change submitted by Markus Friedl <markus@openbsd.org>
* In ECPKParameters_print, output the private key length correctlyBodo Möller2002-12-041-2/+8
| | | | | | | (length of the order of the group, not length of the actual key, which will be shorter in some cases). Submitted by: Nils Larsch
* use new BIO_indent() function here as wellBodo Möller2002-11-141-30/+11
| | | | Submitted by: Nils Larsch
* This didn't get to the 0.9.8-dev thread...Richard Levitte2002-11-131-8/+2
|
* Security fixes brought forward from 0.9.7.Ben Laurie2002-11-131-16/+7
|
* implement and use new macros BN_get_sign(), BN_set_sign()Bodo Möller2002-11-041-1/+1
| | | | Submitted by: Nils Larsch
* Various Win32 fixes.Dr. Stephen Henson2002-10-061-1/+1
| | | | | | Resolve signed/unsigned conflicts Make dso_win32.c compile.
* less specific interface for EC_GROUP_get_basis_typeBodo Möller2002-08-261-2/+1
| | | | Submitted by: Nils Larsch, Bodo Moeller
* ASN1 for binary curvesBodo Möller2002-08-261-1/+27
| | | | Submitted by: Nils Larsch
* add field type to text outputBodo Möller2002-08-091-25/+74
| | | | | | don't print seed value as a number (leading zeros must not be removed) Submitted by: Nils Larsch
* Add ECDH support.Bodo Möller2002-08-091-3/+19
| | | | | | | | | | | | | Additional changes: - use EC_GROUP_get_degree() in apps/req.c - add ECDSA and ECDH to apps/speed.c - adds support for EC curves over binary fields to ECDSA - new function EC_KEY_up_ref() in crypto/ec/ec_key.c - reorganize crypto/ecdsa/ecdsatest.c - add engine support for ECDH - fix a few bugs in ECDSA engine support Submitted by: Douglas Stebila <douglas.stebila@sun.com>
* use a generic EC_KEY structure (EC keys are not ECDSA specific)Bodo Möller2002-08-071-35/+30
| | | | Submitted by: Nils Larsch
* Make sure buffers are large enough even for weird parametersBodo Möller2002-06-261-25/+65
| | | | Submitted by: Nils Larsch
* Implement handling of EC parameter seeds (new functionsBodo Möller2002-06-181-114/+247
| | | | | | | | EC_GROUP_set_seed(), EC_GROUP_get0_seed(), EC_GROUP_get_seed_len()). New functions ECPKParameters_print(), ECPKParameters_print_fp(). Submitted by: Nils Larsch
* New functions EC_POINT_point2bn(), EC_POINT_bn2point(), ↵Bodo Möller2002-05-301-56/+31
| | | | | | EC_POINT_point2hex(), EC_POINT_hex2point() Submitted by: Nils Larsch
* fix ECDSA handlingBodo Möller2002-04-091-8/+19
| | | | Submitted by: Nils Larsch
* EC curve stuffBodo Möller2002-03-081-3/+11
| | | | Submitted by: Nils Larsch
* ECDSA supportBodo Möller2002-02-131-30/+250
| | | | Submitted by: Nils Larsch <nla@trustcenter.de>
* Make all configuration macros available for application by makingRichard Levitte2001-02-191-14/+14
| | | | | | | | | | | | sure they are available in opensslconf.h, by giving them names starting with "OPENSSL_" to avoid conflicts with other packages and by making sure e_os2.h will cover all platform-specific cases together with opensslconf.h. I've checked fairly well that nothing breaks with this (apart from external software that will adapt if they have used something like NO_KRB5), but I can't guarantee it completely, so a review of this change would be a good thing.
* Constify DH-related code.Richard Levitte2000-11-071-2/+2
|
* Constify DSA-related code.Richard Levitte2000-11-071-4/+4
|
* Constify the RSA parts of the ASN.1 library. Note some ugly castsRichard Levitte2000-11-061-2/+2
| | | | | that are needed in the ASN.1 macros. Hopefully, we can get rid of those in an elegant way in the future.
* There have been a number of complaints from a number of sources that namesRichard Levitte2000-06-011-8/+8
| | | | | | | | | like Malloc, Realloc and especially Free conflict with already existing names on some operating systems or other packages. That is reason enough to change the names of the OpenSSL memory allocation macros to something that has a better chance of being unique, like prepending them with OPENSSL_. This change includes all the name changes needed throughout all C files.
* ispell (and minor modifications)Ulf Möller2000-02-031-1/+1
|
* Seek out and destroy another evil cast.Ulf Möller2000-01-301-4/+4
|
* Remove NOPROTO definitions and error code comments.Ulf Möller1999-04-261-9/+0
|
* Change #include filenames from <foo.h> to <openssl.h>.Bodo Möller1999-04-231-5/+5
| | | | | | Submitted by: Reviewed by: PR:
* Change functions to ANSI C.Ulf Möller1999-04-191-34/+10
|
* Massive constification.Ben Laurie1999-04-171-4/+6
|
* Import of old SSLeay release: SSLeay 0.9.0bRalf S. Engelschall1998-12-211-6/+9
|
* Import of old SSLeay release: SSLeay 0.8.1bRalf S. Engelschall1998-12-211-0/+389