Code example for InvalidAlgorithmParameterException

Methods: getMessage

0
        { 
            engineInit(opmode, key, (AlgorithmParameterSpec)null, random);
        } 
        catch (InvalidAlgorithmParameterException e)
        { 
            throw new InvalidKeyException(e.getMessage());
        } 
    } 
 
    protected byte[] engineUpdate( 
        byte[]  input,
        int     inputOffset,
        int     inputLen) 
    { 
        int     length = cipher.getUpdateOutputSize(inputLen);
 
        if (length > 0)
        { 
                byte[]  out = new byte[length];
 
                int len = cipher.processBytes(input, inputOffset, inputLen, out, 0);