Michael Zabka
dbb40c14f8
Allow omit second key argument in crypto-js Hash functions
...
* Fixes DefinitelyTyped/DefinitelyTyped#24425
2018-03-22 21:39:12 +01:00
Andy Hanson
45c9246c09
Remove esModuleInterop from tsconfigs (no longer mandatory)
2018-02-14 14:55:13 -08:00
Andy
bef4d2b27d
Enable "esModuleInterop" in all tsconfigs ( #23354 )
2018-02-05 11:01:56 -08:00
Ritorna
2d7c61c83d
Added WordArray to Hash type Definition
...
Added the WordArray type to the Hash type.
var kDate = Crypto.HmacSHA256(dateStamp, "AWS4" + key);
var kRegion = Crypto.HmacSHA256(regionName, kDate); <=== Issue because kDate is typeof WordArray and not string as the key should be supposed to.
With adding the WordArray type the Hashing Procedure works fine (when using the toString it doesn't work correctly there).
Sample for JS from Amazon:
https://docs.aws.amazon.com/de_de/general/latest/gr/signature-v4-examples.html#signature-v4-examples-javascript
2017-12-07 17:03:09 +01:00
Andy
19f89399e4
Ensure every package has a tslint.json ( #21009 )
...
* Ensure every package has a tslint.json
* Fixes
2017-10-25 11:13:50 -07:00
Ander
226a61a527
Added WordArray as valid option to secretPassphase param in encrypt and decrypt functions ( #20313 )
2017-10-10 12:58:51 -07:00
Andy
947a8fb761
Enable strictFunctionTypes ( #20373 )
2017-10-06 14:03:03 -07:00
Marius N. Nicolaysen
8055d9b2b1
Update CryptoJS-definition to include lib.WordArray.create and allow the output as input to any Hash ( #20072 )
...
* Update CryptoJS-definition to include lib.WordArray.create and allow the output as input to any Hash
* fixed indentation
2017-10-02 10:37:30 -07:00
Bowden Kelly
70a258bc12
Merge pull request #19051 from hiro5id/Fix-definitions
...
Add toString Definition for WordArray and WordArray return type for Hash
2017-08-22 10:53:03 -07:00
Daniel Rosenwasser
27a9394a6f
Fixed up indentation.
2017-08-22 09:57:26 -07:00
Andy
924fafffc0
Fix remaining lint errors ( #19166 )
2017-08-20 15:37:53 -07:00
Roberto Sebestyen
adaf3d7313
Add toString Definition for WordArray and WordArray return type for Hash
2017-08-17 01:31:49 -04:00
Andy Hanson
354cec620d
Move all packages to a types directory
2017-03-24 14:27:52 -07:00