We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents d26c11c + e93835a commit 1825bd8Copy full SHA for 1825bd8
1 file changed
wolfcrypt/src/port/caam/caam_integrity.c
@@ -759,6 +759,9 @@ static Error caamAes(struct DescStruct* desc)
759
ctx[ctxIdx] = buf;
760
sz += buf->dataSz;
761
762
+ if (ctx[ctxIdx]->dataSz + offset > (MAX_CTX * sizeof(UINT4))) {
763
+ return SizeIsTooLarge;
764
+ }
765
memcpy((unsigned char*)&local[offset],
766
(unsigned char*)ctx[ctxIdx]->data, ctx[ctxIdx]->dataSz);
767
offset += ctx[ctxIdx]->dataSz;
@@ -958,6 +961,9 @@ static Error caamAead(struct DescStruct* desc)
958
961
959
962
960
963
964
965
966
967
968
969
0 commit comments