Mercurial > 510Connectbot
comparison app/src/main/java/ch/ethz/ssh2/crypto/cipher/NullCipher.java @ 438:d29cce60f393
migrate from Eclipse to Android Studio
author | Carl Byington <carl@five-ten-sg.com> |
---|---|
date | Thu, 03 Dec 2015 11:23:55 -0800 |
parents | src/ch/ethz/ssh2/crypto/cipher/NullCipher.java@071eccdff8ea |
children |
comparison
equal
deleted
inserted
replaced
437:208b31032318 | 438:d29cce60f393 |
---|---|
1 /* | |
2 * Copyright (c) 2006-2011 Christian Plattner. All rights reserved. | |
3 * Please refer to the LICENSE.txt for licensing details. | |
4 */ | |
5 package ch.ethz.ssh2.crypto.cipher; | |
6 | |
7 /** | |
8 * NullCipher. | |
9 * | |
10 * @author Christian Plattner | |
11 * @version 2.50, 03/15/10 | |
12 */ | |
13 public class NullCipher implements BlockCipher { | |
14 private int blockSize = 8; | |
15 | |
16 public NullCipher() { | |
17 } | |
18 | |
19 public NullCipher(int blockSize) { | |
20 this.blockSize = blockSize; | |
21 } | |
22 | |
23 public void init(boolean forEncryption, byte[] key) { | |
24 } | |
25 | |
26 public int getBlockSize() { | |
27 return blockSize; | |
28 } | |
29 | |
30 public void transformBlock(byte[] src, int srcoff, byte[] dst, int dstoff) { | |
31 System.arraycopy(src, srcoff, dst, dstoff, blockSize); | |
32 } | |
33 } |