pr2-eugin
Super Moderator
- Local time
- Today, 17:36
- Joined
- Nov 30, 2011
- Messages
- 8,494
Hello folks.. I have defined an array, however have declared as variant.. as such..
i am trying to pass this array(sBox) to another function which is defined as such:
but i am getting an error in the line i am trying to pass..
expandedKey = expandKey(aesKey, sBox, RC)
It says Type error: Array or User defined type expected. i tried ReDim of sBox, and also while passing used parentheses.. does not work any ideas??
Dim sBox
sBox=Array(&H63, &H7C, &H77, &H7B, &HF2)
i am trying to pass this array(sBox) to another function which is defined as such:
Function expandKey(ByRef simpleKey(), ByRef box(), ByRef rcon())
but i am getting an error in the line i am trying to pass..
expandedKey = expandKey(aesKey, sBox, RC)
It says Type error: Array or User defined type expected. i tried ReDim of sBox, and also while passing used parentheses.. does not work any ideas??
