est31
deaa11a7c2
Improve format
...
Don't align a function call continuation with
spaces. I don't know why clang-format did this,
but now it doesn't seem to do it anymore.
2016-04-10 14:44:42 +02:00
est31
6f38189279
Fix "control reaches end of function" warning
2016-04-10 04:05:09 +02:00
est31
66323332eb
Format code with clang-format
...
Voice of world control said: let there be peace about code style.
And there was no more fighting.
Voice of world control saw that it was good.
2016-04-10 04:02:44 +02:00
est31
2a90017b0f
Preparations for clang-format
2016-04-10 04:02:39 +02:00
est31
55e8af5ee3
Remove SRP pcgrandom
...
not required anymore :)
2016-04-10 01:26:47 +02:00
est31
9cea7e5564
Check f{read,close} retvals
...
Fixes #1 .
2016-04-10 01:26:41 +02:00
est31
16bffd8db4
Error case fixes
...
* Make the library watertight if srp_alloc returns NULL.
For this, we changed the return value to SRP_Result at some places.
Also, we fixed a case where
* Fix username not being freed on error case
* More goto spaghetti 🍝 🎉 to handle the additional cases more easily
* Couple of other fixes, like changing SRP_Result order.
2016-04-10 00:30:22 +02:00
est31
a78f43854d
Only use secure random
...
And fail if no secure random could be found
2016-04-09 23:26:38 +02:00
est31
695822e45d
Don't compile pcgrandom on windows
...
There it isn't needed.
2015-11-08 18:15:00 +01:00
est31
e9c5d754de
Remove sizeof(char) useage
2015-09-30 09:14:00 +02:00
est31
d97da9e7c7
Better return value and error checking
2015-09-30 08:43:03 +02:00
est31
707d1854cd
Allow users to set custom memory functions
2015-09-30 08:03:22 +02:00
est31
a736c0c856
Fix some memory allocation issues
2015-09-30 01:03:38 +02:00
est31
44c909e6b4
Initialize random for verification key generation too
2015-08-06 04:59:38 +02:00
est31
84a07dde15
Check output of mpz_set_str and fix leak on error condition
2015-07-24 21:39:23 +02:00
Ner'zhul
c6da9eeb3f
Fix clang always-true warning
2015-07-24 21:19:25 +02:00
est31
e263bbcf5c
Fix segfault and one more size_t conversion
2015-05-07 22:56:26 +02:00
est31
0fa0790802
Use size_t for length, fix some compilation warnings
2015-05-07 22:26:03 +02:00
est31
1fcd908406
Fix c++ compilability, add preprocessor mechanism for hashes, and use size_t on places
2015-05-07 22:07:54 +02:00
est31
a7a01d64a3
Use const only where we don't change anything
2015-05-07 20:19:33 +02:00
est31
2a7ff334b3
Whitespace style changes
...
Use tabs.
2015-05-07 20:19:30 +02:00
est31
b15de7b2ad
Fix windows compilability
2015-05-07 20:19:20 +02:00
est31
f78911d858
Fix c++ compilability
2015-05-01 10:23:18 +02:00
est31
16d6125ed5
Use PcgRandom from @kwolekr for OSes not providing /dev/urandom
...
Also, begin with style fix changes.
2015-05-01 10:01:14 +02:00
est31
e5a12b1d06
Add RFC 5054 test vector tests and SHA-1 algorithm
2015-04-24 07:41:12 +02:00
est31
f4f75901d5
Add easier way to debug
...
You only have to change the defines now to debug, not modify the code itself.
2015-04-24 07:41:12 +02:00
est31
8b5019ecc2
Memory fixes
2015-04-24 07:41:12 +02:00
est31
a7057b41dd
Remove trailing spaces in test_srp.c and add option to pass NULL
...
Now, you can pass NULL as username in srp_user_start_authentication, if you
don't need the username (usually in most cases).
2015-04-24 07:41:12 +02:00
est31
d98a48df06
Smaller fixes
...
Better checking and clearing of u and k, fix compiler failure for bytes_B
2015-04-24 07:41:12 +02:00
est31
6306b40e2a
Change copyright boilerplate
2015-04-24 07:41:12 +02:00
est31
e91130a97e
Fix couple of issues
...
Adds some changes of csrp forks:
* Pad in H_nn
* Try to become rfc 5054 compatible (still omitting 1536 bit)
* Make calculations of B and S based modulo N (this breaks compat, use with care)
* couple of other fixes (like freeing when aborting, or checking H_nn return value)
2015-04-24 07:40:59 +02:00
est31
9187622899
Fix build
...
Some compilers had problems with these inline functions.
2015-04-12 12:43:53 +02:00
est31
8c815b2214
Port to LibGMP
2015-04-12 03:40:29 +02:00
tcocagne
c0069bcc4e
Updated licence description in srp.h and srp.c to match the LICENSE file
2013-10-09 08:08:49 -05:00
tcocagne
fc91cd4a18
Converted to Unix line endings
2013-04-02 21:32:42 -05:00
tcocagne
ac4f7186bd
Aesthetic change
2013-04-02 21:29:22 -05:00
David Siegel
48d9005e0e
avoid returning an uninitialized pointer
2013-04-03 02:42:56 +02:00
tcocagne
9de5d1a3f9
Fixed datastructure initialization bug reported by kaliyuga
2012-10-29 22:53:35 -05:00
tcocagne
270d1bf303
Included comments by Jason Resch for minor security improvements
2012-10-16 09:50:35 -05:00
Tom Cocagne
dc25c943ed
Added error handling code for memory allocation failures... idiotic oversight
2011-06-03 15:00:34 -04:00
Tom Cocagne
69e3d44428
added 8192 bit NG
2011-02-08 14:10:17 -05:00
Tom Cocagne
d6be151bbc
Renamed opaque srp_gen_sv to srp_create_salted_verification_key
2011-01-04 11:40:45 -05:00
Tom Cocagne
62bead607a
Removed alloca
2010-11-29 14:59:11 -05:00
Tom Cocagne
c9db82906d
updated random number generator seeding. added docs
2010-11-24 16:23:03 -05:00
Tom Cocagne
775cb3ea1c
removed need for init/fini functions
2010-11-24 11:41:19 -05:00
Tom Cocagne
f4650c1c45
Added hash and Ng specification
2010-11-24 11:26:03 -05:00
Tom Cocagne
5a52bcb31e
removed tabs
2010-10-01 15:11:00 -04:00
Tom Cocagne
7ec0c6c2ae
initial commit
2010-10-01 14:32:10 -04:00