gnodet commented on a change in pull request #169:
URL: https://github.com/apache/mina-sshd/pull/169#discussion_r491911768



##########
File path: 
sshd-core/src/main/java/org/apache/sshd/common/session/helpers/AbstractSession.java
##########
@@ -254,6 +253,46 @@ protected AbstractSession(
         }
     }
 
+    /**
+     * @param  len       The packet payload size
+     * @param  blockSize The cipher block size
+     * @param  etmMode   Whether using "encrypt-then-MAC" mode
+     * @return           The required padding length
+     */
+    protected static int calculatePadLength(int len, int blockSize, boolean 
etmMode) {

Review comment:
       Done




----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]



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

Reply via email to