Исправление для юнит теста

This commit is contained in:
Пытков Роман
2026-03-30 05:43:56 +03:00
parent 2d433671d0
commit 53fee48e64

View File

@@ -83,7 +83,7 @@ class Encryptor(private var secretKey: SecretKey) : DisposableHandle {
private const val TEST_DATA_LEN = 512 private const val TEST_DATA_LEN = 512
@OptIn(ExperimentalEncodingApi::class) @OptIn(ExperimentalEncodingApi::class)
fun generateEncryptionInfo(key: EncryptKey, encryptPath: Boolean) : StorageEncryptionInfo { fun generateEncryptionInfo(key: EncryptKey, encryptPath: Boolean = true) : StorageEncryptionInfo {
val encryptor = Encryptor(key.toAesKey()) val encryptor = Encryptor(key.toAesKey())
val testData = ByteArray(TEST_DATA_LEN) val testData = ByteArray(TEST_DATA_LEN)
val encryptedData = encryptor.encryptBytes(testData) val encryptedData = encryptor.encryptBytes(testData)