TrustedFirmware Git Browser
Code Review
Sign In
review.trustedfirmware.org
/
mirror
/
mbed-tls.git
/
refs/heads/mbedtls-1.4
/
library
/
bignum.c
c531b4a
Apply the semantic patch rm-malloc-cast.cocci.
by Mansour Moufid
· 10 years ago
d72704b
Remove work-around for alleged compiler bug
by Manuel Pégourié-Gonnard
· 10 years ago
00ab470
cleanup library and some basic tests. Includes, add guards to includes
by Rich Evans
· 10 years ago
860b516
Fix url again
by Manuel Pégourié-Gonnard
· 11 years ago
085ab04
Fix website url to use https.
by Manuel Pégourié-Gonnard
· 11 years ago
9698f58
Remove maintainer line.
by Manuel Pégourié-Gonnard
· 11 years ago
19f6b5d
Remove redundant "all rights reserved"
by Manuel Pégourié-Gonnard
· 11 years ago
a658a40
Update copyright
by Manuel Pégourié-Gonnard
· 11 years ago
967a2a5
Change name to mbed TLS in the copyright notice
by Manuel Pégourié-Gonnard
· 11 years ago
7f4ed67
Fix compile error with armcc in mpi_is_prime()
by Manuel Pégourié-Gonnard
· 11 years ago
6c343d7
Fix mpi_write_string() to write "00" as hex output for empty MPI
by Paul Bakker
· 11 years ago
66d5d07
Fix formatting in various code to match spacing from coding style
by Paul Bakker
· 11 years ago
db20c10
Add #endif comments for #endif more than 10 lines from #if / #else
by Paul Bakker
· 11 years ago
d8bb826
Fix code styling for return statements
by Paul Bakker
· 11 years ago
3461772
Introduce polarssl_zeroize() instead of memset() for zeroization
by Paul Bakker
· 11 years ago
c37b0ac
Fix typo in bignum.c
by Paul Bakker
· 11 years ago
b9e4e2c
Fix formatting: fix some 'easy' > 80 length lines
by Paul Bakker
· 11 years ago
9af723c
Fix formatting: remove trailing spaces, #endif with comments (> 10 lines)
by Paul Bakker
· 11 years ago
9bb04b6
Removed redundant code in mpi_fill_random()
by Paul Bakker
· 11 years ago
cef4ad2
Adapt sources to configurable config.h name
by Manuel Pégourié-Gonnard
· 11 years ago
33dc46b
Fix bug with mpi_fill_random() on big-endian
by Paul Bakker
· 11 years ago
75a2860
Potential memory leak in mpi_exp_mod() when error occurs during
by Paul Bakker
· 11 years ago
2eea292
Make the compiler work-around more specific
by Manuel Pégourié-Gonnard
· 11 years ago
bb8661e
Work around a compiler bug on OS X.
by Manuel Pégourié-Gonnard
· 11 years ago
fdf3f0e
Avoid "unreachable code" warning
by Manuel Pégourié-Gonnard
· 11 years ago
7dc4c44
Library files moved to use platform layer
by Paul Bakker
· 11 years ago
c2024f4
Added MPI_CHK around unguarded mpi calls
by Paul Bakker
· 12 years ago
9e987ed
Fix potential memory leak in bignum selftest
by Manuel Pégourié-Gonnard
· 12 years ago
fd6a191
Fix misplaced initialisation.
by Manuel Pégourié-Gonnard
· 12 years ago
6ea1a95
Added missing MPI_CHK() around some statements
by Paul Bakker
· 12 years ago
a60fe89
Add mpi_safe_cond_swap()
by Manuel Pégourié-Gonnard
· 12 years ago
9a4a5ac
Fix bug in mpi_set_bit
by Manuel Pégourié-Gonnard
· 12 years ago
3209ce3
Merged ECP improvements
by Paul Bakker
· 12 years ago
96c7a92
Change mpi_safe_cond_assign() for more const-ness
by Manuel Pégourié-Gonnard
· 12 years ago
45f457d
Reverted API change for mpi_is_prime()
by Paul Bakker
· 12 years ago
ddf7615
gen_prime: check small primes early (3x speed-up)
by Manuel Pégourié-Gonnard
· 12 years ago
378fb4b
Split mpi_is_prime() and make its first arg const
by Manuel Pégourié-Gonnard
· 12 years ago
0160eac
gen_prime: ensure X = 2 mod 3 -> 2.5x speedup
by Manuel Pégourié-Gonnard
· 12 years ago
711507a
gen_prime: ensure X = 3 mod 4 always (2x speed-up)
by Manuel Pégourié-Gonnard
· 12 years ago
3e3d2b8
Fix bug in mpi_safe_cond_assign()
by Manuel Pégourié-Gonnard
· 12 years ago
71c2c21
Add mpi_safe_cond_assign()
by Manuel Pégourié-Gonnard
· 12 years ago
5868163
Add mpi_shrink()
by Manuel Pégourié-Gonnard
· 12 years ago
0d7702c
Minor change that makes life easier for static analyzers / compilers
by Paul Bakker
· 12 years ago
60b1d10
Fixed spelling / typos (from PowerDNS:codespell)
by Paul Bakker
· 12 years ago
df0142b
Fix some dependencies in tests
by Manuel Pégourié-Gonnard
· 12 years ago
f499993
Add ecdsa_from_keypair()
by Manuel Pégourié-Gonnard
· 12 years ago
6e339b5
Memory-allocation abstraction layer and buffer-based allocator added
by Paul Bakker
· 12 years ago
fc4f46f
Fixed bignum.c and bn_mul.h to support Thumb2 and LLVM compiler
by Paul Bakker
· 12 years ago
8ddb645
Added conversion to int for a t_uint value to prevent compiler warnings
by Paul Bakker
· 12 years ago
e44ec10
Fixed segfault in mpi_shift_r()
by Manuel Pégourié-Gonnard
· 13 years ago
f02c564
- Allow R and A to point to same mpi in mpi_div_mpi
by Paul Bakker
· 13 years ago
096348f
- Fixed comments / typos
by Paul Bakker
· 13 years ago
d9374b0
- Moved mpi_inv_mod() outside POLARSSL_GENPRIME
by Paul Bakker
· 13 years ago
d2c167e
- And fixed order
by Paul Bakker
· 13 years ago
98fe5ea
- Removed snprintf altogether for critical code paths
by Paul Bakker
· 13 years ago
331f563
- Do not use sprintf(), use snprintf() instead.
by Paul Bakker
· 13 years ago
c110d02
- Added extra check to prevent crash on failed memory allocation
by Paul Bakker
· 13 years ago
62261d6
- Rewrote bignum type definition #ifdef tree to work better on all systems
by Paul Bakker
· 13 years ago
5c2364c
- Moved from unsigned long to uint32_t throughout code
by Paul Bakker
· 13 years ago
5531c6d
- Change buffer size on mpi_write_file() to cover larger size MPIs
by Paul Bakker
· 13 years ago
2d319fd
- Fixed bug in mpi_add_abs with adding a small number to a large mpi with carry rollover.
by Paul Bakker
· 13 years ago
5054692
- Moved to prevent uninitialized exit var
by Paul Bakker
· 13 years ago
f6198c1
- mpi_exp_mod() now correctly handles negative base numbers (Closes ticket #52)
by Paul Bakker
· 13 years ago
6b906e5
- Const correctness mpi_get_bit() - Documentation mpi_lsb(), mpi_msb()
by Paul Bakker
· 13 years ago
901c656
- Fill full buffer (Wrong parameter usage)
by Paul Bakker
· 13 years ago
0c8f73b
- Fixed a mistake in mpi_cmp_mpi() where longer B values are handled wrong
by Paul Bakker
· 13 years ago
39dfdac
- Fixed mpi_fill_random() to fill and create right size MPI
by Paul Bakker
· 13 years ago
17caec1
- Changed back statement
by Paul Bakker
· 14 years ago
cf0360a
- Fixed compiler error on 64-bit systems not using GCC
by Paul Bakker
· 14 years ago
69e095c
- Changed the behaviour of x509parse_parse_crt for permissive parsing. Now returns the number of 'failed certificates' instead of having a switch to enable it.
by Paul Bakker
· 14 years ago
cb37aa5
- Better buffer handling in mpi_read_file()
by Paul Bakker
· 14 years ago
a3d195c
- Changed the used random function pointer to more flexible format. Renamed havege_rand() to havege_random() to prevent mistakes. Lots of changes as a consequence in library code and programs
by Paul Bakker
· 14 years ago
fe3256e
- Introduced POLARSSL_MPI_MAX_SIZE and POLARSSL_MPI_MAX_BITS for MPI size management (Closes ticket #44)
by Paul Bakker
· 14 years ago
b6d5f08
- Added POLARSSL_MPI_WINDOW_SIZE definition to allow easier time to memory trade-off
by Paul Bakker
· 14 years ago
adb7ce1
- Fixed unconverted t_dbl into t_udbl
by Paul Bakker
· 14 years ago
5690efc
- Fixed a whole bunch of dependencies on defines between files, examples and tests
by Paul Bakker
· 14 years ago
2f5947e
- Added mpi_get_bit() and mpi_set_bit() individual bit setter/getter functions.
by Paul Bakker
· 14 years ago
6c591fa
- mpi_init() and mpi_free() only accept a single argument and do not accept variable arguments anymore. This prevents unexpected memory corruption in a number of use cases.
by Paul Bakker
· 14 years ago
f968857
- Removed conversions to int when not needed to prevent signed / unsigned situations
by Paul Bakker
· 14 years ago
335db3f
- Functions requiring File System functions can now be disables by undefining POLARSSL_FS_IO
by Paul Bakker
· 14 years ago
a755ca1
- Renamed t_s_int, t_int and t_dbl to respectively t_sint, t_uint and t_udbl for clarity
by Paul Bakker
· 14 years ago
23986e5
- Major type rewrite of int to size_t for most variables and arguments used for buffer lengths and loops
by Paul Bakker
· 14 years ago
287781a
- Added mpi_fill_random() for centralized filling of big numbers with random data (Fixed ticket #10)
by Paul Bakker
· 14 years ago
b94081b
- Make A only smaller if it is larger than |X| - 1
by Paul Bakker
· 15 years ago
b96f154
- Fixed copyright message
by Paul Bakker
· 15 years ago
84f12b7
- Updated Copyright to correct entity
by Paul Bakker
· 15 years ago
08f3c30
- Enlarged buffer to allow better debugging.
by Paul Bakker
· 15 years ago
fc8c436
- Updated copyright line to 2010
by Paul Bakker
· 15 years ago
1f3c39c
- Removed copyright line for Christophe Devine for clarity
by Paul Bakker
· 15 years ago
41d13f4
- Found algorithmic bug in mpi_is_prime()
by Paul Bakker
· 15 years ago
ff60ee6
- Added const-correctness to main codebase
by Paul Bakker
· 15 years ago
77b385e
- Updated copyright messages on all relevant files
by Paul Bakker
· 16 years ago
48eab26
- Corrected is_prime() results for 0, 1 and 2 (found by code coverage tests)
by Paul Bakker
· 16 years ago
ce40a6d
- Fixed incorrect handling of negative first input value in mpi_mod_mpi() and mpi_mod_int(). Resulting change also affects mpi_write_string() (found by code coverage tests).
by Paul Bakker
· 16 years ago
1ef7a53
- Fixed incorrect handling of negative first input value in mpi_sub_abs() (found by code coverage tests).
by Paul Bakker
· 16 years ago
f7ca7b9
- Fixed incorrect handling of one single negative input value in mpi_add_abs() (found by code coverage tests).
by Paul Bakker
· 16 years ago
05feca6
- Fixed incorrect handling of negative strings in mpi_read_string() (found by code coverage tests).
by Paul Bakker
· 16 years ago
70b3eed
- Moved mpi_gcd() outside of the POLARSSL_GENPRIME define. Is needed in rsa.c for normal use.
by Paul Bakker
· 16 years ago
4e0d7ca
- Fixed a bug in mpi_gcd() that prevented correct funtioning when both input numbers are even.
by Paul Bakker
· 17 years ago
785a9ee
- Added email address to header license information
by Paul Bakker
· 17 years ago
Next »