ClpIWNafPreCompInfo.pas 2.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. { *********************************************************************************** }
  2. { * CryptoLib Library * }
  3. { * Copyright (c) 2018 - 20XX Ugochukwu Mmaduekwe * }
  4. { * Github Repository <https://github.com/Xor-el> * }
  5. { * Distributed under the MIT software license, see the accompanying file LICENSE * }
  6. { * or visit http://www.opensource.org/licenses/mit-license.php. * }
  7. { * Acknowledgements: * }
  8. { * * }
  9. { * Thanks to Sphere 10 Software (http://www.sphere10.com/) for sponsoring * }
  10. { * development of this library * }
  11. { * ******************************************************************************* * }
  12. (* &&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&& *)
  13. unit ClpIWNafPreCompInfo;
  14. {$I CryptoLib.inc}
  15. interface
  16. uses
  17. ClpCryptoLibTypes,
  18. ClpIECC,
  19. ClpIPreCompInfo;
  20. type
  21. IWNafPreCompInfo = interface(IPreCompInfo)
  22. ['{DB29636B-A1EB-40C3-96C2-0B7830A55DB9}']
  23. function GetPreComp: TCryptoLibGenericArray<IECPoint>;
  24. procedure SetPreComp(const Value: TCryptoLibGenericArray<IECPoint>);
  25. function GetPreCompNeg: TCryptoLibGenericArray<IECPoint>;
  26. procedure SetPreCompNeg(const Value: TCryptoLibGenericArray<IECPoint>);
  27. function GetTwice: IECPoint;
  28. procedure SetTwice(const Value: IECPoint);
  29. function GetConfWidth: Int32;
  30. procedure SetConfWidth(Value: Int32);
  31. function GetWidth: Int32;
  32. procedure SetWidth(Value: Int32);
  33. function GetPromotionCountdown: Int32;
  34. procedure SetPromotionCountdown(Value: Int32);
  35. function DecrementPromotionCountdown: Int32;
  36. function IsPromoted: Boolean;
  37. property PreComp: TCryptoLibGenericArray<IECPoint> read GetPreComp
  38. write SetPreComp;
  39. property PreCompNeg: TCryptoLibGenericArray<IECPoint> read GetPreCompNeg
  40. write SetPreCompNeg;
  41. property Twice: IECPoint read GetTwice write SetTwice;
  42. property ConfWidth: Int32 read GetConfWidth write SetConfWidth;
  43. property Width: Int32 read GetWidth write SetWidth;
  44. property PromotionCountdown: Int32 read GetPromotionCountdown
  45. write SetPromotionCountdown;
  46. end;
  47. implementation
  48. end.