crypt.BlockCipher
Interface definition for a block cipher.

Inheritance

Constructor

goog.crypt.BlockCipher()

Instance Methods

Public Protected Private
decrypt(input) !Array.<number>
Decrypt a plaintext block. The implementation may expect (and assert) a particular block length.
Arguments:
input : !Array.<number>
Ciphertext. Array of input bytes.
Returns: !Array.<number>  Decrypted plaintext array of bytes. Should be the same length as input.
code »
encrypt(input) !Array.<number>
Encrypt a plaintext block. The implementation may expect (and assert) a particular block length.
Arguments:
input : !Array.<number>
Plaintext array of input bytes.
Returns: !Array.<number>  Encrypted ciphertext array of bytes. Should be the same length as input.
code »

Package crypt

Package Reference