mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-09-09 11:13:57 +08:00
Fixed cryptjs error on TypeScript 0.9.5
This commit is contained in:
Vendored
+14
-14
@@ -88,8 +88,8 @@ declare module CryptoJS{
|
||||
createEncryptor(key: WordArray, cfg?: C): ICipher<C>
|
||||
createDecryptor(key: WordArray, cfg?: C): ICipher<C>
|
||||
|
||||
create(xformMode: number, key: WordArray, cfg?: C): ICipher<C>
|
||||
init(xformMode: number, key: WordArray, cfg?: C): void
|
||||
create(xformMode?: number, key?: WordArray, cfg?: C): ICipher<C>
|
||||
init(xformMode?: number, key?: WordArray, cfg?: C): void
|
||||
|
||||
process(dataUpdate: WordArray): WordArray
|
||||
process(dataUpdate: string): WordArray
|
||||
@@ -110,7 +110,7 @@ declare module CryptoJS{
|
||||
createEncryptor(key: WordArray, cfg?: C): IStreamCipher<C>
|
||||
createDecryptor(key: WordArray, cfg?: C): IStreamCipher<C>
|
||||
|
||||
create(xformMode: number, key: WordArray, cfg?: C): IStreamCipher<C>
|
||||
create(xformMode?: number, key?: WordArray, cfg?: C): IStreamCipher<C>
|
||||
|
||||
blockSize: number
|
||||
}
|
||||
@@ -119,8 +119,8 @@ declare module CryptoJS{
|
||||
interface BlockCipherMode extends Base{
|
||||
createEncryptor(cipher: Cipher, iv: number[]): mode.IBlockCipherEncryptor
|
||||
createDecryptor(cipher: Cipher, iv: number[]): mode.IBlockCipherDecryptor
|
||||
init(cipher: Cipher, iv: number[]): void
|
||||
create(cipher: Cipher, iv: number[]): BlockCipherMode
|
||||
init(cipher?: Cipher, iv?: number[]): void
|
||||
create(cipher?: Cipher, iv?: number[]): BlockCipherMode
|
||||
}
|
||||
|
||||
//BlockCipher has interface same as IStreamCipher
|
||||
@@ -144,8 +144,8 @@ declare module CryptoJS{
|
||||
}
|
||||
|
||||
interface CipherParams extends Base, CipherParamsData{
|
||||
init(cipherParams: CipherParamsData): void
|
||||
create(cipherParams: CipherParamsData): CipherParams
|
||||
init(cipherParams?: CipherParamsData): void
|
||||
create(cipherParams?: CipherParamsData): CipherParams
|
||||
toString(formatter?: format.IFormatter): string
|
||||
}
|
||||
|
||||
@@ -279,7 +279,7 @@ declare module CryptoJS{
|
||||
createEncryptor(key: lib.WordArray, cfg?: lib.IBlockCipherCfg): IBlockCipherImpl
|
||||
createDecryptor(key: lib.WordArray, cfg?: lib.IBlockCipherCfg): IBlockCipherImpl
|
||||
|
||||
create(xformMode: number, key: lib.WordArray, cfg?: lib.IBlockCipherCfg): IBlockCipherImpl
|
||||
create(xformMode?: number, key?: lib.WordArray, cfg?: lib.IBlockCipherCfg): IBlockCipherImpl
|
||||
}
|
||||
|
||||
interface AES extends IBlockCipherImpl{}
|
||||
@@ -304,10 +304,10 @@ declare module CryptoJS{
|
||||
}
|
||||
|
||||
interface HMAC extends lib.Base{
|
||||
init(hasher: lib.Hasher, key: lib.WordArray): void
|
||||
init(hasher: lib.Hasher, key: string): void
|
||||
create(hasher: lib.Hasher, key: lib.WordArray): HMAC
|
||||
create(hasher: lib.Hasher, key: string): HMAC
|
||||
init(hasher?: lib.Hasher, key?: lib.WordArray): void
|
||||
init(hasher?: lib.Hasher, key?: string): void
|
||||
create(hasher?: lib.Hasher, key?: lib.WordArray): HMAC
|
||||
create(hasher?: lib.Hasher, key?: string): HMAC
|
||||
|
||||
update(messageUpdate: lib.WordArray): HMAC
|
||||
update(messageUpdate: string): HMAC
|
||||
@@ -407,8 +407,8 @@ declare module CryptoJS{
|
||||
high: number
|
||||
low: number
|
||||
|
||||
init(high: number, low: number): void
|
||||
create(high: number, low: number): Word
|
||||
init(high?: number, low?: number): void
|
||||
create(high?: number, low?: number): Word
|
||||
}
|
||||
|
||||
interface WordArray extends lib.Base{
|
||||
|
||||
Reference in New Issue
Block a user