}
}
</pre>
<p>Here is an example of a private key generation with AES:</p>
<pre data-diff-id="2" data-diff-type="noncompliant">
import java.security.KeyGenerator;
import java.security.NoSuchAlgorithmException;

fun main(args: Array&lt;String&gt;) {
    try {
        val keyGenerator = KeyGenerator.getInstance("AES");
        keyGenerator.initialize(64); // Noncompliant

    } catch (e: NoSuchAlgorithmException) {
        // ...
    }
}
</pre>
<p>Here is an example of an Elliptic Curve (EC) initialization. I