Lines Matching defs:Cipher

56  * <p>In order to create a Cipher object, the application calls the
57 * Cipher's <code>getInstance</code> method, and passes the name of the
80 * Cipher c = Cipher.getInstance("<i>DES/CBC/PKCS5Padding</i>");
122 * the following standard <code>Cipher</code> transformations with the keysizes
142 * <a href="{@docRoot}/../technotes/guides/security/StandardNames.html#Cipher">
143 * Cipher section</a> of the
154 public class Cipher {
157 Debug.getInstance("jca", "Cipher");
204 // strength that this Cipher object can be used for. (The cryptographic
240 * Creates a Cipher object.
246 protected Cipher(CipherSpi cipherSpi,
263 * Creates a Cipher object. Called internally and by NullCipher.
268 Cipher(CipherSpi cipherSpi, String transformation) {
275 private Cipher(CipherSpi firstSpi, Service firstService,
291 * array containing the components of a Cipher transformation:
376 // called directly by Cipher only to throw the correct exception
452 * Returns a <code>Cipher</code> object that implements the specified
457 * A new Cipher object encapsulating the
466 * See the Cipher section in the <a href=
467 * "{@docRoot}/../technotes/guides/security/StandardNames.html#Cipher">
483 public static final Cipher getInstance(String transformation)
490 cipherServices.add(new ServiceId("Cipher", transform.transform));
513 return new Cipher(null, s, t, transformation, transforms);
518 return new Cipher(spi, s, t, transformation, transforms);
529 * Returns a <code>Cipher</code> object that implements the specified
532 * <p> A new Cipher object encapsulating the
542 * See the Cipher section in the <a href=
543 * "{@docRoot}/../technotes/guides/security/StandardNames.html#Cipher">
567 public static final Cipher getInstance(String transformation,
584 * Returns a <code>Cipher</code> object that implements the specified
587 * <p> A new Cipher object encapsulating the
594 * See the Cipher section in the <a href=
595 * "{@docRoot}/../technotes/guides/security/StandardNames.html#Cipher">
616 public static final Cipher getInstance(String transformation,
629 Service s = provider.getService("Cipher", tr.transform);
656 Cipher cipher = new Cipher(spi, transformation);
712 debug.println("Cipher.init() not first method "
802 throw new AssertionError("Internal Cipher error: " + type);
885 * Returns the provider of this <code>Cipher</code> object.
887 * @return the provider of this <code>Cipher</code> object
895 * Returns the algorithm name of this <code>Cipher</code> object.
898 * <code>getInstance</code> calls that created this <code>Cipher</code>
901 * @return the algorithm name of this <code>Cipher</code> object.
941 throw new IllegalStateException("Cipher not initialized");
1134 * <p>Note that when a Cipher object is initialized, it loses all
1135 * previously-acquired state. In other words, initializing a Cipher is
1136 * equivalent to creating a new instance of that Cipher and initializing
1183 * <p>Note that when a Cipher object is initialized, it loses all
1184 * previously-acquired state. In other words, initializing a Cipher is
1185 * equivalent to creating a new instance of that Cipher and initializing
1256 * <p>Note that when a Cipher object is initialized, it loses all
1257 * previously-acquired state. In other words, initializing a Cipher is
1258 * equivalent to creating a new instance of that Cipher and initializing
1313 * <p>Note that when a Cipher object is initialized, it loses all
1314 * previously-acquired state. In other words, initializing a Cipher is
1315 * equivalent to creating a new instance of that Cipher and initializing
1387 * <p>Note that when a Cipher object is initialized, it loses all
1388 * previously-acquired state. In other words, initializing a Cipher is
1389 * equivalent to creating a new instance of that Cipher and initializing
1444 * <p>Note that when a Cipher object is initialized, it loses all
1445 * previously-acquired state. In other words, initializing a Cipher is
1446 * equivalent to creating a new instance of that Cipher and initializing
1527 * <p>Note that when a Cipher object is initialized, it loses all
1528 * previously-acquired state. In other words, initializing a Cipher is
1529 * equivalent to creating a new instance of that Cipher and initializing
1592 * <p>Note that when a Cipher object is initialized, it loses all
1593 * previously-acquired state. In other words, initializing a Cipher is
1594 * equivalent to creating a new instance of that Cipher and initializing
1634 (((opmode == Cipher.ENCRYPT_MODE) &&
1637 ((opmode == Cipher.WRAP_MODE) &&
1665 * Ensures that Cipher is in a valid state for update() and doFinal()
1667 * @throws IllegalStateException if Cipher object is not in valid state.
1672 throw new IllegalStateException("Cipher not initialized");
1674 if ((opmode != Cipher.ENCRYPT_MODE) &&
1675 (opmode != Cipher.DECRYPT_MODE)) {
1676 throw new IllegalStateException("Cipher not initialized " +
2408 throw new IllegalStateException("Cipher not initialized");
2410 if (opmode != Cipher.WRAP_MODE) {
2411 throw new IllegalStateException("Cipher not initialized " +
2452 throw new IllegalStateException("Cipher not initialized");
2454 if (opmode != Cipher.UNWRAP_MODE) {
2455 throw new IllegalStateException("Cipher not initialized " +