Merge branch 'nt/allow-longer-aesgcm-ivs'
This commit is contained in:
commit
1d738023e4
@ -23,7 +23,7 @@ public class SMKUDAccessKey: NSObject {
|
||||
// We derive the "ud access key" from the private key by encrypting zeroes.
|
||||
let emptyPlaintextLength = 16
|
||||
let emptyPlaintext = Data(count: Int(emptyPlaintextLength))
|
||||
let initializationVector = Data(count: Int(kAESGCM256_IVLength))
|
||||
let initializationVector = Data(count: Int(kAESGCM256_DefaultIVLength))
|
||||
guard let keyData = Cryptography.encryptAESGCM(plainTextData: emptyPlaintext,
|
||||
initializationVector: initializationVector,
|
||||
additionalAuthenticatedData: nil,
|
||||
|
||||
Loading…
Reference in New Issue
Block a user