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.

73 lines
1.4 KiB

  1. package Digest::MD2;
  2. use strict;
  3. use vars qw($VERSION @ISA @EXPORT_OK);
  4. $VERSION = '1.00'; # $Date: 1998/11/04 21:53:42 $
  5. require Exporter;
  6. *import = \&Exporter::import;
  7. @EXPORT_OK = qw(md2 md2_hex md2_base64);
  8. require DynaLoader;
  9. @ISA=qw(DynaLoader);
  10. Digest::MD2->bootstrap($VERSION);
  11. *reset = \&new;
  12. 1;
  13. __END__
  14. =head1 NAME
  15. Digest::MD2 - Perl interface to the MD2 Algorithm
  16. =head1 SYNOPSIS
  17. # Functional style
  18. use Digest::MD2 qw(md2 md2_hex md2_base64);
  19. $digest = md2($data);
  20. $digest = md2_hex($data);
  21. $digest = md2_base64($data);
  22. # OO style
  23. use Digest::MD2;
  24. $ctx = Digest::MD2->new;
  25. $ctx->add($data);
  26. $ctx->addfile(*FILE);
  27. $digest = $ctx->digest;
  28. $digest = $ctx->hexdigest;
  29. $digest = $ctx->b64digest;
  30. =head1 DESCRIPTION
  31. The C<Digest::MD2> module allows you to use the RSA Data Security
  32. Inc. MD2 Message Digest algorithm from within Perl programs. The
  33. algorithm takes as input a message of arbitrary length and produces as
  34. output a 128-bit "fingerprint" or "message digest" of the input.
  35. The C<Digest::MD2> programming interface is identical to the interface
  36. of C<Digest::MD5>.
  37. =head1 SEE ALSO
  38. L<Digest::MD5>
  39. =head1 COPYRIGHT
  40. This library is free software; you can redistribute it and/or
  41. modify it under the same terms as Perl itself.
  42. Copyright 1998 Gisle Aas.
  43. Copyright 1990-1992 RSA Data Security, Inc.
  44. =head1 AUTHOR
  45. Gisle Aas <[email protected]>
  46. =cut