Github user vectorijk commented on a diff in the pull request:

    https://github.com/apache/spark/pull/10527#discussion_r50214041
  
    --- Diff: 
sql/catalyst/src/test/scala/org/apache/spark/sql/catalyst/expressions/MiscFunctionsSuite.scala
 ---
    @@ -130,4 +130,49 @@ class MiscFunctionsSuite extends SparkFunSuite with 
ExpressionEvalHelper {
           }
         }
       }
    +
    +  test("aesEncrypt") {
    +    checkEvaluation(Base64(AesEncrypt(Literal("ABC".getBytes),
    +      Literal("1234567890123456".getBytes))), "y6Ss+zCYObpCbgfWfyNWTw==")
    +    checkEvaluation(Base64(AesEncrypt(Literal("".getBytes),
    +      Literal("1234567890123456".getBytes))), "BQGHoM3lqYcsurCRq3PlUw==")
    +
    +    // Before testing this, installing Java Cryptography Extension (JCE)
    +    // Unlimited Strength Jurisdiction Policy Files first
    +//    checkEvaluation(Base64(AesEncrypt(Literal("ABC".getBytes),
    +//      Literal("12345678901234561234567890123456".getBytes))), 
"nYfCuJeRd5eD60yXDw7WEA==")
    --- End diff --
    
    @marmbrus When Java Cryptography Extension (JCE) not installed under oracle 
jdk, it will return `null` and will not break other things. Plus, we don't need 
to worry about installing this extension under openjdk, it works fine with 
openjdk.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to