Deprecate storageServiceKey in SyncMessage.Keys
This commit is contained in:
parent
37b3a6de4b
commit
d7b53f3d27
8 changed files with 62 additions and 26 deletions
|
@ -127,6 +127,10 @@ export function decryptDeviceName(
|
|||
return Bytes.toString(plaintext);
|
||||
}
|
||||
|
||||
export function deriveStorageServiceKey(masterKey: Uint8Array): Uint8Array {
|
||||
return hmacSha256(masterKey, Bytes.fromString('Storage Service Encryption'));
|
||||
}
|
||||
|
||||
export function deriveStorageManifestKey(
|
||||
storageServiceKey: Uint8Array,
|
||||
version: Long = Long.fromNumber(0)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue