Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion internal_api/crypto/crypto_utils.c
Original file line number Diff line number Diff line change
Expand Up @@ -544,7 +544,7 @@ bool valid_key_size_for_algorithm(uint32_t algorithm, uint32_t key)
case TEE_ALG_RSAES_PKCS1_OAEP_MGF1_SHA256:
case TEE_ALG_RSAES_PKCS1_OAEP_MGF1_SHA384:
case TEE_ALG_RSAES_PKCS1_OAEP_MGF1_SHA512:
if (key >= 256 && key <= 2048)
if (key >= 256 && key <= 4096)
return true;
return false;

Expand Down
4 changes: 2 additions & 2 deletions internal_api/storage/storage_utils.c
Original file line number Diff line number Diff line change
Expand Up @@ -179,12 +179,12 @@ int valid_object_type_and_max_size(uint32_t obj_type,
return 1;

case TEE_TYPE_RSA_PUBLIC_KEY:
if (obj_size >= 256 && obj_size <= 2048)
if (obj_size >= 256 && obj_size <= 4096)
return 0;
return 1;

case TEE_TYPE_RSA_KEYPAIR:
if (obj_size >= 256 && obj_size <= 2048)
if (obj_size >= 256 && obj_size <= 4096)
return 0;
return 1;

Expand Down