59 object Obj =
Arguments[0].AssociatedObjectValue;
61 if (Obj is
byte[] Bin)
63 else if (Obj is
string s)
66 throw new ScriptRuntimeException(
"Expected secret to be a binary array, or a base64-encoded string.",
this);
Script runtime exception.
Class managing a script expression.
Base class for multivariate funcions.
ScriptNode[] Arguments
Function arguments.
static readonly ArgumentType[] argumentTypes0
Zero parameters.
static readonly ArgumentType[] argumentTypes1Scalar
One scalar parameter.
Base class for all nodes in a parsed script tree.
int Length
Length of expression covered by node.
Expression Expression
Expression of which the node is a part.
int Start
Start position in script expression.
Creates an HMAC SHA-256 JSON Web Signature key.
HS256(int Start, int Length, Expression Expression)
Creates an HMAC SHA-256 JSON Web Signature key.
HS256(ScriptNode Secret, int Start, int Length, Expression Expression)
Creates an HMAC SHA-256 JSON Web Signature key.
override string FunctionName
Name of the function
override IElement Evaluate(IElement[] Arguments, Variables Variables)
Evaluates the function.
override string[] DefaultArgumentNames
Default Argument names
Basic interface for all types of elements.