Searched refs:ShortBufferException (Results 1 - 25 of 25) sorted by relevance

/dalvik/libcore/crypto/src/main/java/javax/crypto/
H A DShortBufferException.java31 public class ShortBufferException extends GeneralSecurityException { class in inherits:GeneralSecurityException
39 * Creates a new instance of {@code ShortBufferException} with the
45 public ShortBufferException(String msg) { method in class:ShortBufferException
50 * Creates a new instance of {@code ShortBufferException}.
52 public ShortBufferException() { method in class:ShortBufferException
H A DCipherSpi.java293 * a {@code ShortBufferException} is thrown. Use
308 * @throws ShortBufferException
313 throws ShortBufferException;
321 * bytes a {@code ShortBufferException} is thrown. Use
330 * @throws ShortBufferException
334 throws ShortBufferException {
359 throw new ShortBufferException(Messages.getString("crypto.0E")); //$NON-NLS-1$
364 throw new ShortBufferException(Messages.getString("crypto.0F", e)); //$NON-NLS-1$
410 * @throws ShortBufferException
420 throws ShortBufferException, IllegalBlockSizeExceptio
[all...]
H A DExemptionMechanismSpi.java57 * @throws ShortBufferException
63 int outputOffset) throws ShortBufferException,
H A DKeyAgreementSpi.java80 * @throws ShortBufferException
84 throws IllegalStateException, ShortBufferException;
H A DMac.java350 * @throws ShortBufferException
359 throws ShortBufferException, IllegalStateException {
364 throw new ShortBufferException(Messages.getString("crypto.08")); //$NON-NLS-1$
367 throw new ShortBufferException(Messages.getString("crypto.09", //$NON-NLS-1$
372 throw new ShortBufferException(
H A DExemptionMechanism.java331 * @throws ShortBufferException
337 throws IllegalStateException, ShortBufferException,
354 * @throws ShortBufferException
360 throws IllegalStateException, ShortBufferException,
H A DCipher.java905 * a {@code ShortBufferException} is thrown. Use
918 * @throws ShortBufferException
929 byte[] output) throws ShortBufferException {
938 * a {@code ShortBufferException} is thrown. Use
953 * @throws ShortBufferException
964 byte[] output, int outputOffset) throws ShortBufferException {
998 * bytes a {@code ShortBufferException} is thrown. Use
1007 * @throws ShortBufferException
1017 throws ShortBufferException {
1070 * @throws ShortBufferException
[all...]
H A DKeyAgreement.java295 * @throws ShortBufferException
299 throws IllegalStateException, ShortBufferException {
/dalvik/libcore/crypto/src/test/java/org/apache/harmony/crypto/tests/javax/crypto/serialization/
H A DShortBufferExceptionTest.java25 import javax.crypto.ShortBufferException;
31 * Test for ShortBufferException serialization
42 return new Object[] { new ShortBufferException(),
43 new ShortBufferException(null), new ShortBufferException(msgs[1]) };
/dalvik/libcore/crypto/src/test/java/org/apache/harmony/crypto/tests/javax/crypto/
H A DShortBufferExceptionTest.java30 import javax.crypto.ShortBufferException;
34 @TestTargetClass(ShortBufferException.class)
36 * Tests for <code>ShortBufferException</code> class constructors and methods.
49 * Test for <code>ShortBufferException()</code> constructor Assertion:
50 * constructs ShortBufferException with no detail message
55 method = "ShortBufferException",
59 ShortBufferException tE = new ShortBufferException();
65 * Test for <code>ShortBufferException(String)</code> constructor
66 * Assertion: constructs ShortBufferException wit
[all...]
H A DCipherSpiTest.java40 import javax.crypto.ShortBufferException;
63 int outputOffset) throws ShortBufferException, IllegalBlockSizeException,
123 int outputOffset) throws ShortBufferException {
155 BadPaddingException, ShortBufferException {
239 * throws ShortBufferException is there is no space in output to hold result
247 public void testCipherSpi05() throws ShortBufferException {
276 fail("ShortBufferException bust be thrown. Output buffer remaining: "
278 } catch (ShortBufferException e) {
297 * throws ShortBufferException is there is no space in output to hold result
306 ShortBufferException, IllegalBlockSizeExceptio
[all...]
H A DKeyAgreementSpiTest.java34 import javax.crypto.ShortBufferException;
72 throws IllegalStateException, ShortBufferException {
100 ShortBufferException, NoSuchAlgorithmException,
H A DExemptionMechanismSpiTest.java40 import javax.crypto.ShortBufferException;
62 protected int engineGenExemptionBlob(byte[] output, int outputOffset) throws ShortBufferException, ExemptionMechanismException {
H A DExemptionMechanismTest.java43 import javax.crypto.ShortBufferException;
259 throws ShortBufferException, ExemptionMechanismException {
262 throw new ShortBufferException();
331 ExemptionMechanismException, ShortBufferException {
356 fail("ShortBufferException expected");
357 } catch (ShortBufferException e) {
386 ExemptionMechanismException, ShortBufferException {
411 fail("ShortBufferException expected");
412 } catch (ShortBufferException e) {
H A DMacTest.java42 import javax.crypto.ShortBufferException;
353 notes = "Checks IllegalStateException only but for all methods. Not enough for doFinal(byte[] output, int outOffset) - it can throw ShortBufferException",
359 notes = "Checks IllegalStateException only but for all methods. Not enough for doFinal(byte[] output, int outOffset) - it can throw ShortBufferException",
366 notes = "Checks IllegalStateException only but for all methods. Not enough for doFinal(byte[] output, int outOffset) - it can throw ShortBufferException",
372 notes = "Checks IllegalStateException only but for all methods. Not enough for doFinal(byte[] output, int outOffset) - it can throw ShortBufferException",
378 notes = "Checks IllegalStateException only but for all methods. Not enough for doFinal(byte[] output, int outOffset) - it can throw ShortBufferException",
384 notes = "Checks IllegalStateException only but for all methods. Not enough for doFinal(byte[] output, int outOffset) - it can throw ShortBufferException",
391 notes = "Checks IllegalStateException only but for all methods. Not enough for doFinal(byte[] output, int outOffset) - it can throw ShortBufferException",
397 notes = "Checks IllegalStateException only but for all methods. Not enough for doFinal(byte[] output, int outOffset) - it can throw ShortBufferException",
403 notes = "Checks IllegalStateException only but for all methods. Not enough for doFinal(byte[] output, int outOffset) - it can throw ShortBufferException",
[all...]
H A DCipherTest.java62 import javax.crypto.ShortBufferException;
768 fail("ShortBufferException expected");
769 } catch (ShortBufferException e) {
840 fail("No expected ShortBufferException");
841 } catch (ShortBufferException e) {
949 InvalidKeyException, ShortBufferException, BadPaddingException,
1022 fail("No expected ShortBufferException");
1023 } catch (ShortBufferException e) {
1256 ShortBufferException, InvalidAlgorithmParameterException {
1324 fail("No expected ShortBufferException");
[all...]
H A DKeyAgreementTest.java46 import javax.crypto.ShortBufferException;
905 fail("ShortBufferException expected");
906 } catch (ShortBufferException e) {
/dalvik/libcore/crypto/src/main/java/org/apache/harmony/crypto/internal/
H A DNullCipherSpi.java38 import javax.crypto.ShortBufferException;
110 byte[] output, int outputOffset) throws ShortBufferException {
120 throws ShortBufferException {
128 throw new ShortBufferException(Messages.getString("crypto.0F", e)); //$NON-NLS-1$
144 byte[] output, int outputOffset) throws ShortBufferException,
153 throws ShortBufferException, IllegalBlockSizeException,
/dalvik/libcore/crypto/src/test/java/org/apache/harmony/crypto/tests/support/
H A DMyCipher.java36 import javax.crypto.ShortBufferException;
105 byte[] output, int outputOffset) throws ShortBufferException {
117 byte[] output, int outputOffset) throws ShortBufferException,
H A DMyKeyAgreementSpi.java34 import javax.crypto.ShortBufferException;
60 throws IllegalStateException, ShortBufferException {
H A DMyExemptionMechanismSpi.java33 import javax.crypto.ShortBufferException;
56 throws ShortBufferException, ExemptionMechanismException {
/dalvik/libcore/security/src/main/java/org/bouncycastle/jce/provider/
H A DJCEDHKeyAgreement.java12 import javax.crypto.ShortBufferException;
97 throws IllegalStateException, ShortBufferException
108 throw new ShortBufferException("DHKeyAgreement - buffer too short");
H A DJCEStreamCipher.java13 import javax.crypto.ShortBufferException;
322 throws ShortBufferException
332 throw new ShortBufferException(e.getMessage());
H A DWrapCipherSpi.java22 import javax.crypto.ShortBufferException;
239 throws ShortBufferException
254 // added ShortBufferException to throws statement
261 throws IllegalBlockSizeException, BadPaddingException, ShortBufferException
301 // added ShortBufferException to throws statement
H A DJCEBlockCipher.java17 import javax.crypto.ShortBufferException;
617 throws ShortBufferException
625 throw new ShortBufferException(e.getMessage());
669 throws IllegalBlockSizeException, BadPaddingException, ShortBufferException
672 // added ShortBufferException to the throws statement
680 throw new ShortBufferException("need at least " + outputLen + " bytes");

Completed in 192 milliseconds