typescript-closure-tools
Version:
Command-line tools to convert closure-style JSDoc annotations to typescript, and to convert typescript sources to closure externs files
26 lines (21 loc) • 912 B
TypeScript
/// <reference path="../../../globals.d.ts" />
declare module goog.crypt {
interface BlockCipher {
/**
* Encrypt a plaintext block. The implementation may expect (and assert)
* a particular block length.
* @param {!Array.<number>} input Plaintext array of input bytes.
* @return {!Array.<number>} Encrypted ciphertext array of bytes. Should be the
* same length as input.
*/
encrypt(input: number[]): number[];
/**
* Decrypt a plaintext block. The implementation may expect (and assert)
* a particular block length.
* @param {!Array.<number>} input Ciphertext. Array of input bytes.
* @return {!Array.<number>} Decrypted plaintext array of bytes. Should be the
* same length as input.
*/
decrypt(input: number[]): number[];
}
}