Increment hmac_sha*_vector() maximum num_elem value to 25
This is needed for FTE MIC calculation for Reassociation Request frmae when using MLO which could add 15 link addresses into the input data. Signed-off-by: Jouni Malinen <quic_jouni@quicinc.com>
This commit is contained in:
parent
6ae43bb103
commit
4c079dcc64
3 changed files with 9 additions and 9 deletions
|
@ -28,11 +28,11 @@ int hmac_sha256_vector(const u8 *key, size_t key_len, size_t num_elem,
|
||||||
{
|
{
|
||||||
unsigned char k_pad[64]; /* padding - key XORd with ipad/opad */
|
unsigned char k_pad[64]; /* padding - key XORd with ipad/opad */
|
||||||
unsigned char tk[32];
|
unsigned char tk[32];
|
||||||
const u8 *_addr[11];
|
const u8 *_addr[26];
|
||||||
size_t _len[11], i;
|
size_t _len[26], i;
|
||||||
int ret;
|
int ret;
|
||||||
|
|
||||||
if (num_elem > 10) {
|
if (num_elem > 25) {
|
||||||
/*
|
/*
|
||||||
* Fixed limit on the number of fragments to avoid having to
|
* Fixed limit on the number of fragments to avoid having to
|
||||||
* allocate memory (which could fail).
|
* allocate memory (which could fail).
|
||||||
|
|
|
@ -28,10 +28,10 @@ int hmac_sha384_vector(const u8 *key, size_t key_len, size_t num_elem,
|
||||||
{
|
{
|
||||||
unsigned char k_pad[128]; /* padding - key XORd with ipad/opad */
|
unsigned char k_pad[128]; /* padding - key XORd with ipad/opad */
|
||||||
unsigned char tk[48];
|
unsigned char tk[48];
|
||||||
const u8 *_addr[11];
|
const u8 *_addr[26];
|
||||||
size_t _len[11], i;
|
size_t _len[26], i;
|
||||||
|
|
||||||
if (num_elem > 10) {
|
if (num_elem > 25) {
|
||||||
/*
|
/*
|
||||||
* Fixed limit on the number of fragments to avoid having to
|
* Fixed limit on the number of fragments to avoid having to
|
||||||
* allocate memory (which could fail).
|
* allocate memory (which could fail).
|
||||||
|
|
|
@ -28,10 +28,10 @@ int hmac_sha512_vector(const u8 *key, size_t key_len, size_t num_elem,
|
||||||
{
|
{
|
||||||
unsigned char k_pad[128]; /* padding - key XORd with ipad/opad */
|
unsigned char k_pad[128]; /* padding - key XORd with ipad/opad */
|
||||||
unsigned char tk[64];
|
unsigned char tk[64];
|
||||||
const u8 *_addr[11];
|
const u8 *_addr[26];
|
||||||
size_t _len[11], i;
|
size_t _len[26], i;
|
||||||
|
|
||||||
if (num_elem > 10) {
|
if (num_elem > 25) {
|
||||||
/*
|
/*
|
||||||
* Fixed limit on the number of fragments to avoid having to
|
* Fixed limit on the number of fragments to avoid having to
|
||||||
* allocate memory (which could fail).
|
* allocate memory (which could fail).
|
||||||
|
|
Loading…
Reference in a new issue