⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 blockcipherpadding.java

📁 KeePass for J2ME is a J2ME port of KeePass Password Safe, a free, open source, light-weight and easy
💻 JAVA
字号:
package org.bouncycastle1.crypto.paddings;import org.bouncycastle1.crypto.SecureRandom;import org.bouncycastle1.crypto.InvalidCipherTextException;/** * Block cipher padders are expected to conform to this interface */public interface BlockCipherPadding{    /**     * Initialise the padder.     *     * @param random the source of randomness for the padding, if required.     */    public void init(SecureRandom random)        throws IllegalArgumentException;    /**     * Return the name of the algorithm the cipher implements.     *     * @return the name of the algorithm the cipher implements.     */    public String getPaddingName();    /**     * add the pad bytes to the passed in block, returning the     * number of bytes added.     * <p>     * Note: this assumes that the last block of plain text is always      * passed to it inside in. i.e. if inOff is zero, indicating the     * entire block is to be overwritten with padding the value of in     * should be the same as the last block of plain text. The reason     * for this is that some modes such as "trailing bit compliment"     * base the padding on the last byte of plain text.     * </p>     */    public int addPadding(byte[] in, int inOff);    /**     * return the number of pad bytes present in the block.     * @exception InvalidCipherTextException if the padding is badly formed     * or invalid.     */    public int padCount(byte[] in)        throws InvalidCipherTextException;}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -