Closed akhilstanis closed 10 years ago
Well done. In fact we would need to split up verfiy/sign and the signature process. Passing the signature method as parameter would be the correct way. But for the first step I accepted your pull request. Thank you for your support.
Yes, ideally that is the pattern normally followed I guess. Also it will be great to have a raw sign method which takes already hashed data as argument. eg.
-(NSData ) rawSign:(NSData )hashedMessage error:(NSError )error
Kind of useful in not so common situations.
Needed to sign some data using SHA1 hashing, but it was not implemented :( I have added two methods to sign and verify on MIHRSAPrivateKey and MIHRSAPublicKey which uses SHA1 hashing.