Source code of Windows XP (NT5)
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.

36 lines
1.2 KiB

  1. // PublicKeyHelper.h -- declarations of CCI public key helpers
  2. // (c) Copyright Schlumberger Technology Corp., unpublished work, created
  3. // 2000. This computer program includes Confidential, Proprietary
  4. // Information and is a Trade Secret of Schlumberger Technology Corp. All
  5. // use, disclosure, and/or reproduction is prohibited unless authorized
  6. // in writing. All Rights Reserved.
  7. #if !defined(SLBCSP_PUBLICKEYHELPER_H)
  8. #define SLBCSP_PUBLICKEYHELPER_H
  9. #include <windows.h>
  10. #include <cciPubKey.h>
  11. #include "Blob.h"
  12. /////////////////////////// HELPERS /////////////////////////////////
  13. cci::CPublicKey
  14. AsPublicKey(Blob const &rblbModulus, // little endian
  15. DWORD dwExponent,
  16. cci::CCard &rhcard);
  17. cci::CPublicKey
  18. AsPublicKey(Blob const &rblbModulus, // little endian
  19. Blob const &rblbExponent, // little endian
  20. cci::CCard &rhcard);
  21. // return the blob trimmed of extra zeroes. The blob is assumed to
  22. // represent an unsigned integer of arbitrary size in little endian
  23. // format. Thus the trailing zeroes are removed.
  24. void
  25. TrimExtraZeroes(Blob &rblob);
  26. #endif // SLBCSP_PUBLICKEYHELPER_H