Lines Matching defs:ciphertext
772 // keyExpansion(). The ciphertext block is returned as an array of bytes.
787 // block, an array of bytes representing a ciphertext block, and expandedKey,
948 var ct; // ciphertext
978 // rijndaelDecrypt(ciphertext, key, mode)
979 // Decrypts the using the given key and mode. The parameter "ciphertext"
981 // bytes. If you have a hex string representing the ciphertext or key,
989 function rijndaelDecrypt(ciphertext, key, mode) {
996 if (!ciphertext || !key || typeof ciphertext == "string") { return; }
1003 for (block=(ciphertext.length / bpb)-1; block>0; block--) {
1005 decrypt(ciphertext.slice(block*bpb,(block+1)*bpb), expandedKey);
1008 pt[(block-1)*bpb + i] = aBlock[i] ^ ciphertext[(block-1)*bpb + i];
1017 pt = decrypt(ciphertext.slice(0, bpb), expandedKey).concat(pt);