Reputation:
I have an byte array that contains the file data. For Khichidi-1 (224-bits), the byte array is divided into N 224-bit blocks, M(1), M(2) ,..., M(N) is there any inbuilt class in java to perform this operation. If there is none like that, then how can we create N no.of variables depending on the no.of message blocks
Upvotes: 0
Views: 92
Reputation: 96
To create classes at runtime with Java you would have to use its reflection capabilities, see: http://download.oracle.com/javase/tutorial/reflect/index.html
However, I don't think that would help you in this case as the data you describe is simple raw bits of a particular length. You could divvy the data up into 28-byte chunks in an array of byte arrays.
Upvotes: 1