Awn Umar
c54ac98328
Add tests for new error interface
2019-08-01 21:43:56 +01:00
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
e3e7b95f83
Merge pull request #106 from nsajko/fixes
...
Add mitigations against dead-code elimination in Wipe and Scramble functions.
2019-07-31 15:03:55 +01:00
Neven Sajko
53eb8f3d73
Add myself (nsajko) to AUTHORS
2019-07-31 13:48:29 +00:00
Neven Sajko
fb1272668a
core: in Wipe and Scramble, keep buf alive after being written to
...
This is to prevent dead store elimination.
See the discussion at
https://github.com/golang/go/issues/33325 .
2019-07-31 12:55:44 +00:00
Fedor Korotkov
cbe7cce272
Clean up Cirrus config ( #108 )
...
To not use git and prefer go-git
2019-07-27 21:52:53 +01:00
Fedor Korotkov
b87ad7ae83
Fixed FreeBSD Clone ( #107 )
...
* Fixed FreeBSD Clone
* printenv on failure
* extra parenthesis
* Force tcsh
* Use shell script
2019-07-27 16:37:12 +01:00
Awn
110a0ae0ed
Merge pull request #105 from awnumar/mutex
...
patch: acquire full lock in freeze/melt
2019-07-26 10:43:09 +01:00
Awn Umar
20e9dcd76e
Fix deadlock
2019-07-26 10:22:52 +01: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
1095ba2fd0
Don't panic on zero size object request ( #102 )
2019-07-25 22:44:50 +01:00
Awn
36473dda82
Allow callers to specify Coffer re-key cycle interval ( #101 )
2019-07-21 18:37:26 +01:00
Awn
14e0f189a5
feature: construct buffer from entire reader ( #98 )
2019-07-20 13:02:08 +01:00
Awn
f20a6461c1
Merge pull request #97 from awnumar/cstate
...
Wipe partition hash after replacing it
2019-07-19 23:17:09 +01:00
Awn Umar
c92dd46a39
Wipe partition hash after replacing it
2019-07-19 21:09:18 +01:00
Awn
66a5e7cca2
Merge pull request #96 from awnumar/fastrand
...
Use fast local csprng
2019-07-19 09:07:14 +01:00
Awn Umar
704032760d
Update dependencies
2019-07-18 22:39:24 +01:00
Awn Umar
3c5e9f417c
Use fast entropy source for hot paths only
2019-07-18 22:39:14 +01:00
Awn Umar
9494603ee8
Use fast local csprng
2019-07-18 21:34:06 +01:00
Awn
1ef50ff66d
Merge pull request #95 from awnumar/mprotect
...
patch: make immutable buffers mutable before wiping
2019-07-04 22:22:27 +01:00
Awn Umar
73d5d4fee4
cannot handle mutex contention
2019-07-04 22:02:28 +01:00
Awn Umar
3f4dff4f4a
patch: make immutable buffers mutable before wiping
2019-07-04 20:18:22 +01:00
Awn
3756a957f0
Merge pull request #94 from awnumar/patch/bufzero
...
patch: missed condition when first byte is delim
2019-06-27 23:41:35 +01:00
Awn Umar
048bc2c3fa
docs: update docstring to clarify condition
2019-06-27 23:26:03 +01:00
Awn Umar
d1fab822e1
patch: missed condition when first byte is delim
2019-06-27 23:23:57 +01:00
Awn
591ba93961
Merge pull request #93 from awnumar/nil
...
Return usable objects instead of nils
2019-06-27 22:58:17 +01:00
Awn Umar
844cf6fa7c
Minor cleanup
2019-06-27 22:35:25 +01:00
Awn
7571cc11d7
Merge branch 'master' into nil
2019-06-27 19:31:23 +01:00
Awn
368bfd80ac
Merge pull request #91 from awnumar/patch/drop
...
patch: set missing finaliser in enclave::open
2019-06-27 19:31:06 +01:00
Awn Umar
e1ad3f03e0
fix error message
2019-06-27 19:19:13 +01:00
Awn
c442926a73
Merge branch 'master' into patch/drop
2019-06-27 19:12:12 +01:00
Awn Umar
427a07f61a
patch: missed a test
2019-06-27 19:09:49 +01:00
Awn Umar
56f8df1d64
Merge branch 'nil' of github.com:awnumar/memguard into nil
2019-06-27 19:08:34 +01:00
Awn Umar
41d09af92c
Can return nil in Open as an error is returned with it
2019-06-27 19:07:59 +01:00
Awn
c09ff0b32a
Merge branch 'master' into nil
2019-06-27 19:03:43 +01:00
Awn Umar
a6887c3f44
Remove test that takes far too long
2019-06-27 19:01:28 +01:00
Awn Umar
f7c9e971ed
Return usable objects instead of nils
2019-06-27 19:00:41 +01:00
Awn
dd6a4da82e
Merge pull request #92 from awnumar/feature/strings
...
Add String method
2019-06-27 18:52:45 +01:00
Awn Umar
26ac1480a1
Write generic core.Buffer -> LockedBuffer helper
2019-06-27 17:42:44 +01:00
Awn Umar
7bc6f2b151
Add String method
2019-06-27 16:44:39 +01:00
Awn Umar
a4e7f2a479
patch: set missing finaliser in enclave::open
2019-06-27 16:27:56 +01:00
Awn
bbf4f9218a
Merge pull request #90 from awnumar/feature/reader
...
Add Reader method
2019-06-27 12:01:34 +01:00
Awn Umar
493b151d14
Update dependencies
2019-06-27 11:48:40 +01:00
Awn Umar
1e8832033f
Use reader construction in socket example
2019-06-27 11:43:43 +01:00
Awn Umar
27cfafb799
Add Reader method
2019-06-27 11:39:06 +01:00
Awn
42a26f9d28
Merge pull request #89 from awnumar/feature/reader
...
Add LockedBuffer constructors that use Reader objects as sources
2019-06-27 11:00:09 +01:00
Awn Umar
285decd3d6
Wait another loop before expanding buffer size
2019-06-27 09:10:45 +01:00
Awn Umar
62242ee114
Add licence header
2019-06-26 21:16:23 +01:00
Awn Umar
006bc58c51
Reduce rounds of seal/open test cycle
2019-06-26 21:14:17 +01:00