Page 1 of 1

How to create an array of AESKey objects?

Posted: Tue Jan 21, 2020 9:53 am
by priyankap
Hello,

Is it possible to create an array of Key Objects of Class AESKey?

Can some one please guide me how can we do that?

Re: How to create an array of AESKey objects?

Posted: Sun Mar 01, 2020 11:34 am
by tay00000
Firstly declare the array of

Code: Select all

short totalKeyObjects = (short) 24;
AESKey[] keys = new AESKey[totalKeyObjects];
Then afterwards loop through as needed and use the KeyBuilder to build the keys when you need to use them otherwise the keys are not initialized properly and are useless until initialized and set with a key value.