diff --git a/lib/src/e2ee/e2ee_manager.dart b/lib/src/e2ee/e2ee_manager.dart index f8d21de96..7f4cd1cb7 100644 --- a/lib/src/e2ee/e2ee_manager.dart +++ b/lib/src/e2ee/e2ee_manager.dart @@ -125,15 +125,9 @@ class E2EEManager { Future ratchetKey({String? participantId, int? keyIndex}) async { if (participantId != null) { - final newKey = await _keyProvider.ratchetKey(participantId, keyIndex); - if (kDebugMode) { - print('newKey: $newKey'); - } + await _keyProvider.ratchetKey(participantId, keyIndex); } else { - final newKey = await _keyProvider.ratchetSharedKey(keyIndex: keyIndex); - if (kDebugMode) { - print('newKey: $newKey'); - } + await _keyProvider.ratchetSharedKey(keyIndex: keyIndex); } } diff --git a/lib/src/e2ee/key_provider.dart b/lib/src/e2ee/key_provider.dart index 2be252feb..f2fcdd3ca 100644 --- a/lib/src/e2ee/key_provider.dart +++ b/lib/src/e2ee/key_provider.dart @@ -12,7 +12,6 @@ // See the License for the specific language governing permissions and // limitations under the License. -import 'dart:convert'; import 'dart:typed_data'; import 'package:flutter_webrtc/flutter_webrtc.dart' as rtc; @@ -141,7 +140,7 @@ class BaseKeyProvider implements KeyProvider { if (!_keys.containsKey(keyInfo.participantId)) { _keys[keyInfo.participantId] = {}; } - logger.info('_setKey for ${keyInfo.participantId}, idx: ${keyInfo.keyIndex}, key: ${base64Encode(keyInfo.key)}'); + logger.info('_setKey for ${keyInfo.participantId}, idx: ${keyInfo.keyIndex}'); _keys[keyInfo.participantId]![keyInfo.keyIndex] = keyInfo.key; _latestSetIndex[keyInfo.participantId] = keyInfo.keyIndex; await _keyProvider.setKey(