亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? cipher.java

?? linux下編程用 編譯軟件
?? JAVA
?? 第 1 頁 / 共 3 頁
字號:
/* Cipher.java -- Interface to a cryptographic cipher.   Copyright (C) 2004  Free Software Foundation, Inc.This file is part of GNU Classpath.GNU Classpath is free software; you can redistribute it and/or modifyit under the terms of the GNU General Public License as published bythe Free Software Foundation; either version 2, or (at your option)any later version.GNU Classpath is distributed in the hope that it will be useful, butWITHOUT ANY WARRANTY; without even the implied warranty ofMERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNUGeneral Public License for more details.You should have received a copy of the GNU General Public Licensealong with GNU Classpath; see the file COPYING.  If not, write to theFree Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA02110-1301 USA.Linking this library statically or dynamically with other modules ismaking a combined work based on this library.  Thus, the terms andconditions of the GNU General Public License cover the wholecombination.As a special exception, the copyright holders of this library give youpermission to link this library with independent modules to produce anexecutable, regardless of the license terms of these independentmodules, and to copy and distribute the resulting executable underterms of your choice, provided that you also meet, for each linkedindependent module, the terms and conditions of the license of thatmodule.  An independent module is a module which is not derived fromor based on this library.  If you modify this library, you may extendthis exception to your version of the library, but you are notobligated to do so.  If you do not wish to do so, delete thisexception statement from your version. */package javax.crypto;import gnu.java.security.Engine;import java.security.AlgorithmParameters;import java.security.InvalidAlgorithmParameterException;import java.security.InvalidKeyException;import java.security.Key;import java.security.NoSuchAlgorithmException;import java.security.NoSuchProviderException;import java.security.Provider;import java.security.SecureRandom;import java.security.Security;import java.security.cert.Certificate;import java.security.cert.X509Certificate;import java.security.spec.AlgorithmParameterSpec;import java.util.StringTokenizer;/** * <p>This class implements a cryptographic cipher for transforming * data.</p> * * <p>Ciphers cannot be instantiated directly; rather one of the * <code>getInstance</code> must be used to instantiate a given * <i>transformation</i>, optionally with a specific provider.</p> * * <p>A transformation is of the form:</p> * * <ul> * <li><i>algorithm</i>/<i>mode</i>/<i>padding</i>, or</li> * <li><i>algorithm</i> * </ul> * * <p>where <i>algorithm</i> is the base name of a cryptographic cipher * (such as "AES"), <i>mode</i> is the abbreviated name of a block * cipher mode (such as "CBC" for cipher block chaining mode), and * <i>padding</i> is the name of a padding scheme (such as * "PKCS5Padding"). If only the algorithm name is supplied, then the * provider-specific default mode and padding will be used.</p> * * <p>An example transformation is:</p> * * <blockquote><code>Cipher c = * Cipher.getInstance("AES/CBC/PKCS5Padding");</code></blockquote> * * <p>Finally, when requesting a block cipher in stream cipher mode * (such as <acronym title="Advanced Encryption Standard">AES</acronym> * in OFB or CFB mode) the number of bits to be processed * at a time may be specified by appending it to the name of the mode; * e.g. <code>"AES/OFB8/NoPadding"</code>. If no such number is * specified a provider-specific default value is used.</p> * * @author Casey Marshall (csm@gnu.org) * @see java.security.KeyGenerator * @see javax.crypto.SecretKey */public class Cipher{  // Constants and variables.  // ------------------------------------------------------------------------  private static final String SERVICE = "Cipher";  /**   * The decryption operation mode.   */  public static final int DECRYPT_MODE = 2;  /**   * The encryption operation mode.   */  public static final int ENCRYPT_MODE = 1;  /**   * Constant for when the key to be unwrapped is a private key.   */  public static final int PRIVATE_KEY = 2;  /**   * Constant for when the key to be unwrapped is a public key.   */  public static final int PUBLIC_KEY = 1;  /**   * Constant for when the key to be unwrapped is a secret key.   */  public static final int SECRET_KEY = 3;  /**   * The key unwrapping operation mode.   */  public static final int UNWRAP_MODE = 4;  /**   * The key wrapping operation mode.   */  public static final int WRAP_MODE = 3;  /**   * The uninitialized state. This state signals that any of the   * <code>init</code> methods have not been called, and therefore no   * transformations can be done.   */  private static final int INITIAL_STATE = 0;  /** The underlying cipher service provider interface. */  private CipherSpi cipherSpi;  /** The provider from which this instance came. */  private Provider provider;  /** The transformation requested. */  private String transformation;  /** Our current state (encrypting, wrapping, etc.) */  private int state;  // Class methods.  // ------------------------------------------------------------------------  /**   * <p>Creates a new cipher instance for the given transformation.</p>   *   * <p>The installed providers are tried in order for an   * implementation, and the first appropriate instance is returned. If   * no installed provider can provide the implementation, an   * appropriate exception is thrown.</p>   *   * @param transformation The transformation to create.   * @return An appropriate cipher for this transformation.   * @throws java.security.NoSuchAlgorithmException If no installed   *         provider can supply the appropriate cipher or mode.   * @throws javax.crypto.NoSuchPaddingException If no installed   *         provider can supply the appropriate padding.   */  public static final Cipher getInstance(String transformation)    throws NoSuchAlgorithmException, NoSuchPaddingException  {    Provider[] providers = Security.getProviders();    NoSuchPaddingException ex = null;    String msg = "";    for (int i = 0; i < providers.length; i++)      {        try          {            return getInstance(transformation, providers[i]);          }        catch (NoSuchAlgorithmException nsae)          {            msg = nsae.getMessage();            ex = null;          }        catch (NoSuchPaddingException nspe)          {            ex = nspe;          }      }    if (ex != null)      {        throw ex;      }    throw new NoSuchAlgorithmException(msg);  }  /**   * <p>Creates a new cipher instance for the given transformation and   * the named provider.</p>   *   * @param transformation The transformation to create.   * @param provider       The name of the provider to use.   * @return An appropriate cipher for this transformation.   * @throws java.security.NoSuchAlgorithmException If the provider cannot   *         supply the appropriate cipher or mode.   * @throws java.security.NoSuchProviderException If the named provider   *         is not installed.   * @throws javax.crypto.NoSuchPaddingException If the provider cannot   *         supply the appropriate padding.   */  public static final Cipher getInstance(String transformation, String provider)    throws NoSuchAlgorithmException, NoSuchProviderException,           NoSuchPaddingException  {    Provider p = Security.getProvider(provider);    if (p == null)      {        throw new NoSuchProviderException(provider);      }    return getInstance(transformation, p);  }  /**   * Creates a new cipher instance for the given transform and the given   * provider.   *   * @param transformation The transformation to create.   * @param provider       The provider to use.   * @return An appropriate cipher for this transformation.   * @throws java.security.NoSuchAlgorithmException If the given   *         provider cannot supply the appropriate cipher or mode.   * @throws javax.crypto.NoSuchPaddingException If the given   *         provider cannot supply the appropriate padding scheme.   */  public static final Cipher getInstance(String transformation, Provider provider)    throws NoSuchAlgorithmException, NoSuchPaddingException  {    CipherSpi result = null;    String key = null;    String alg = null, mode = null, pad = null;    String msg = "";    if (transformation.indexOf('/') < 0)      {        try          {            result = (CipherSpi) Engine.getInstance(SERVICE, transformation,                                                    provider);            return new Cipher(result, provider, transformation);          }        catch (Exception e)          {            msg = e.getMessage();          }      }    else      {        StringTokenizer tok = new StringTokenizer(transformation, "/");        if (tok.countTokens() != 3)          {            throw new NoSuchAlgorithmException("badly formed transformation");          }        alg = tok.nextToken();        mode = tok.nextToken();        pad = tok.nextToken();        try          {            result = (CipherSpi) Engine.getInstance(SERVICE, transformation,                                                    provider);            return new Cipher(result, provider, transformation);          }        catch (Exception e)          {            msg = e.getMessage();          }        try          {            result = (CipherSpi) Engine.getInstance(SERVICE, alg + '/' + mode,                                                    provider);            result.engineSetPadding(pad);            return new Cipher(result, provider, transformation);          }        catch (Exception e)          {            if (e instanceof NoSuchPaddingException)              {                throw (NoSuchPaddingException) e;              }            msg = e.getMessage();          }        try          {            result = (CipherSpi) Engine.getInstance(SERVICE, alg + "//" + pad,                                                    provider);            result.engineSetMode(mode);            return new Cipher(result, provider, transformation);          }        catch (Exception e)          {            msg = e.getMessage();          }        try          {            result = (CipherSpi) Engine.getInstance(SERVICE, alg, provider);            result.engineSetMode(mode);            result.engineSetPadding(pad);            return new Cipher(result, provider, transformation);          }        catch (Exception e)          {            if (e instanceof NoSuchPaddingException)              {                throw (NoSuchPaddingException) e;              }            msg = e.getMessage();          }      }    throw new NoSuchAlgorithmException(transformation + ": " + msg);  }// Constructor.  // ------------------------------------------------------------------------  /**   * Create a cipher.   *   * @param cipherSpi The underlying implementation of the cipher.   * @param provider  The provider of this cipher implementation.   * @param transformation The transformation this cipher performs.   */  protected  Cipher(CipherSpi cipherSpi, Provider provider, String transformation)  {    this.cipherSpi = cipherSpi;    this.provider = provider;    this.transformation = transformation;    state = INITIAL_STATE;  }// Public instance methods.  // ------------------------------------------------------------------------  /**   * Get the name that this cipher instance was created with; this is   * equivalent to the "transformation" argument given to any of the   * {@link #getInstance()} methods.   *   * @return The cipher name.   */  public final String getAlgorithm()  {    return transformation;  }  /**   * Return the size of blocks, in bytes, that this cipher processes.   *   * @return The block size.   */

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
久久精品国内一区二区三区| 久久精品一区二区三区不卡| 一本色道久久加勒比精品| 一本大道久久a久久综合| 国产精品久线在线观看| 蜜桃视频在线观看一区| 成人国产在线观看| 欧美人妖巨大在线| 久久久亚洲精品一区二区三区| 亚洲黄色av一区| 国产裸体歌舞团一区二区| 色综合夜色一区| 国产色婷婷亚洲99精品小说| 国产成人免费在线| 欧美一级午夜免费电影| 国产精品国产三级国产普通话三级| 成人深夜福利app| 久久只精品国产| 日韩国产欧美在线播放| 色婷婷久久久亚洲一区二区三区| 亚洲一区二区三区影院| av中文字幕不卡| 国产三级三级三级精品8ⅰ区| 亚洲精品免费一二三区| 91麻豆精品国产91久久久久| 亚洲激情综合网| 欧美一区二区三区在线看| 成人网男人的天堂| 一区二区免费看| 91国产免费观看| 欧美极品aⅴ影院| 国产精品一色哟哟哟| 日韩精品一区二区三区四区视频 | 欧美一区二区黄色| 国产精品亚洲人在线观看| 夜夜揉揉日日人人青青一国产精品 | 欧美性视频一区二区三区| 亚洲欧美色图小说| 99久久精品情趣| 成人免费在线观看入口| 99精品国产视频| 久久国产婷婷国产香蕉| 亚洲欧洲制服丝袜| 精品久久久久久综合日本欧美| 欧美日韩aaaaaa| 国产一区在线观看视频| 亚洲福利一二三区| 欧美色图在线观看| 成人福利在线看| 精品一区二区在线看| 26uuu亚洲| 欧美三级欧美一级| 另类小说色综合网站| 亚洲另类在线一区| 国产精品每日更新| 色婷婷综合久久久中文字幕| 国产精品一二二区| 久久国产综合精品| 日韩不卡一二三区| 亚洲午夜电影网| 亚洲男人天堂一区| 国产精品美女久久久久久久| 精品国产91乱码一区二区三区| 国产成人a级片| 国内外成人在线视频| 亚洲国产精品高清| 久久久99久久| 久久综合九色综合97婷婷| 制服丝袜国产精品| 欧美日韩一区成人| 欧美精品777| 国产成a人亚洲精品| 亚洲一区在线免费观看| 日韩一区在线看| 国产精品热久久久久夜色精品三区| 精品国产一区二区国模嫣然| 精品免费99久久| 亚洲精品在线观| 91麻豆精品国产自产在线| 正在播放一区二区| 日韩一区二区三区视频在线| 91丨九色丨黑人外教| 久久精品99国产精品| 久久99精品国产麻豆不卡| 捆绑调教一区二区三区| 狠狠色2019综合网| 国产一区不卡精品| 成人午夜在线免费| 色欧美片视频在线观看在线视频| 色综合久久六月婷婷中文字幕| 色www精品视频在线观看| 欧美日韩美少妇| 日韩欧美一二三四区| 久久久久成人黄色影片| 国产精品日韩成人| 国产区在线观看成人精品| 日韩亚洲欧美成人一区| 国产无遮挡一区二区三区毛片日本| 337p日本欧洲亚洲大胆精品| 精品国产一二三区| 日韩一区二区在线看片| 久久免费美女视频| 久久综合久久综合久久综合| 2021久久国产精品不只是精品| 精品成人免费观看| 久久久久9999亚洲精品| 国产亚洲午夜高清国产拍精品| 精品国产青草久久久久福利| 久久在线观看免费| 亚洲国产精品ⅴa在线观看| 国产精品剧情在线亚洲| 一级做a爱片久久| 亚洲成人精品在线观看| 欧美网站一区二区| 欧美伦理影视网| 日韩欧美卡一卡二| 久久综合国产精品| 亚洲私人影院在线观看| 在线不卡中文字幕播放| 久久久不卡影院| 亚洲人吸女人奶水| 日产国产高清一区二区三区| 成人性生交大片免费看视频在线| a美女胸又www黄视频久久| 欧美日韩在线观看一区二区| 国产精品乱码一区二区三区软件 | 欧美性极品少妇| 欧美一级黄色片| 亚洲欧美在线aaa| 久久精品亚洲国产奇米99| 亚洲日本va午夜在线电影| 亚洲成av人片观看| 国产伦精一区二区三区| 91精品国产乱| 国产精品蜜臀在线观看| 日韩av一二三| 不卡电影一区二区三区| 欧美精品一区二区三区一线天视频 | 久久久精品免费网站| 亚洲永久免费av| 国产成人免费视频精品含羞草妖精| 91首页免费视频| 欧美大白屁股肥臀xxxxxx| 亚洲一区二区高清| 国产精品夜夜嗨| 91麻豆精品国产无毒不卡在线观看| 国产午夜精品福利| 午夜精品久久久久久久久久久| 日韩毛片一二三区| 精品一二三四区| 在线国产电影不卡| 欧洲一区二区三区免费视频| 久久久久久**毛片大全| 秋霞电影一区二区| av亚洲产国偷v产偷v自拍| 久久蜜桃av一区二区天堂| 午夜欧美在线一二页| av一区二区久久| 精品国产成人系列| 亚洲精品免费在线播放| 色综合视频在线观看| 久久九九国产精品| 九九**精品视频免费播放| 欧日韩精品视频| 最新国产の精品合集bt伙计| 成人深夜视频在线观看| 久久综合网色—综合色88| 午夜精品久久久久久| 色老汉av一区二区三区| 国产精品青草久久| 成人av电影免费在线播放| 精品成人一区二区| 精品一区二区三区免费| 日韩午夜三级在线| 亚洲高清视频中文字幕| 91精品国产91久久久久久一区二区| 一区二区三区在线视频免费| av网站免费线看精品| 国产日本欧美一区二区| 国产一区中文字幕| 中文字幕制服丝袜成人av| 国产成人免费av在线| 久久综合色天天久久综合图片| 欧美aaa在线| 欧美视频你懂的| 日韩av在线播放中文字幕| 91精品国产全国免费观看| 午夜欧美2019年伦理| 欧美肥胖老妇做爰| 五月婷婷综合网| 欧美精品在线一区二区三区| 午夜a成v人精品| 欧美一区二区在线视频| 亚洲国产精品久久一线不卡| 日韩欧美成人午夜| 国内精品在线播放| 欧美激情中文字幕| 91丝袜国产在线播放| 日本欧美一区二区| 精品国产91乱码一区二区三区 |