Function: requireMigrationEncryptionKey()
function requireMigrationEncryptionKey(
encryptionKey: Buffer<ArrayBufferLike> | undefined,
errorMessage: string
): Buffer;
Defined in: electron/services/cloud/migrations/backupMigrationHelpers.ts:48
Ensures the migration encryption key exists when crypto operations are required.
Parameters
encryptionKey
| Buffer<ArrayBufferLike>
| undefined
Optional key provided by migration caller.
errorMessage
string
Error message to throw when the key is missing.
Returns
The validated encryption key.