Matt Gibson
36b7d30804
Fix failing crypto tests ( #5948 )
...
* Change everything to Uint8Array
related to https://github.com/jestjs/jest/issues/14379
* Work on failing type tests
* Revert changes to custom matcher setup
* Remove last BufferArrays from tests
* Fix custom matcher type errors in vscode
* Remove errant `.buffer` calls on Uint8Arrays
* Encryption Pair should serialize Array Buffer and Uint8Array
* Fix EncArrayBuffer encryption
---------
Co-authored-by: Thomas Rittson <trittson@bitwarden.com>
2023-08-04 02:13:33 +00:00
Oscar Hinton
5f825e10f9
[PM-2132] Move all specs to the src directory ( #5367 )
2023-05-09 11:27:09 +02:00
Jim Hays
9f7bf1132b
[PM-1877] Spellcheck ( #5237 )
...
* Bug fix: "vaule" -> "value"
* Bug fix: "aria-descibedby" -> "aria-describedby"
* Bug fix: "chararacter" -> "character"
* Fix typos in comments
* Fix typos in documentation
* Fix typo in test description
* Fix typos in sample data: "childen" -> "children"
* Fix typos in sample data: "pargraphs" -> "paragraphs"
* Fixes to test data: "Additinoal", "Informaion" -> "Additional", "Information"
* Fix typo in test data: "dolhpin" -> "dolphin"
* Fix typo in local variable: "attachement" -> "attachment"
* Fix typo in method name: "detachOrganizastion" -> "detachOrganization"
* Fix typo in method name: "getNewlyAddedDomians" -> "getNewlyAddedDomains"
* Fix typo: "EncyptedMessageResponse" -> "EncryptedMessageResponse"
* Fix typo: "miliseconds" -> "milliseconds"
* Fix typo: "authResponsePushNotifiction" -> "authResponsePushNotification"
* Fix typo: "getPushNotifcationObs" -> "getPushNotificationObs"
* Fix typo: "ExpriationDate" -> "ExpirationDate"
* Fix typo: "OrganizationUserResetPasswordDetailsReponse" -> "OrganizationUserResetPasswordDetailsResponse"
* Fix typo: "DISPLAY_TITLE_ATTRIBUE" -> "DISPLAY_TITLE_ATTRIBUTE"
* Fix typo: "credentialretreivalCommandHandler" -> "credentialRetrievalCommandHandler"
* Fix typo: "buildLoginCredntials" -> "buildLoginCredentials"
* Fix typo: "_mappedCredentialsColums" -> "_mappedCredentialsColumns"
* Fix typo: "_mappedPersonalInfoAsIdentiyColumns" -> "_mappedPersonalInfoAsIdentityColumns"
* Fix typo in input name: "StroageGbAdjustment" -> "StorageGbAdjustment"
* Fix typo in const: "encryptionAlogrithm" -> "encryptionAlgorithm"
---------
Co-authored-by: Daniel James Smith <djsmith@web.de>
2023-04-26 12:16:07 +02:00
Thomas Rittson
c90eb42ead
[EC-271] Refactor CryptoService - move symmetric encryption to EncryptService ( #3042 )
...
* move decryptFromBytes, decryptToBytes, and encryptToBytes from CryptoService to EncryptService
* leave redirects in CryptoService
* combine encryptService decryptFromBytes and decryptToBytes methods
* move parsing logic into EncArrayBuffer
* add tests
2022-07-26 11:40:32 +10:00