Fixed AES Key not being written to LS and read from LS.

This commit is contained in:
ruri
2019-06-19 11:47:46 +02:00
parent a1247ea74a
commit cfcbd76ff3
2 changed files with 12 additions and 0 deletions
+1
View File
@@ -243,6 +243,7 @@ FUNCTION RandomNum 0 100 -> VAR "RANDOM"
FUNCTION CountOccurrences "tofind" "input" -> VAR "COUNT"
FUNCTION CharAt "index" "input" -> VAR "CHAR"
FUNCTION Substring "startindex" "length" "input" -> VAR "SUBSTRING"
FUNCTION AesEncrypt "secretkey" "secretmessage" -> VAR "ENCRYPTED"
</item>
<item name="Keycheck">
This will spawn and execute a Keycheck Block.
+11
View File
@@ -354,6 +354,11 @@ namespace RuriLib
RSAExp = LineParser.ParseLiteral(ref input, "Exponent");
break;
case Function.AESDecrypt:
case Function.AESEncrypt:
AesKey = LineParser.ParseLiteral(ref input, "AES Key");
break;
default:
break;
}
@@ -464,6 +469,12 @@ namespace RuriLib
.Literal(RSAMod)
.Literal(RSAExp);
break;
case Function.AESDecrypt:
case Function.AESEncrypt:
writer
.Literal(AesKey);
break;
}
writer