Commit Graph

61 Commits

Author SHA1 Message Date
Oscar Hinton 573eea66ee
Add support for Emergency Access (#204)
* Add support for Emergency Access

* Resolve review comments
2020-12-22 10:53:48 -05:00
Matt Gibson 2c414ce27a
Use log service for console messages (#221)
* Use logService for console messages

* Implement a base ConsoleLog service

Use this class as a default for other services that would like to output
to console. This service is overriden in CLI and Desktop to use CLI's
consoleLogService and electronLogService, respectively.

* Use browser-process-hrtime for timing

* test LogService implementations

* Ignore default import of hrtime

* Clean up imports. Require ConsoleLog injection

Co-authored-by: Matt Gibson <mdgibson@Matts-MBP.lan>
2020-12-11 10:44:57 -06:00
Matt Gibson 2b8c2c2b3e
Revert "Use logService for console messages (#214)" (#219)
This reverts commit 0fed528b6f.
2020-12-04 13:58:32 -06:00
Matt Gibson 0fed528b6f
Use logService for console messages (#214)
* Use logService for console messages

* linter autofixes

* Use full import path

* Implement a base ConsoleLog service

Use this class as a default for other services that would like to output
to console. This service is overriden in CLI and Desktop to use CLI's
consoleLogService and electronLogService, respectively.

* linter fixes

Co-authored-by: Matt Gibson <mdgibson@Matts-MBP.lan>
2020-12-04 12:38:26 -06:00
Oscar Hinton 9e4d000b4d
Browser <-> desktop communication (#185)
* Add electron constant for browser integration

* Add constant for browser biometrics. Ensure biometry is locked on lock.

* Avoid saving keys outside desktop

* Fix eslint warning

* Add supportsSecureStorage helper to platformUtils to improve readability
2020-11-18 16:10:57 -05:00
Kyle Spearrin 0e9e73ce95
Some groundwork for Send (#192)
* send work

* New method to update the last used index (#184)

Instead of updating it every time you call getNext(), it will be updated in a separate call, to avoid updating the index when the cipher did not auto-fill correctly (e.g wrong frame)
Fixes #1392

* added OnlyOrg to PolicyType enum (#183)

* [Require SSO] Add policy type enumeration (#186)

* Added SsoAuthentication policy type

* Updated policy type name // added comments for clarification of what each type controls

* [SSO] New user provision flow (#173)

* Initial commit of new user sso flow

* Adjusted stateSplit conditional per review

* Add logging to lowdb storage service (#188)

* Fix lint errors/warnings (#187)

* remove password api

* access id

* makeSendKey

Co-authored-by: Josep Marí <xusoo@users.noreply.github.com>
Co-authored-by: Addison Beck <abeck@bitwarden.com>
Co-authored-by: Vincent Salucci <26154748+vincentsalucci@users.noreply.github.com>
Co-authored-by: Chad Scharf <3904944+cscharf@users.noreply.github.com>
2020-11-02 15:58:18 -05:00
Kyle Spearrin 8cb5a9f505
hkdf crypto functions (#190)
* hkdf crypto functions

* comment to spec
2020-10-29 15:52:12 -04:00
Oscar Hinton c62f5287cd
Desktop biometrics support (#119)
* Initial work on windows hello support

* Switch to use windows.security.credentials.ui UserConsentVerifier

* Fix linting warnings

* Remove unessesary supportsBiometric from lock screen

* Rename biometric.main to windows.biometric.main. Add abstraction for biometric.

* Add support for dynamic biometric text.

* Add untested darwin implementation

* Rename fingerprintUnlock to biometric

* Add new functions to cliPlatformUtils.service.ts.

* Hide login if biometric is not supported

* Export default for biometric.*.main.ts

* Remove @nodert-win10-rs4/windows.security.credentials

* Add build requirements to readme

* Auto prompt biometric when starting the application.

* Ensure we support biometric before trying to auto prompt.

* Fix review comments and linting errors
2020-07-23 13:32:20 -04:00
Vincent Salucci 64c54cfb86
[Auto-Logout] Refactor LockService and Update Dependencies (#91)
* initial commit for lockService name refactor

* Reverted ConstantsService vault timeout key to legacy string value

Co-authored-by: Vincent Salucci <vsalucci@bitwarden.com>
2020-03-27 09:03:27 -05:00
Kyle Spearrin b74ee7b3ee memory stored pinProtectedKey 2019-08-29 09:40:50 -04:00
Kyle Spearrin 3d958279d2 fix keyhash storage 2019-04-13 21:26:16 -04:00
Kyle Spearrin bb6c194eab crypto service update 2019-04-09 09:06:05 -04:00
Kyle Spearrin 0b0245b90f cache keyHash, proper param order for cipherString 2019-04-03 14:18:55 -04:00
Kyle Spearrin cc27f98aae makeKeyFromPin in background context 2019-03-05 16:36:11 -05:00
Kyle Spearrin 53260a5be8 use user kdf settings for making PIN key 2019-02-13 00:04:31 -05:00
Kyle Spearrin 7a1e7b5474 support for unlocking with PIN code 2019-02-12 23:52:50 -05:00
Kyle Spearrin 64a6015a67 RSA HMAC cipher string types are deprecated 2018-11-26 15:29:54 -05:00
Kyle Spearrin 17e7ee4838 support for new attachment keys 2018-11-13 20:43:45 -05:00
Kyle Spearrin b4fad203b9 pbkdf2 not needed for hash phrase 2018-11-09 08:20:54 -05:00
Kyle Spearrin 1e6b3b4aae allow userId and pub key to be passed in 2018-11-07 23:12:45 -05:00
Kyle Spearrin ed07c8d01f get fingerprint crypto method 2018-11-07 22:54:56 -05:00
Kyle Spearrin e240085351 expose decrypt to bytes 2018-09-10 12:13:30 -04:00
Kyle Spearrin 3bc81ca450 clear org key cache when setting 2018-09-10 09:41:53 -04:00
Kyle Spearrin 13e0cf0c47 rename all to PBKDF2_SHA256 2018-08-27 19:58:49 -04:00
Kyle Spearrin 00562d083b remakeEncKey 2018-08-27 19:06:36 -04:00
Kyle Spearrin 1454aff46c enable key stretching on makeEncKey 2018-08-27 16:47:19 -04:00
Kyle Spearrin 9f26f9f377 support for prelogin kdf info 2018-08-14 15:12:10 -04:00
Kyle Spearrin 2fcc3c51b8 dont need to check storage for lock options on get 2018-07-27 21:52:09 -04:00
Kyle Spearrin 61d2040518 sequentialize updates 2018-07-23 15:12:32 -04:00
Kyle Spearrin 003c730eb1 sequentialize updates 2018-07-23 14:42:37 -04:00
Fred Cox 04014a8e78 Add sequentialize to prevent parralel loading of cipher keys (#7)
* Add sequentialize to prevent parralel loading of cipher keys

Massively improves start up performance of extensions

* Add tests for sequentialize

* Fix sequentialize as it was caching calls for all instances together

* Add sequentialize to the functions that have internal caches

* Adding sequentialize to getOrgKeys makes big performance difference

* Update cipher.service.ts

* Update collection.service.ts

* Update folder.service.ts
2018-07-23 14:23:30 -04:00
Kyle Spearrin cc6f732a14 hasEncKey checks 2018-07-12 17:07:06 -04:00
Kyle Spearrin d7f3f9425e user public key apis 2018-07-11 13:30:06 -04:00
Kyle Spearrin 3454d93fef generate keypair on registration 2018-07-03 11:41:55 -04:00
Kyle Spearrin 269b59210c use rsaExtractPublicKey for getting public key 2018-07-02 23:57:22 -04:00
Kyle Spearrin e22915818c added public key and share key to crypto service 2018-07-02 17:09:45 -04:00
Kyle Spearrin 6e89b503f2 hmac directly into array 2018-06-13 22:47:40 -04:00
Kyle Spearrin eda99e4f12 hasKey helper 2018-06-13 17:10:52 -04:00
Kyle Spearrin 6aa922f380 fix unreachable code 2018-06-13 17:06:09 -04:00
Kyle Spearrin 0429c0557b hkdf key stretching for pbkdf2 key 2018-06-13 16:48:00 -04:00
Kyle Spearrin 12b01e1894 remove forge import from crypto service 2018-05-16 16:02:05 -04:00
Kyle Spearrin 7112911cb8 2fa adjustments in auth services 2018-05-15 21:11:20 -04:00
Kyle Spearrin 29556c5d3b rename some crypto terms 2018-05-09 16:00:15 -04:00
Kyle Spearrin e614cffffb remove some crypto functions 2018-05-07 12:14:40 -04:00
Kyle Spearrin de4494e1b3 fast decrypt 2018-05-07 09:00:49 -04:00
Kyle Spearrin 0fa9fc58eb refactor utils service to utils 2018-04-23 13:03:47 -04:00
Kyle Spearrin 5e7115f78d implement crypto functions in more places 2018-04-21 23:55:21 -04:00
Kyle Spearrin fc1114a6bd refactor crypto service to use crypto functions 2018-04-21 23:14:04 -04:00
Kyle Spearrin 5608f11925 formatting fixes 2018-04-13 23:55:07 -04:00
Kyle Spearrin e3b3e444db formatting cleanup 2018-02-28 11:09:10 -05:00