encrypt.pp 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. {$MACRO ON}
  2. (******************************************************************************
  3. *
  4. * Copyright (c) 1994-2000 Palm, Inc. or its subsidiaries.
  5. * All rights reserved.
  6. *
  7. * File: Encrypt.h
  8. *
  9. * Release: Palm OS SDK 4.0 (63220)
  10. *
  11. * Description:
  12. * Equates for encryption/digestion routines in pilot
  13. *
  14. * History:
  15. * 7/31/96 RM - Created by Ron Marianetti
  16. *
  17. *****************************************************************************)
  18. unit encrypt;
  19. interface
  20. uses palmos, coretraps;
  21. (************************************************************
  22. * Function Prototypes
  23. *************************************************************)
  24. // Perform reversible encryption or decryption of 8 byte string in
  25. // srcP using 8 byte key keyP. Place 8 byte result in dstP.
  26. function EncDES(srcP, keyP, dstP: UInt8Ptr; encrypt: Boolean): Err; syscall sysTrapEncDES;
  27. // Digest a string of bytes and produce a 128 bit result using
  28. // the MD4 algorithm.
  29. type
  30. TDigestArray = array [0..15] of UInt8;
  31. function EncDigestMD4(strP: UInt8Ptr; strLen: UInt16; var digestP: TDigestArray): Err; syscall sysTrapEncDigestMD4;
  32. // Digest a string of bytes and produce a 128 bit result using
  33. // the MD5 algorithm.
  34. function EncDigestMD5(strP: UInt8Ptr; strLen: UInt16; var digestP: TDigestArray): Err; syscall sysTrapEncDigestMD5;
  35. implementation
  36. end.