Package org.eclipse.jgit.transport
Class WalkEncryption.JetS3tV2
java.lang.Object
org.eclipse.jgit.transport.WalkEncryption
org.eclipse.jgit.transport.WalkEncryption.JetS3tV2
- Enclosing class:
WalkEncryption
JetS3t compatibility reference:
EncryptionUtil.java
EncryptionUtil.isCipherAvailableForUse checks encryption only which
"always works", but in JetS3t both encryption and decryption use non-IV
aware algorithm parameters for all PBE specs, which breaks in case of AES
that means that only non-IV algorithms will work round trip in
JetS3t, such as PBEWithMD5AndDES and PBEWithSHAAndTwofish-CBC
any AES based algorithms such as "PBE...With...And...AES" will not
work, since they need proper IV setup
Note: EncryptionUtil is inadequate:
-
Nested Class Summary
Nested classes/interfaces inherited from class org.eclipse.jgit.transport.WalkEncryption
WalkEncryption.JetS3tV2, WalkEncryption.JGitV1, WalkEncryption.JGitV2, WalkEncryption.Keys, WalkEncryption.SymmetricEncryption, WalkEncryption.Vals
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) static final String
private static final String
private final String
(package private) static final int
(package private) static final int
private final AlgorithmParameterSpec
(package private) static final byte[]
private final SecretKey
(package private) static final String
(package private) static final byte[]
Fields inherited from class org.eclipse.jgit.transport.WalkEncryption
JETS3T_CRYPTO_ALG, JETS3T_CRYPTO_VER, NONE
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) InputStream
decrypt
(InputStream in) (package private) OutputStream
encrypt
(OutputStream os) (package private) void
request
(HttpURLConnection u, String prefix) (package private) void
validate
(HttpURLConnection u, String prefix) Methods inherited from class org.eclipse.jgit.transport.WalkEncryption
error, instance, securityError, validateImpl
-
Field Details
-
VERSION
- See Also:
-
ALGORITHM
- See Also:
-
ITERATIONS
static final int ITERATIONS- See Also:
-
KEY_SIZE
static final int KEY_SIZE- See Also:
-
SALT
static final byte[] SALT -
ZERO_AES_IV
static final byte[] ZERO_AES_IV -
CRYPTO_VER
- See Also:
-
cryptoAlg
-
secretKey
-
paramSpec
-
-
Constructor Details
-
JetS3tV2
JetS3tV2(String algo, String key) throws GeneralSecurityException - Throws:
GeneralSecurityException
-
-
Method Details
-
request
- Specified by:
request
in classWalkEncryption
-
validate
- Specified by:
validate
in classWalkEncryption
- Throws:
IOException
-
encrypt
- Specified by:
encrypt
in classWalkEncryption
- Throws:
IOException
-
decrypt
- Specified by:
decrypt
in classWalkEncryption
- Throws:
IOException
-