Closure Library API Documentation
Go to class or file:
crypt.BlockCipher
Interface definition for a block cipher.
Useful links
http://en.wikipedia.org/wiki/Block_cipher
">Also See:
Source Code
Git
Inheritance
goog.crypt.BlockCipher
Constructor
goog.crypt.BlockCipher(
)
Instance Methods
Public
Protected
Private
Defined in
goog.crypt.BlockCipher
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