Lines Matching defs:encrypt
235 // encrypt text (set back to ctext, and forget key)
325 alert("failed to encrypt text");
428 /* encrypt the string in text with ascii key in akey
439 alert("Please specify a key with which to encrypt the message.");
443 alert("No plain text to encrypt!");
639 // we are performing the forward substitution ("encrypt") or inverse
644 if (direction == "encrypt") { S = SBox; } // Point S to the SBox we're using
655 if (direction == "encrypt") {
673 if (direction == "encrypt") {
744 byteSub(state, "encrypt");
745 shiftRow(state, "encrypt");
746 mixColumn(state, "encrypt");
758 byteSub(state, "encrypt");
759 shiftRow(state, "encrypt");
769 // encrypt is the basic encryption function. It takes parameters
774 function encrypt(block, expandedKey) {
972 ct = ct.concat(encrypt(aBlock, expandedKey));