~ubuntu-branches/ubuntu/trusty/jsch/trusty-proposed

« back to all changes in this revision

Viewing changes to src/com/jcraft/jsch/jce/BlowfishCBC.java

  • Committer: Bazaar Package Importer
  • Author(s): Michael Koch
  • Date: 2008-03-21 11:41:01 UTC
  • mfrom: (3.1.2 hardy)
  • Revision ID: james.westby@ubuntu.com-20080321114101-2g9w5l8ynwf6pbsq
Tags: 0.1.37-3
Add OSGi manifest patch. Thanks to Roberto Jimenoca. Closes: #471209.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/* -*-mode:java; c-basic-offset:2; indent-tabs-mode:nil -*- */
2
2
/*
3
 
Copyright (c) 2002,2003,2004,2005,2006 ymnk, JCraft,Inc. All rights reserved.
 
3
Copyright (c) 2002-2008 ymnk, JCraft,Inc. All rights reserved.
4
4
 
5
5
Redistribution and use in source and binary forms, with or without
6
6
modification, are permitted provided that the following conditions are met:
30
30
package com.jcraft.jsch.jce;
31
31
 
32
32
import com.jcraft.jsch.Cipher;
33
 
import javax.crypto.*;
34
33
import javax.crypto.spec.*;
35
34
 
36
35
public class BlowfishCBC implements Cipher{
62
61
                  skeySpec, new IvParameterSpec(iv));
63
62
    }
64
63
    catch(Exception e){
65
 
      System.out.println(e);
 
64
      throw e;
66
65
    }
67
66
  }
68
67
  public void update(byte[] foo, int s1, int len, byte[] bar, int s2) throws Exception{