iphydf
226b23be12
cleanup: Add explicit array sizes to toxencryptsave.
...
Also mark arrays as `[]` instead of `*`.
2024-01-07 13:27:38 +00:00
iphydf
ddda605509
fix: Don't crash if RNG init failed.
...
`system_random()` can fail and return NULL, which should be handled by
toxencryptsave functions.
Also synced function comments between .h and .c file for toxencryptsave.
2022-04-03 20:46:44 +00:00
iphydf
e1e92c1ac1
docs: Clean up doxygen comments to be more doxygen-like.
2022-03-05 22:30:48 +00:00
iphydf
7f0395b746
chore: Make the last few remaining top level comments doxygen style.
2022-02-04 23:25:45 +00:00
iphydf
24f49fc917
chore: Fix up a few source code comment and style issues.
...
Tokstyle no longer allows:
* Includes inside an `extern "C"`
* Comments on function definition and declaration to be different.
* Doxygen comments commenting on other doxygen comments.
2021-12-21 18:14:53 +00:00
iphydf
4746a8b3af
cleanup: Remove apidsl; remove crypto_memcmp
.
...
* `crypto_memcmp` was replaced by more specific functions. We never want
to compare arbitrary amounts of data this way. We use these functions
to compare key material.
* apidsl has been bothering people, so now we un-bother them. You're
welcome.
* Added the memlock/unlock functions from the New Group Chats branch.
* Remove some system dependencies in crypto_core_mem.c.
* Renamed UPPERCASE_NAMES to Snake_Camel_Case names.
2021-12-19 19:22:38 +00:00
iphydf
d930ecca4c
chore: Run infer static analyser on circle ci builds.
...
Also running some other analysis that we used to have on Travis.
2021-12-06 20:25:50 +00:00
iphydf
11ad5471b9
Use spdx license identifier instead of GPL blurb.
2020-03-14 13:06:19 +00:00
iphydf
605dfe882c
Consistently use camel case enum names.
...
Including in tests and implementation files.
2018-10-09 17:33:37 +00:00
iphydf
49bb43f662
Standardise header guards.
...
Using the full path including the repo name.
2018-09-14 19:09:10 +00:00
iphydf
473cde24d8
Update copyright to 2018.
2018-08-26 18:57:29 +00:00
iphydf
d26f0eb3bc
Change toxencryptsave API to never overwrite pass keys.
2017-12-29 23:24:54 +00:00
Diadlo
0542ffa2db
Adjust docs of few toxencrypt function to the code
...
Add correct information about behaviour if input pointer is NULL
Fix #590
2017-10-27 00:29:25 +02:00
iphydf
8f96ca6d86
Update license headers and remove redundant file name comment.
...
"All rights reserved" was incorrect. The project was licensed under GPL3,
which means a lot of rights are licensed to everybody in the world, i.e.
not reserved to the "Tox Project".
2017-01-19 00:01:44 +00:00
iphydf
6480765222
Clarify that the pass key new
function can fail.
...
Also clarify that passwords can be empty or NULL.
2017-01-12 01:09:44 +00:00
Zetok Zalbavar
4733f849fa
docs(TES): correct docs to reflect how many bytes fns actually require
2016-12-17 19:45:43 +00:00
iphydf
bbdd798256
Fix unresolved reference in toxencryptsave API.
...
Also, make sure this won't happen again by checking for it in
format-source.
2016-12-14 11:35:43 +00:00
iphydf
4cf69996cc
Add apidsl file for toxencryptsave.
...
This breaks the toxencryptsave API. It hides the Tox_Pass_Key struct
definition.
2016-12-13 14:24:40 +00:00
Maxim Biro
697530af3b
Improve toxencryptsave documentation
2016-12-09 03:01:36 -05:00
Gregory Mullen (grayhatter)
51139a080c
v0.0.0 => v0.0.1
2016-09-28 12:12:39 -07:00
iphydf
77db27331e
Sort #includes in all source files.
2016-09-01 16:35:46 +01:00
Gregory Mullen (GrayHatter)
d552cd6e24
lets define this correctlly instead
2016-02-13 20:56:15 -08:00
Gregory Mullen (GrayHatter)
58ebf7a5b6
added versioning to toxencryptsave
2016-02-13 20:50:16 -08:00
irungentoo
51c5810d72
These parameters should have been const.
2015-05-26 12:57:14 -04:00
irungentoo
abff31d2ad
Merge branch 'master' of https://github.com/dubslow/toxcore
2015-04-01 19:57:31 -04:00
Dubslow
36ed4956fd
Enough pestering me please
2015-04-01 15:28:39 -05:00
Dubslow
f7beee495e
Make keys into a struct for more programmer safety
2015-03-31 21:16:04 -05:00
Dubslow
9b66c57bd0
Fix minor code duplication
2015-03-31 19:30:09 -05:00
irungentoo
99e0fde297
Merge branch 'master' of https://github.com/dubslow/toxcore
2015-03-31 19:44:51 -04:00
Dubslow
e998aca8f7
Fix toxencryptsave to be consistent with new_api
...
Upon my own decision, the two tox_encryped_new convenience functions were removed due to basically needing two different sets of error codes.
At iphydf's suggestion the corresponding tox_get_encrypted_savedata convenience functions were removed as well.
2015-03-31 18:31:23 -05:00
irungentoo
06b389ea5e
Making tox_encrypted_new() use the same error codes as tox_new was a bad idea.
...
They now have their own error codes.
2015-03-26 12:39:09 -04:00
irungentoo
20090ea661
Fixed typedef.
2015-03-06 21:37:00 -05:00
irungentoo
680c7c2ecd
Merge branch 'new_api' of https://github.com/dubslow/toxcore into new_api
2015-03-01 20:14:01 -05:00
Dubslow
e632ef8a47
Realign toxencryptsave with new API
2015-02-27 17:42:36 -06:00
irungentoo
3c7888d752
A bit of new api work done.
2015-02-14 23:00:12 -05:00
irungentoo_trip
9878b441b1
Merge branch 'dubslow-master'
...
#
# Please enter a commit message to explain why this merge is necessary,
# especially if it merges an updated upstream into a topic branch.
#
# Lines starting with '#' will be ignored, and an empty message aborts
# the commit.
2014-10-23 18:09:02 -07:00
dubslow
d90ee9d4e4
fix #1124 by adding salt manip functions
...
Also, all data now has the magic number prepended. This is incompatible
for all but the save/load functions, but I think nothing besides the one
experimental qTox branch used any of those, which is why I feel confident
about the change.
2014-10-23 04:19:18 -05:00
irungentoo
0fb3062f08
Merge branch 'master' of https://github.com/dubslow/toxcore
2014-10-17 16:06:00 -04:00
dubslow
ffb13e4716
add load/save from key instead of pw
2014-10-17 06:02:15 -05:00
irungentoo
87130997cd
astyle toxencryptsave.
2014-10-16 20:59:52 -04:00
dubslow
57d3b3be05
Fix include issue
2014-10-12 03:11:11 -05:00
dubslow
458a09f6ab
Merge branch 'master' of https://github.com/irungentoo/toxcore
2014-10-12 02:29:34 -05:00
dubslow
ccfd777e35
apparently i forgot to add/commit these comments...
2014-10-12 02:28:18 -05:00
irungentoo
3f855b2445
Merge branch 'master' of https://github.com/dubslow/toxcore
2014-10-10 22:07:43 -04:00
dubslow
54fdf3bdd6
re-refactor to separate pass->key and key->encryption
2014-10-09 20:18:29 -05:00
dubslow
e6f30694d3
refactor toxencryptedsave to allow passphrase encryption of arbitrary data
...
also a minor API change for clarity
2014-10-08 18:50:40 -05:00
irungentoo
5a2a756671
Fixed toxencryptsave include issue.
2014-09-14 13:08:01 -04:00
Dubslow
61bfa596b6
Add magic number, auto tests still required
2014-09-11 19:29:18 -05:00
Dubslow
45f3b9559b
modify inclusions
2014-09-10 18:12:58 -05:00
Dubslow
7eb7e68805
compiling against nacl seems to break VANILLA_NACL...
2014-09-09 12:23:09 -05:00