DefinitelyTyped/types/crypto-js
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
..
aes
core
enc-base64
enc-hex
enc-latin1
enc-utf8
enc-utf16
evpkdf
format-hex
format-openssl
hmac-md5
hmac-ripemd160
hmac-sha1
hmac-sha3
hmac-sha224
hmac-sha256
hmac-sha384
hmac-sha512
lib-typedarrays
md5
mode-cfb
mode-ctr
mode-ctr-gladman
mode-ecb
mode-ofb
pad-ansix923
pad-iso10126
pad-iso97971
pad-nopadding
pad-pkcs7
pad-zeropadding
pbkdf2
rabbit
rabbit-legacy
rc4
ripemd160
sha1
sha3
sha224
sha256
sha384
sha512
test
tripledes
x64-core
crypto-js-tests.ts
index.d.ts
tsconfig.json
tslint.json