aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/decryption/decryption_impl.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/decryption/decryption_impl.cc b/lib/decryption/decryption_impl.cc
index 9e6112b..7382e91 100644
--- a/lib/decryption/decryption_impl.cc
+++ b/lib/decryption/decryption_impl.cc
@@ -138,7 +138,7 @@ namespace gr {
for (int i = 0; i < 3; i++) {
decrypted_data[i] = burst_binary[i];
}
- //encrypt first part of the burst
+ //decrypt first part of the burst
for (int i = 0; i < 57; i++) {
decrypted_data[i+3] = keystream[i] ^ burst_binary[i+3];
}
@@ -146,7 +146,7 @@ namespace gr {
for (int i = 60; i < 88; i++) {
decrypted_data[i] = burst_binary[i];
}
- //encrypt second part of the burst
+ //decrypt second part of the burst
for (int i = 0; i < 57; i++) {
decrypted_data[i+88] = keystream[i+57] ^ burst_binary[i+88];
}