public class PathSegmentEncryptorDecryptor extends Object implements PathEncryptorDecryptor
| Constructor and Description |
|---|
PathSegmentEncryptorDecryptor(org.cryptomator.siv.SivMode sivMode) |
| Modifier and Type | Method and Description |
|---|---|
byte[] |
decrypt(AuthPathEncryptionSecretKey pathSecretKey,
byte[] encryptedPath,
byte[] associated) |
byte[] |
encrypt(AuthPathEncryptionSecretKey pathSecretKey,
byte[] originalPath,
byte[] associated) |
@Inject public PathSegmentEncryptorDecryptor(org.cryptomator.siv.SivMode sivMode)
public byte[] encrypt(AuthPathEncryptionSecretKey pathSecretKey, byte[] originalPath, byte[] associated)
encrypt in interface PathEncryptorDecryptorpathSecretKey - entity that contains keys for encrypt pathoriginalPath - path to encryptassociated - Associated data to authenticatepathSecretKeypublic byte[] decrypt(AuthPathEncryptionSecretKey pathSecretKey, byte[] encryptedPath, byte[] associated)
decrypt in interface PathEncryptorDecryptorpathSecretKey - entity that contains keys for decrypt pathencryptedPath - path to decryptassociated - Associated data to authenticatepathSecretKeyCopyright © 2020. All rights reserved.