Change constant name from algo len to key len
Simple naming change to better describe the variable
Test: Ran unit tests
Bug: N/A
Change-Id: I2eb4c3a75f7f3ab6c9a09562a190fe81509b0fc7
diff --git a/server/XfrmController.h b/server/XfrmController.h
index eb43671..267edde 100644
--- a/server/XfrmController.h
+++ b/server/XfrmController.h
@@ -154,14 +154,14 @@
// convention.
// Exposed for testing
- static constexpr size_t MAX_ALGO_LENGTH = 128;
+ static constexpr size_t MAX_KEY_LENGTH = 128;
// Container for the content of an XFRMA_ALG_CRYPT netlink attribute.
// Exposed for testing
struct nlattr_algo_crypt {
nlattr hdr;
xfrm_algo crypt;
- uint8_t key[MAX_ALGO_LENGTH];
+ uint8_t key[MAX_KEY_LENGTH];
};
// Container for the content of an XFRMA_ALG_AUTH_TRUNC netlink attribute.
@@ -169,7 +169,7 @@
struct nlattr_algo_auth {
nlattr hdr;
xfrm_algo_auth auth;
- uint8_t key[MAX_ALGO_LENGTH];
+ uint8_t key[MAX_KEY_LENGTH];
};
// Container for the content of an XFRMA_TMPL netlink attribute.
@@ -177,7 +177,7 @@
struct nlattr_algo_aead {
nlattr hdr;
xfrm_algo_aead aead;
- uint8_t key[MAX_ALGO_LENGTH];
+ uint8_t key[MAX_KEY_LENGTH];
};
// Exposed for testing