Skip to content

Commit 60f9449

Browse files
committed
Exposed masterkey version in Cryptor
1 parent a53572a commit 60f9449

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Sources/CryptomatorCryptoLib/Cryptor.swift

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,10 @@ public class Cryptor {
6666
static let cleartextChunkSize = 32 * 1024
6767
static let ciphertextChunkSize = kCCBlockSizeAES128 + cleartextChunkSize + Int(CC_SHA256_DIGEST_LENGTH)
6868

69+
public var masterkeyVersion: Int {
70+
return masterkey.version
71+
}
72+
6973
private let masterkey: Masterkey
7074
private let cryptoSupport: CryptoSupport
7175

0 commit comments

Comments
 (0)