Skip to content

Commit

Permalink
Added encoded property to Masterkey
Browse files Browse the repository at this point in the history
  • Loading branch information
tobihagemann committed Mar 2, 2021
1 parent 693216c commit 695ddb2
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Sources/CryptomatorCryptoLib/Masterkey.swift
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ import Foundation
public class Masterkey {
private(set) var aesMasterKey: [UInt8]
private(set) var macMasterKey: [UInt8]
public var encoded: [UInt8] {

This comment has been minimized.

Copy link
@overheadhunter

overheadhunter Mar 2, 2021

Member

I know the Java equivalent is named encoded as well, but this is due to third party API contracts.

Personally, I don't think this is a good name and we should change it. There is no encoding applied anywhere. Just change it to rawKey or something.

return aesMasterKey + macMasterKey
}

private init(aesMasterKey: [UInt8], macMasterKey: [UInt8]) {
self.aesMasterKey = aesMasterKey
Expand Down

0 comments on commit 695ddb2

Please sign in to comment.