1234567891011121314151617181920 |
- #import <Foundation/Foundation.h>
- int rsa_sign_with_private_key_pem(char *message, int message_length
- , unsigned char *signature, unsigned int *signature_length
- , char *private_key_file_path, BOOL rsa2);
- int rsa_verify_with_public_key_pem(char *message, int message_length
- , unsigned char *signature, unsigned int signature_length
- , char *public_key_file_path, BOOL rsa2);
- NSString *base64StringFromData(NSData *signature);
- NSData *dataFromBase64String(NSString *base64String);
- NSString *rsaSignString(NSString *stringToSign, NSString *privateKeyFilePath, BOOL *signSuccess, BOOL rsa2);
- void rsaVerifyString(NSString *stringToVerify, NSString *signature, NSString *publicKeyFilePath, BOOL *verifySuccess, BOOL rsa2);
- NSString *formattedPEMString(NSString *originalString);
|