aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorPiotr Krysik <ptrkrysik@gmail.com>2016-09-28 11:53:51 +0200
committerPiotr Krysik <ptrkrysik@gmail.com>2016-09-28 11:53:51 +0200
commit5878225d8a0c24e428c6497f1969637cda726f8f (patch)
treeb652f2a5fe29d945f362edb0873587fa4b263c92 /lib
parentb516e6dcdb758d0b8ba513dbfe812d6e1ed4a0e5 (diff)
Correction of comment in the decryption block
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];
}