summaryrefslogtreecommitdiff
path: root/toxencryptsave/toxencryptsave.c
AgeCommit message (Collapse)Author
2020-03-14Use spdx license identifier instead of GPL blurb.iphydf
2018-10-09Consistently use camel case enum names.iphydf
Including in tests and implementation files.
2018-08-26Update copyright to 2018.iphydf
2018-07-05Make tox.c unambiguously parseable.iphydf
Rules: 1. Constants are uppercase names: THE_CONSTANT. 2. SUE[1] types start with an uppercase letter and have at least one lowercase letter in it: The_Type, THE_Type. 3. Function types end in "_cb": tox_friend_connection_cb. 4. Variable and function names are all lowercase: the_function. This makes it easier for humans reading the code to determine what an identifier means. I'm not convinced by the enum type name change, but I don't know a better rule. Currently, a lot of enum types are spelled like constants, which is confusing. [1] struct/union/enum
2018-06-25Fixes to the imported sodium sources to compile without warnings.iphydf
2018-05-20Move system header includes from network.h to network.ciphydf
2018-01-30Use nullptr as NULL pointer constant instead of NULL or 0.iphydf
This changes only code, no string literals or comments.
2017-12-29Change toxencryptsave API to never overwrite pass keys.iphydf
2017-03-30Implement missing TES constant functions.iphydf
Fixes #503.
2017-01-19Update license headers and remove redundant file name comment.iphydf
"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-08Set up autotools build to build against vanilla NaCl.iphydf
Fixes #363.
2016-12-22Improve documentation of crypto_core.iphydf
2016-12-22Wrap all sodium/nacl functions in crypto_core.c.iphydf
2016-12-19Remove unused get/set salt/key functions from toxencryptsave.iphydf
2016-12-13Add apidsl file for toxencryptsave.iphydf
This breaks the toxencryptsave API. It hides the Tox_Pass_Key struct definition.
2016-09-28v0.0.0 => v0.0.1Gregory Mullen (grayhatter)
2016-09-02Do not use `else` after `return`.iphydf
http://llvm.org/docs/CodingStandards.html#use-early-exits-and-continue-to-simplify-code
2016-09-01Sort #includes in all source files.iphydf
2016-08-31Add braces to all if statements.iphydf
2016-08-12Check code formatting on Travis.iphydf
We run astyle on Travis and check if there is a diff. The build terminates if git finds a difference.
2016-02-13added the dropped ;Gregory Mullen (GrayHatter)
2016-02-13added versioning to toxencryptsaveGregory Mullen (GrayHatter)
2016-01-30Fixes.irungentoo
Fixed bug from merged PR. Don't build useless files when building with libsodium.
2015-05-27Allow empty keys in toxencryptsave.irungentoo
2015-05-26These parameters should have been const.irungentoo
2015-04-01Merge branch 'master' of https://github.com/dubslow/toxcoreirungentoo
2015-03-31Make keys into a struct for more programmer safetyDubslow
2015-03-31Fix minor code duplicationDubslow
2015-03-31Merge branch 'master' of https://github.com/dubslow/toxcoreirungentoo
2015-03-31Fix toxencryptsave to be consistent with new_apiDubslow
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-26Making tox_encrypted_new() use the same error codes as tox_new was a bad idea.irungentoo
They now have their own error codes.
2015-03-17Save function renamed to tox_get_savedata()irungentoo
2015-03-01Merge branch 'new_api' of https://github.com/dubslow/toxcore into new_apiirungentoo
2015-02-27Realign toxencryptsave with new APIDubslow
2015-02-14A bit of new api work done.irungentoo
2015-01-15Fixed warning.irungentoo
2014-10-23Merge branch 'dubslow-master'irungentoo_trip
# # 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-23fix #1124 by adding salt manip functionsdubslow
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-17Merge branch 'master' of https://github.com/dubslow/toxcoreirungentoo
2014-10-17add new test cases, cleanup astray printfdubslow
2014-10-17add load/save from key instead of pwdubslow
2014-10-16astyle toxencryptsave.irungentoo
2014-10-12Fix include issuedubslow
2014-10-10Merge branch 'master' of https://github.com/dubslow/toxcoreirungentoo
2014-10-09re-refactor to separate pass->key and key->encryptiondubslow
2014-10-08refactor toxencryptedsave to allow passphrase encryption of arbitrary datadubslow
also a minor API change for clarity
2014-09-14Fixed toxencryptsave include issue.irungentoo
2014-09-13Properly ported a toxencryptsave function to NaCl.irungentoo
removed now useless files.
2014-09-13Merge branch 'encrypted_data' of https://github.com/dubslow/toxcoreirungentoo
2014-09-12encrypted save fully work with both libsodium and nacldubslow
they both reliably pass "make check"