Leaked source code of windows server 2003
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.

32 lines
1.1 KiB

  1. // -*- mode: C++; tab-width: 4; indent-tabs-mode: nil -*- (for GNU Emacs)
  2. //
  3. // Copyright (c) 1985-2000 Microsoft Corporation
  4. //
  5. // This file is part of the Microsoft Research IPv6 Network Protocol Stack.
  6. // You should have received a copy of the Microsoft End-User License Agreement
  7. // for this software along with this release; see the file "license.txt".
  8. // If not, please see http://www.research.microsoft.com/msripv6/license.htm,
  9. // or write to Microsoft Research, One Microsoft Way, Redmond, WA 98052-6399.
  10. //
  11. // Abstract:
  12. //
  13. // Definitions for null authentication algorithm. For test purposes.
  14. //
  15. #include <sha.h>
  16. #ifndef HMACSHA1_INCLUDED
  17. #define HMACSHA1_INCLUDED 1
  18. #define HMACSHA1_KEY_SIZE 128 // In bytes.
  19. #define HMACSHA1_CONTEXT_SIZE sizeof(SHA1Context)
  20. #define HMACSHA1_RESULT_SIZE 20 // In bytes.
  21. #define HMACSHA196_RESULT_SIZE 12 // In bytes.
  22. AlgorithmKeyPrepProc HMAC_SHA1KeyPrep;
  23. AlgorithmInitProc HMAC_SHA1Init;
  24. AlgorithmOpProc HMAC_SHA1Op;
  25. AlgorithmFinalProc HMAC_SHA1Final;
  26. AlgorithmFinalProc HMAC_SHA1_96Final;
  27. #endif // HMACSHA1_INCLUDED