public class org.apache.drill.exec.udfs.CryptoFunctions$AESEncryptFunction extends java.lang.Object implements org.apache.drill.exec.expr.DrillSimpleFunc
{
org.apache.drill.exec.expr.holders.VarCharHolder rawInput;
org.apache.drill.exec.expr.holders.VarCharHolder rawKey;
org.apache.drill.exec.expr.holders.VarCharHolder out;
io.netty.buffer.DrillBuf buffer;
public void <init>()
{
org.apache.drill.exec.udfs.CryptoFunctions$AESEncryptFunction v;
v := @this: org.apache.drill.exec.udfs.CryptoFunctions$AESEncryptFunction;
specialinvoke v.<java.lang.Object: void <init>()>();
return;
}
public void setup()
{
org.apache.drill.exec.udfs.CryptoFunctions$AESEncryptFunction v;
v := @this: org.apache.drill.exec.udfs.CryptoFunctions$AESEncryptFunction;
return;
}
public void eval()
{
byte[] v, v, v, v, v, v;
org.apache.drill.exec.expr.holders.VarCharHolder v, v, v, v, v, v, v, v, v;
javax.crypto.spec.SecretKeySpec v;
io.netty.buffer.DrillBuf v, v, v, v;
java.lang.Exception v;
java.security.MessageDigest v;
javax.crypto.Cipher v;
java.nio.charset.Charset v, v, v;
int v, v, v, v, v;
java.lang.String v, v, v;
org.apache.drill.exec.udfs.CryptoFunctions$AESEncryptFunction v;
v := @this: org.apache.drill.exec.udfs.CryptoFunctions$AESEncryptFunction;
v = v.<org.apache.drill.exec.udfs.CryptoFunctions$AESEncryptFunction: org.apache.drill.exec.expr.holders.VarCharHolder rawKey>;
v = v.<org.apache.drill.exec.expr.holders.VarCharHolder: int start>;
v = v.<org.apache.drill.exec.udfs.CryptoFunctions$AESEncryptFunction: org.apache.drill.exec.expr.holders.VarCharHolder rawKey>;
v = v.<org.apache.drill.exec.expr.holders.VarCharHolder: int end>;
v = v.<org.apache.drill.exec.udfs.CryptoFunctions$AESEncryptFunction: org.apache.drill.exec.expr.holders.VarCharHolder rawKey>;
v = v.<org.apache.drill.exec.expr.holders.VarCharHolder: io.netty.buffer.DrillBuf buffer>;
v = staticinvoke <org.apache.drill.exec.expr.fn.impl.StringFunctionHelpers: java.lang.String toStringFromUTF8(int,int,io.netty.buffer.DrillBuf)>(v, v, v);
v = v.<org.apache.drill.exec.udfs.CryptoFunctions$AESEncryptFunction: org.apache.drill.exec.expr.holders.VarCharHolder rawInput>;
v = v.<org.apache.drill.exec.expr.holders.VarCharHolder: int start>;
v = v.<org.apache.drill.exec.udfs.CryptoFunctions$AESEncryptFunction: org.apache.drill.exec.expr.holders.VarCharHolder rawInput>;
v = v.<org.apache.drill.exec.expr.holders.VarCharHolder: int end>;
v = v.<org.apache.drill.exec.udfs.CryptoFunctions$AESEncryptFunction: org.apache.drill.exec.expr.holders.VarCharHolder rawInput>;
v = v.<org.apache.drill.exec.expr.holders.VarCharHolder: io.netty.buffer.DrillBuf buffer>;
v = staticinvoke <org.apache.drill.exec.expr.fn.impl.StringFunctionHelpers: java.lang.String toStringFromUTF8(int,int,io.netty.buffer.DrillBuf)>(v, v, v);
v = "";
label:
v = <java.nio.charset.StandardCharsets: java.nio.charset.Charset UTF_8>;
v = virtualinvoke v.<java.lang.String: byte[] getBytes(java.nio.charset.Charset)>(v);
v = staticinvoke <java.security.MessageDigest: java.security.MessageDigest getInstance(java.lang.String)>("SHA-1");
v = virtualinvoke v.<java.security.MessageDigest: byte[] digest(byte[])>(v);
v = staticinvoke <java.util.Arrays: byte[] copyOf(byte[],int)>(v, 16);
v = new javax.crypto.spec.SecretKeySpec;
specialinvoke v.<javax.crypto.spec.SecretKeySpec: void <init>(byte[],java.lang.String)>(v, "AES");
v = staticinvoke <javax.crypto.Cipher: javax.crypto.Cipher getInstance(java.lang.String)>("AES/ECB/PKCS5Padding");
virtualinvoke v.<javax.crypto.Cipher: void init(int,java.security.Key)>(1, v);
v = <java.nio.charset.StandardCharsets: java.nio.charset.Charset UTF_8>;
v = virtualinvoke v.<java.lang.String: byte[] getBytes(java.nio.charset.Charset)>(v);
v = virtualinvoke v.<javax.crypto.Cipher: byte[] doFinal(byte[])>(v);
v = staticinvoke <javax.xml.bind.DatatypeConverter: java.lang.String printBase64Binary(byte[])>(v);
label:
goto label;
label:
v := @caughtexception;
label:
v = <java.nio.charset.StandardCharsets: java.nio.charset.Charset UTF_8>;
v = virtualinvoke v.<java.lang.String: byte[] getBytes(java.nio.charset.Charset)>(v);
v = v.<org.apache.drill.exec.udfs.CryptoFunctions$AESEncryptFunction: org.apache.drill.exec.expr.holders.VarCharHolder out>;
v = v.<org.apache.drill.exec.udfs.CryptoFunctions$AESEncryptFunction: io.netty.buffer.DrillBuf buffer>;
v.<org.apache.drill.exec.expr.holders.VarCharHolder: io.netty.buffer.DrillBuf buffer> = v;
v = v.<org.apache.drill.exec.udfs.CryptoFunctions$AESEncryptFunction: org.apache.drill.exec.expr.holders.VarCharHolder out>;
v.<org.apache.drill.exec.expr.holders.VarCharHolder: int start> = 0;
v = v.<org.apache.drill.exec.udfs.CryptoFunctions$AESEncryptFunction: org.apache.drill.exec.expr.holders.VarCharHolder out>;
v = lengthof v;
v.<org.apache.drill.exec.expr.holders.VarCharHolder: int end> = v;
v = v.<org.apache.drill.exec.udfs.CryptoFunctions$AESEncryptFunction: io.netty.buffer.DrillBuf buffer>;
virtualinvoke v.<io.netty.buffer.DrillBuf: io.netty.buffer.ByteBuf setBytes(int,byte[])>(0, v);
return;
catch java.lang.Exception from label to label with label;
}
}