Skip to content

Commit

Permalink
added method signBytesToString on ios
Browse files Browse the repository at this point in the history
  • Loading branch information
jerson committed Apr 12, 2020
1 parent e7cb5fb commit d2c67e3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ios/RNFastOpenPGP.m
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ - (OpenpgpOptions *)getOptions:(NSDictionary *)map
@try {
NSError *error;
NSData *dataFromFile = [NSData dataWithContentsOfFile:inputFile];
NSString * output = [[self instance] signBytes:dataFromFile publicKey:publicKey privateKey:privateKey passphrase:passphrase error:&error];
NSString * output = [[self instance] signBytesToString:dataFromFile publicKey:publicKey privateKey:privateKey passphrase:passphrase error:&error];

if(error!=nil){
reject([NSString stringWithFormat:@"%ld",(long)[error code]], [error description],error);
Expand Down

0 comments on commit d2c67e3

Please sign in to comment.