Performance: PublicCryptoUtil should create a Cipher instance only once and not inside a
loop as the current implementation does.
---------------------------------------------------------------------------------------------------------------------------------
Key: JBESB-3015
URL:
https://jira.jboss.org/jira/browse/JBESB-3015
Project: JBoss ESB
Issue Type: Task
Security Level: Public (Everyone can see)
Components: Security
Reporter: Daniel Bevenius
Assignee: Daniel Bevenius
Fix For: 4.7 CP1
The current code calls CryptoUtil.encrypt inside of a while loop. In the encrypt method a
new Cipher instance will be created. Instead of doing this we could add a method to
CryptoUtil, for example getCipherForEnctyption and the use that instance in the loop.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira