Fix accidental mis-named field
Signed-off-by: Dave Rodgman <dave.rodgman@arm.com>
This commit is contained in:
parent
77049b8b6c
commit
a2e2fce60d
1 changed files with 3 additions and 3 deletions
|
@ -307,7 +307,7 @@ typedef struct mbedtls_cipher_info_t {
|
||||||
uint8_t MBEDTLS_PRIVATE(flags) : 2;
|
uint8_t MBEDTLS_PRIVATE(flags) : 2;
|
||||||
|
|
||||||
/** The block size, in bytes. */
|
/** The block size, in bytes. */
|
||||||
uint8_t MBEDTLS_PRIVATE(block_size2) : 2;
|
uint8_t MBEDTLS_PRIVATE(block_size) : 2;
|
||||||
|
|
||||||
} mbedtls_cipher_info_t;
|
} mbedtls_cipher_info_t;
|
||||||
|
|
||||||
|
@ -548,7 +548,7 @@ static inline size_t mbedtls_cipher_info_get_block_size(
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
int packed = info->MBEDTLS_PRIVATE(block_size2);
|
int packed = info->MBEDTLS_PRIVATE(block_size);
|
||||||
return (size_t) (MBEDTLS_CIPHER_BLOCK_SIZE_UNPACK(packed));
|
return (size_t) (MBEDTLS_CIPHER_BLOCK_SIZE_UNPACK(packed));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -690,7 +690,7 @@ static inline unsigned int mbedtls_cipher_get_block_size(
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
int packed = ctx->MBEDTLS_PRIVATE(cipher_info)->MBEDTLS_PRIVATE(block_size2);
|
int packed = ctx->MBEDTLS_PRIVATE(cipher_info)->MBEDTLS_PRIVATE(block_size);
|
||||||
return (unsigned int) MBEDTLS_CIPHER_BLOCK_SIZE_UNPACK(packed);
|
return (unsigned int) MBEDTLS_CIPHER_BLOCK_SIZE_UNPACK(packed);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue