Replace buffer.slice() with buffer.subarray()

This commit is contained in:
Fedor Indutny
2025-06-09 14:37:30 -07:00
committed by GitHub
parent 4a6e2d297b
commit b0634f9a9d
19 changed files with 54 additions and 45 deletions

View File

@@ -325,7 +325,7 @@ function translateMessageKey(key: Uint8Array) {
return {
cipherKey,
macKey,
iv: ivContainer.slice(0, 16),
iv: ivContainer.subarray(0, 16),
};
}