fix(registry): align registry integrations with updated auth, storage, repository, and audit models
This commit is contained in:
@@ -50,9 +50,9 @@ export class CryptoService {
|
||||
|
||||
// Encrypt
|
||||
const encrypted = await crypto.subtle.encrypt(
|
||||
{ name: 'AES-GCM', iv },
|
||||
{ name: 'AES-GCM', iv: iv.buffer as ArrayBuffer },
|
||||
this.masterKey,
|
||||
encoded
|
||||
encoded.buffer as ArrayBuffer
|
||||
);
|
||||
|
||||
// Format: iv:ciphertext (both base64)
|
||||
@@ -86,9 +86,9 @@ export class CryptoService {
|
||||
|
||||
// Decrypt
|
||||
const decrypted = await crypto.subtle.decrypt(
|
||||
{ name: 'AES-GCM', iv },
|
||||
{ name: 'AES-GCM', iv: iv.buffer as ArrayBuffer },
|
||||
this.masterKey,
|
||||
encrypted
|
||||
encrypted.buffer as ArrayBuffer
|
||||
);
|
||||
|
||||
// Decode to string
|
||||
@@ -120,7 +120,7 @@ export class CryptoService {
|
||||
const keyBytes = this.hexToBytes(keyHex);
|
||||
return await crypto.subtle.importKey(
|
||||
'raw',
|
||||
keyBytes,
|
||||
keyBytes.buffer as ArrayBuffer,
|
||||
{ name: 'AES-GCM' },
|
||||
false,
|
||||
['encrypt', 'decrypt']
|
||||
|
||||
Reference in New Issue
Block a user