Skip to content

Commit

Permalink
Exposed masterkey version in Cryptor
Browse files Browse the repository at this point in the history
  • Loading branch information
tobihagemann committed Oct 29, 2020
1 parent a53572a commit 60f9449
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Sources/CryptomatorCryptoLib/Cryptor.swift
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,10 @@ public class Cryptor {
static let cleartextChunkSize = 32 * 1024
static let ciphertextChunkSize = kCCBlockSizeAES128 + cleartextChunkSize + Int(CC_SHA256_DIGEST_LENGTH)

public var masterkeyVersion: Int {
return masterkey.version
}

private let masterkey: Masterkey
private let cryptoSupport: CryptoSupport

Expand Down

0 comments on commit 60f9449

Please sign in to comment.