Fix aidl_psk_aes_unwrap in macsec
aidl_psk_aes_unwrap expected the length to be crypto len / 8, however
the caller is passing the plaintext len / 8.
crypto len is actually 8 bytes more than plaintext len.
Compensate that inside aidl_psk_aes_unwrap
Bug: 325130686
Test: cuttlefish macsec communication between 2 instances.
Change-Id: Ib339ba367069bea177f28ad166bf5947df748296
diff --git a/src/pae/aidl/aidl_psk.cpp b/src/pae/aidl/aidl_psk.cpp
index 67afef0..53f4f4f 100644
--- a/src/pae/aidl/aidl_psk.cpp
+++ b/src/pae/aidl/aidl_psk.cpp
@@ -74,6 +74,7 @@
if (pskPlugin == NULL)
return -ENODEV;
+ n++;
n = n * 8;
if (n < 8)
return -ENODEV;