Neven Sajko
8750c16425
all: redesign errors in memguard and memguard/core
...
Memcall is not touched yet. Otherwise this replaces sentinel error
values with IsX exported predicate functions. This enables more
effective error handling by the users and leaves much more freedom for
changing the implementation in the future without breaking API.
Updates #111
2019-08-01 17:12:33 +00:00
Awn Umar
ce6fc55dde
patch: acquire full lock in freeze/melt
...
Fixes #104
2019-07-26 10:12:56 +01:00
Awn
843870774d
optimise buffer state methods ( #103 )
2019-07-25 23:01:20 +01:00
Awn Umar
3c5e9f417c
Use fast entropy source for hot paths only
2019-07-18 22:39:14 +01:00
Awn Umar
a2fa811a85
canary: remove lower bound limit on length
2019-06-17 19:26:26 +01:00
Awn Umar
eb371074c7
critical: patch error in canary size
2019-06-17 14:35:45 +01:00
Awn Umar
55fa988242
Wipe before removing from list; so that purge still catches it
2019-06-02 15:00:52 +01:00
Awn Umar
a31b3b4446
docs: updates for clarity and readability
2019-05-30 10:04:45 +01:00
Awn Umar
520d091282
patch: if purge called, subsequent exit/panic would not wipe keys
2019-05-21 18:07:34 +01:00
Awn Umar
61e6b4f8d7
feature: add clone and {move/copy}at methods
2019-05-17 14:22:12 +01:00
Awn Umar
5094398556
make buffer list private & modify slice type cast behaviour
2019-05-15 17:47:28 +01:00
Awn Umar
60cf168a6e
Prefer panic to nil returns
2019-05-14 11:41:31 +01:00
Awn Umar
3c486c6cb9
Use variable length canaries with 32 <= len(canary) <= ~pagesize
2019-05-13 17:27:12 +01:00
Awn Umar
8265a2536d
crypto: use local custom emtropy pool
2019-05-13 17:08:37 +01:00
Awn Umar
a684db30dc
Make data field unexported in core; use method instead
2019-05-13 02:45:54 +01:00
Awn Umar
63466f748b
Move canary reference value
2019-05-03 05:11:22 +01:00
Awn Umar
c93b1b069c
patchset: some changes and streamlining
...
There are some known issues in this code at the moment and parts of the frontend API exist have not yet been stabalised or tested.
2019-05-01 18:13:17 +01:00
Awn Umar
8740253ea8
some improvements to errors
2019-03-21 22:28:44 +00:00
Awn Umar
5ec2b2fbe5
refactor: move buffer related functions into method fold
2019-03-21 20:30:09 +00:00
Awn Umar
5583953cd7
Port a bunch more things. Still need to work on Enclaves and writing tests and examples and docs.
2019-03-21 18:58:07 +00:00
Awn Umar
a6ccf280ec
api: ported data representation api and implemented basic seal/open functionality in frontend
...
Still need to write tests.
2019-03-21 05:34:28 +00:00
Awn Umar
fbef9a3b39
Rewrite and refactor. Core functionality moved to submodule. Many fixes and improvements. Todo: re-write frontend
2019-02-24 19:52:41 +00:00