File tree Expand file tree Collapse file tree 1 file changed +3
-0
lines changed
hbase-common/src/main/java/org/apache/hadoop/hbase/io/crypto/aes Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Original file line number Diff line number Diff line change 26
26
import java .util .Properties ;
27
27
import javax .crypto .spec .SecretKeySpec ;
28
28
import org .apache .commons .crypto .cipher .CryptoCipherFactory ;
29
+ import org .apache .commons .crypto .stream .CryptoInputStream ;
29
30
import org .apache .hadoop .conf .Configuration ;
30
31
import org .apache .hadoop .hbase .io .crypto .Cipher ;
31
32
import org .apache .hadoop .hbase .io .crypto .CipherProvider ;
@@ -48,6 +49,7 @@ public class CommonsCryptoAES extends Cipher {
48
49
public static final String CIPHER_MODE_KEY = "hbase.crypto.commons.mode" ;
49
50
public static final String CIPHER_CLASSES_KEY = "hbase.crypto.commons.cipher.classes" ;
50
51
public static final String CIPHER_JCE_PROVIDER_KEY = "hbase.crypto.commons.cipher.jce.provider" ;
52
+ public static final String CRYPTOSTREAM_BUFFERSIZE_KEY = "hbase.crypto.commons.cryptoStream.bufferSize" ;
51
53
52
54
private final String cipherMode ;
53
55
private Properties props ;
@@ -81,6 +83,7 @@ private static Properties readCryptoProps(Configuration conf) {
81
83
82
84
props .setProperty (CryptoCipherFactory .CLASSES_KEY , conf .get (CIPHER_CLASSES_KEY , "" ));
83
85
props .setProperty (CryptoCipherFactory .JCE_PROVIDER_KEY , conf .get (CIPHER_JCE_PROVIDER_KEY , "" ));
86
+ props .setProperty (CryptoInputStream .STREAM_BUFFER_SIZE_KEY , conf .get (CRYPTOSTREAM_BUFFERSIZE_KEY , "" ));
84
87
85
88
return props ;
86
89
}
You can’t perform that action at this time.
0 commit comments