Closed akhilstanis closed 9 years ago
You are right. In fact the whole MIHCoding
design is a bit miss-designed. It would be better to have something like - initWithData:(NSData *)someData format:(MIHDataFormat)aFormat
. There is often the case where you have multiple data types available.
Thank you very much for your help. Since I'm planing a release with breaking changes I merged this change too.
The current
MIHBigInteger#initWithData:
usesBN_mpi2bn
which which doesn't seem to be the right option when there isBN_bin2bn
, and so I refactored the method to use latter mentioned function. Also I have addedMIHBigInteger#initWithMpiData:
to add support forBN_mpi2bn
too.