Package org.cryptomator.cryptolib.common
Class MasterkeyFile
- java.lang.Object
-
- org.cryptomator.cryptolib.common.MasterkeyFile
-
public class MasterkeyFile extends Object
Representation of encrypted masterkey json file. Used byMasterkeyFileAccess
to load and persist keys.
-
-
Field Summary
Fields Modifier and Type Field Description byte[]
encMasterKey
byte[]
macMasterKey
int
scryptBlockSize
int
scryptCostParam
byte[]
scryptSalt
int
version
byte[]
versionMac
-
Constructor Summary
Constructors Constructor Description MasterkeyFile()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static MasterkeyFile
read(Reader reader)
void
write(Writer writer)
-
-
-
Field Detail
-
version
@SerializedName("version") public int version
-
scryptSalt
@SerializedName("scryptSalt") public byte[] scryptSalt
-
scryptCostParam
@SerializedName("scryptCostParam") public int scryptCostParam
-
scryptBlockSize
@SerializedName("scryptBlockSize") public int scryptBlockSize
-
encMasterKey
@SerializedName("primaryMasterKey") public byte[] encMasterKey
-
macMasterKey
@SerializedName("hmacMasterKey") public byte[] macMasterKey
-
versionMac
@SerializedName("versionMac") public byte[] versionMac
-
-
Method Detail
-
read
public static MasterkeyFile read(Reader reader) throws IOException
- Throws:
IOException
-
write
public void write(Writer writer) throws IOException
- Throws:
IOException
-
-