acme
Foundational cross-platform layer of the ca2 framework
Loading...
Searching...
No Matches
md5.h
1
2// MD5.cpp
3 file for MD5 class
4//
5// This C++ Class implementation of the original RSA Data Security, Inc.
6// MD5 Message-Digest Algorithm is copyright (c) 2002, Gary McNickle.
7// All rights reserved. This software is a derivative of the "RSA Data
8// Security, Inc. MD5 Message-Digest Algorithm"
9//
10// You may use this software free of any charge, but without any
11// warranty or implied warranty, provided that you follow the terms
12// of the original RSA copyright, listed below.
13//
14// Original RSA Data Security, Inc. Copyright notice
16//
17// Copyright (C) 1991-2, RSA Data Security, Inc. Created 1991. All
18// rights reserved.
19//
20// License to copy and use this software is granted provided that it
21// is identified as the "RSA Data Security, Inc. MD5 Message-Digest
22// Algorithm" in all material mentioning or referencing this software
23// or this function.
24// License is also granted to make and use derivative works provided
25// that such works are identified as "derived from the RSA Data
26// Security, Inc. MD5 Message-Digest Algorithm" in all material
27// mentioning or referencing the derived work.
28// RSA Data Security, Inc. makes no representations concerning either
29// the merchantability of this software or the suitability of this
30// software for any particular purpose. It is provided "as is"
31// without express or implied warranty of any kind.
32// These notices must be retained in any copies of any part of this
33// documentation and/or software.
35
36/*
37* This is an OpenSSL-compatible implementation of the RSA Data Security, Inc.
38* MD5 Message-Digest Algorithm (RFC 1321).
39*
40* Homepage:
41* http://openwall.info/wiki/people/solar/software/public-domain-source-code/md5
42*
43* Author:
44* Alexander Peslyak, better known as Solar Designer <solar at openwall.com>
45*
46* This software was written by Alexander Peslyak in 2001. No copyright is
47* claimed, and the software is hereby placed in the public domain.
48* In case this attempt to disclaim copyright and place the software in the
49* public domain is deemed nullptr and void, then the software is
50* Copyright (c) 2001 Alexander Peslyak and it is hereby released to the
51* general public under the following terms:
52*
53* Redistribution and use in source and binary forms, with or without
54* modification, are permitted.
55*
56* There's ABSOLUTELY NO WARRANTY, express or implied.
57*
58* See md5.c for more information.
59*/
60#pragma once
61
62
63//namespace md5
64//{
65//
66//
67// class CLASS_DECL_ACME md5
68// {
69// public:
70//
71//
72// typedef struct
73// {
74// size_t lo;
75// size_t hi;
76// ::u32 a;
77// ::u32 b;
78// ::u32 c;
79// ::u32 d;
80// uchar buffer[64];
81// ::u32 block[16];
82// } action_context;
83//
84//
85// action_context m_ctx;
86// uchar m_u8aDigest[16];
87//
88//
89// md5();
90//
91//
92// void initialize();
93// void update(const void * pdata, size_t nInputLen);
94// void destroy();
95// const ::u8 *
96// digest();
97// string to_string();
98// const void * body(const void *data, ::u32 i32_size);
99// void get(memory & mem);
100//
101//
102// };
103//
104//
105//} // namespace md5
106
107
108
Definition filesystem.h:16