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.

37 lines
807 B

  1. /*-----------------------------------------------------------------------------
  2. * Copyright (C) Microsoft Corporation, 1995 - 1996.
  3. * All rights reserved.
  4. *
  5. * Owner :ramas
  6. * Date :4/16/96
  7. * description : Main Crypto functions for SSL3
  8. *----------------------------------------------------------------------------*/
  9. #ifndef _SSL3KEY_H_
  10. #define _SSL3KEY_H_
  11. #define CB_SSL3_MAX_MAC_PAD 48
  12. #define CB_SSL3_MD5_MAC_PAD 48
  13. #define CB_SSL3_SHA_MAC_PAD 40
  14. #define PAD1_CONSTANT 0x36
  15. #define PAD2_CONSTANT 0x5c
  16. void
  17. Ssl3BuildMasterKeys(
  18. PSPContext pContext,
  19. PUCHAR pbPreMaster,
  20. DWORD cbPreMaster
  21. );
  22. SP_STATUS
  23. Ssl3MakeMasterKeyBlock(PSPContext pContext);
  24. SP_STATUS
  25. Ssl3MakeWriteSessionKeys(PSPContext pContext);
  26. SP_STATUS
  27. Ssl3MakeReadSessionKeys(PSPContext pContext);
  28. #endif _SSL3KEY_H_