13 Commits

Author SHA1 Message Date
Gábor Lipták
6b9fad5e9d Cleanup Go Report Card warnings 2016-11-09 17:21:39 -05:00
Zi Lin
78e9720635 Zi/disable dead loop retry (#175)
* disable endless retry logic

- we should do the retry logic at application cmd/ro, cmd/ro will need to
  deal with keyboard interrupts as well

* update test self-signed certificate with a expiry of 100 years

* ro tool supports retries after getting delegation errors
2016-10-17 15:19:30 -07:00
Kyle Isom
9f39413adb Properly restore delegations.
This change addresses several points:

1. The integration tests didn't verify that delegations could be used
   for decryption following a restore. The integration tests now
   verify this.

2. There was no functionality for clearing persisted delegations if
   needed. The vault admin can now do this via the command line tool.

3. Restoring active delegations wasn't storing the key with the
   delegation. Keys are now serialised properly.

4. [Minor] The MSP package now reports the name of the offending user
   when it can't find a user name in the database.
2016-08-24 13:22:13 -07:00
Kyle Isom
5396cdc899 Address @jkroll-cf's feedback on keycache interface.
+ persistLabels moved from cryptor to persist package global.
+ Restore now explicitly checks for the case where there aren't enough
  shares to return `ErrRestoreDelegations`.
+ The users responsible for restoring the cache are now logged.
2016-08-05 15:23:10 -07:00
Brendan Mc
1e699edc00 Import Ben's changes to MSP. 2015-12-13 17:12:38 -08:00
Brendan McMillion
5e1cff9d9d Rewrite MSP parsers.
- Stop using container/list.  It requires casting which keeps causing panics.
- Justify all slice accesses.  Nil pointers also keep causing panics.
2015-12-04 11:32:00 -08:00
Brendan McMillion
95e414474a Bugfix: Not enough arguments to Fatalf. 2015-11-23 10:43:39 -08:00
Brendan McMillion
c5da2f748e Comment the DerivePath logic. 2015-11-23 10:32:31 -08:00
Brendan McMillion
7e56983fa6 Move field and matrix logic into their own files and abstractions.
- Instead of using GF(2^127-1) as one of many options, move to GF(2^128) exclusively.
- Don't clear the first two bits of every secret key.
2015-11-21 09:23:55 -08:00
Brendan McMillion
362e20533a Respond to PR requests.
- Type String renamed Name.
- Panic if an invalid modulus size is chosen rather.
- Name the interface arguments for the UserDatabase.
2015-11-12 09:12:22 -08:00
Brendan McMillion
701b938562 Import bug fixes from MSP. 2015-11-11 15:22:12 -08:00
Brendan McMillion
4c161e343c Write better error messages. 2015-11-11 15:22:00 -08:00
Brendan McMillion
e652300f43 Vendored in Bren2010/MSP 2015-11-11 15:20:46 -08:00