Lines Matching defs:Cipher

54  * <p>In order to create a Cipher object, the application calls the
55 * Cipher's <code>getInstance</code> method, and passes the name of the
78 * Cipher c = Cipher.getInstance("<i>DES/CBC/PKCS5Padding</i>");
132 * <p> Android provides the following <code>Cipher</code> transformations:
245 * <a href="{@docRoot}openjdk-redirect.html?v=8&path=/technotes/guides/security/StandardNames.html#Cipher">
246 * Cipher section</a> of the
255 public class Cipher {
272 Debug.getInstance("jca", "Cipher");
332 // strength that this Cipher object can be used for. (The cryptographic
375 * Creates a Cipher object.
381 protected Cipher(CipherSpi cipherSpi,
400 private Cipher(CipherSpi cipherSpi,
419 * array containing the components of a Cipher transformation:
507 // called directly by Cipher only to throw the correct exception
585 * Returns a <code>Cipher</code> object that implements the specified
590 * A new Cipher object encapsulating the
599 * See the Cipher section in the <a href=
600 * "{@docRoot}openjdk-redirect.html?v=8&path=/technotes/guides/security/StandardNames.html#Cipher">
616 public static final Cipher getInstance(String transformation)
623 * Returns a <code>Cipher</code> object that implements the specified
626 * <p> A new Cipher object encapsulating the
636 * See the Cipher section in the <a href=
637 * "{@docRoot}openjdk-redirect.html?v=8&path=/technotes/guides/security/StandardNames.html#Cipher">
661 public static final Cipher getInstance(String transformation,
678 * Returns a <code>Cipher</code> object that implements the specified
681 * <p> A new Cipher object encapsulating the
688 * See the Cipher section in the <a href=
689 * "{@docRoot}openjdk-redirect.html?v=8&path=/technotes/guides/security/StandardNames.html#Cipher">
710 public static final Cipher getInstance(String transformation,
720 static final Cipher createCipher(String transformation, Provider provider)
722 Providers.checkBouncyCastleDeprecation(provider, "Cipher", transformation);
744 return new Cipher(null, provider, transformation, tokenizedTransformation);
793 * Returns the provider of this <code>Cipher</code> object.
795 * @return the provider of this <code>Cipher</code> object
803 * Returns the algorithm name of this <code>Cipher</code> object.
806 * <code>getInstance</code> calls that created this <code>Cipher</code>
809 * @return the algorithm name of this <code>Cipher</code> object.
849 throw new IllegalStateException("Cipher not initialized");
1062 * <p>Note that when a Cipher object is initialized, it loses all
1063 * previously-acquired state. In other words, initializing a Cipher is
1064 * equivalent to creating a new instance of that Cipher and initializing
1114 * <p>Note that when a Cipher object is initialized, it loses all
1115 * previously-acquired state. In other words, initializing a Cipher is
1116 * equivalent to creating a new instance of that Cipher and initializing
1155 pdebug.println("Cipher." + transformation + " " +
1194 * <p>Note that when a Cipher object is initialized, it loses all
1195 * previously-acquired state. In other words, initializing a Cipher is
1196 * equivalent to creating a new instance of that Cipher and initializing
1254 * <p>Note that when a Cipher object is initialized, it loses all
1255 * previously-acquired state. In other words, initializing a Cipher is
1256 * equivalent to creating a new instance of that Cipher and initializing
1296 pdebug.println("Cipher." + transformation + " " +
1335 * <p>Note that when a Cipher object is initialized, it loses all
1336 * previously-acquired state. In other words, initializing a Cipher is
1337 * equivalent to creating a new instance of that Cipher and initializing
1395 * <p>Note that when a Cipher object is initialized, it loses all
1396 * previously-acquired state. In other words, initializing a Cipher is
1397 * equivalent to creating a new instance of that Cipher and initializing
1437 pdebug.println("Cipher." + transformation + " " +
1485 * <p>Note that when a Cipher object is initialized, it loses all
1486 * previously-acquired state. In other words, initializing a Cipher is
1487 * equivalent to creating a new instance of that Cipher and initializing
1553 * <p>Note that when a Cipher object is initialized, it loses all
1554 * previously-acquired state. In other words, initializing a Cipher is
1555 * equivalent to creating a new instance of that Cipher and initializing
1598 (((opmode == Cipher.ENCRYPT_MODE) &&
1601 ((opmode == Cipher.WRAP_MODE) &&
1625 pdebug.println("Cipher." + transformation + " " +
1633 * Ensures that Cipher is in a valid state for update() and doFinal()
1635 * @throws IllegalStateException if Cipher object is not in valid state.
1640 throw new IllegalStateException("Cipher not initialized");
1642 if ((opmode != Cipher.ENCRYPT_MODE) &&
1643 (opmode != Cipher.DECRYPT_MODE)) {
1644 throw new IllegalStateException("Cipher not initialized " +
2379 throw new IllegalStateException("Cipher not initialized");
2381 if (opmode != Cipher.WRAP_MODE) {
2382 throw new IllegalStateException("Cipher not initialized " +
2426 throw new IllegalStateException("Cipher not initialized");
2428 if (opmode != Cipher.UNWRAP_MODE) {
2429 throw new IllegalStateException("Cipher not initialized " +
2666 * Returns the {@code CipherSpi} backing this {@code Cipher} or {@code null} if no
2667 * {@code CipherSpi} is backing this {@code Cipher}.
2697 /** Items that need to be set on the Cipher instance. */
2717 * Keeps track of the possible arguments to {@code Cipher#init(...)}.
2768 Cipher.this.spi = cipherSpi;
2769 Cipher.this.provider = provider;
2775 * this instance (used by {@link Cipher#init}. If the {@code initParams} is passed
2830 * Tries to find the correct {@code Cipher} transform to use. Returns a
2836 * {@link Cipher#checkTransformation(String)}. The combinations of mode strings
2873 Provider.Service service = provider.getService("Cipher", transform.name);
2883 Provider.Service service = prov.getService("Cipher", transform.name);
2937 * Tries to initialize the {@code Cipher} from a given {@code service}. If
2950 * Check to see if the Cipher even supports the attributes before