You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

70 lines
2.4 KiB

  1. /*==============================================================================
  2. - TransPatternKey.h ( secureKeyboard)
  3. ==============================================================================*/
  4. #import <UIKit/UIKit.h>
  5. //@protocol TransKeyViewDelegate <NSObject>
  6. //@required
  7. //- (void)secureInputFinish:(NSInteger)type;
  8. //@end
  9. //@protocol TransKeyViewDelegate;
  10. @interface TransPatternView : UIViewController
  11. @property (nonatomic, retain) id<TransKeyViewDelegate> delegate;
  12. enum{
  13. PatternCancel,
  14. PatternFail,
  15. PatternComplete,
  16. };
  17. // 비밀키 설정
  18. -(void) mTK_SetSecureKey:(NSData*)securekey;
  19. -(NSData*)mTK_GetSecureKey;
  20. // 상단 안내 문구 설정
  21. -(void) mTK_SetTopLabelText:(NSString*) defaultText wrongText:(NSString *)wrongText;
  22. -(void) mTK_SetTopLabelColor:(UIColor *)defaultTextColor textColor:(UIColor *)wrongTextColor;
  23. // 최소 입력 자리수 설정
  24. -(void) mTK_SetMinLength:(NSInteger)length;
  25. // 암호화 데이터 추출
  26. -(NSString*) mTK_GetCipherData;
  27. -(NSString*) mTK_GetCipherDataEx;
  28. -(NSString*) mTK_GetCipherDataExWithPadding;
  29. // 비대칭키 암호화 패킷 추출
  30. -(NSString*) mTK_EncryptSecureKey:(NSString*)publicKey cipherString:(NSString *)cipherString;
  31. // 패턴 입력 길이
  32. -(NSInteger) mTK_GetPatternLength;
  33. // 암호화 데이터 복호화
  34. -(void) getPlainDataWithKey:(NSData*)key cipherString:(NSString*)cipherString plainString:(char*)plainData length:(NSInteger)length;
  35. -(void) getPlainDataExWithKey:(NSData*)key cipherString:(NSString*)cipherString plainString:(char*)plainData length:(NSInteger)length;
  36. -(void) getPlainDataExWithPaddingWithKey:(NSData*)key cipherString:(NSString*)cipherString plainString:(char*)plainData length:(NSInteger)length;
  37. // 입력값이 동일할 경우 같은 암호문으로 암호화
  38. -(void) mTK_EnableSamekeyInputDataEncrypt:(BOOL)bEnable;
  39. // 취소버튼을 이미지로 설정
  40. -(void) mTK_SetCancelButtonImage : (UIImage*) cancelImage;
  41. // 패턴 도트 컬러 설정
  42. -(void) mTK_SetDotColor:(UIColor*) defaultColor wrongColor:(UIColor*) wrongColor;
  43. // 패턴 라인 컬러 설정
  44. -(void) mTK_SetLineColor:(UIColor*) defaultColor wrongColor:(UIColor*) wrongColor;
  45. // 로고 에니메이션 재생 설정
  46. -(void) mTK_SetLogoAnimating:(BOOL) setAnimation;
  47. //입력패턴을 보여줄지 설정
  48. -(void) mTK_SetStealthMode:(BOOL) bEnable;
  49. //라이선스 설정
  50. - (int) mTK_LicenseCheck : (NSString *) fileName;
  51. @end