On 25/03/13 23:56, silvioprog wrote:
Done.
http://bugs.freepascal.org/view.php?id=24136
The patch includes source, examples and test cases (7 for MD5 and 7
for SHA1).
--
Silvio Clécio
My public projects - github.com/silvioprog http://github.com/silvioprog
Hi
Thank very much Silvio for
Hi,
Actually I think on OS X and Linux it makes sense to depend on OpenSSL, but
not for the reasons you mentioned so much as one more: Security. If you
are using doing encryption, then it's better to use a library that is
updated more often for bug fixes, and to have the updates be applied to
2013/4/2 Noah Silva shir...@galapagossoftware.com
Hi,
Actually I think on OS X and Linux it makes sense to depend on OpenSSL,
but not for the reasons you mentioned so much as one more: Security. If
you are using doing encryption, then it's better to use a library that is
updated more often
2013/3/26 Anthony Walter sys...@gmail.com
On Tue, Mar 26, 2013 at 1:20 AM, silvioprog silviop...@gmail.com wrote:
I don't know if you noticed, but I sent the ALL test cases required by
the RFC 2202 (http://tools.ietf.org/html/rfc2202), i.e., it's enough to
check whether the algorithm it's
Am 26.03.2013 06:53, schrieb Anthony Walter:
On Tue, Mar 26, 2013 at 1:20 AM, silvioprog silviop...@gmail.com
mailto:silviop...@gmail.com wrote:
I don't know if you noticed, but I sent the ALL test cases
required by the RFC 2202 (http://tools.ietf.org/html/rfc2202),
i.e., it's
On Tue, Mar 26, 2013 at 12:43 AM, Anthony Walter sys...@gmail.com wrote:
On Mon, Mar 25, 2013 at 11:24 PM, silvioprog silviop...@gmail.com wrote:
Nice.
But there situations that the user does not have the OpenSSL lib.
The routines I sent does not depend on external libs.
--
Silvio
On Tue, Mar 26, 2013 at 10:05 AM, Anthony Walter sys...@gmail.com wrote:
On Tue, Mar 26, 2013 at 5:57 AM, Marcos Douglas m...@delfire.net wrote:
Hi,
Is possible to make that only using Windows for any lib?
Best regards,
Marcos Douglas
Marcos,
Are you asking, Is it possible to build any
2013/3/26 Sven Barth pascaldra...@googlemail.com
Am 26.03.2013 06:53, schrieb Anthony Walter:
On Tue, Mar 26, 2013 at 1:20 AM, silvioprog silviop...@gmail.com wrote:
I don't know if you noticed, but I sent the ALL test cases required by
the RFC 2202 (http://tools.ietf.org/html/rfc2202),
Am 26.03.2013 14:26 schrieb Ludo Brands ludo.bra...@free.fr:
On 03/26/2013 10:40 AM, Sven Barth wrote:
Am 26.03.2013 06:53, schrieb Anthony Walter:
I wasn't asking you to stop your work, rather I was attempting to
share insights and my opinions with the group. My point in the
previous
Using Synapse:
uses
synacode;
begin
Write(HMAC_SHA1('The quick brown fox jumped over the lazy dog.',
'secret'); end. Result: ]M?p { ? #?O?c I
...because you must convert binary string into hexadecimal string, if
you wish. Use:
write(StrToHex(HMAC_SHA1('The quick brown fox jumped over
2013/3/25 Lukas Gebauer gebyl...@mlp.cz
Using Synapse:
uses
synacode;
begin
Write(HMAC_SHA1('The quick brown fox jumped over the lazy dog.',
'secret'); end. Result: ]M?p { ? #?O?c I
...because you must convert binary string into hexadecimal string, if
you wish. Use:
2013/3/24 Sven Barth pascaldra...@googlemail.com
On 24.03.2013 16:59, silvioprog wrote:
My function is more fast that cHash
(http://fundementals.**sourceforge.net/dl.htmlhttp://fundementals.sourceforge.net/dl.html).
The comparison result is:
HMAC: 00:00:01:689 cHash: 00:00:02:038
My
On Mon, Mar 25, 2013 at 11:24 PM, silvioprog silviop...@gmail.com wrote:
Nice.
But there situations that the user does not have the OpenSSL lib.
The routines I sent does not depend on external libs.
--
Silvio Clécio
My public projects - github.com/silvioprog
It's possible to build
2013/3/26 Anthony Walter sys...@gmail.com
On Mon, Mar 25, 2013 at 11:24 PM, silvioprog silviop...@gmail.com wrote:
Nice.
But there situations that the user does not have the OpenSSL lib.
The routines I sent does not depend on external libs.
--
Silvio Clécio
My public projects -
On Tue, Mar 26, 2013 at 12:23 AM, silvioprog silviop...@gmail.com wrote:
Don't know why so much work if you can use it directly from the FCL.
Because...
OpenSSL is quite robust, well documented. tested, and proven
OpenSSL provides a full compilement of cryptography and hashing functions
On
2013/3/26 Anthony Walter sys...@gmail.com
On Tue, Mar 26, 2013 at 12:23 AM, silvioprog silviop...@gmail.com wrote:
Don't know why so much work if you can use it directly from the FCL.
Because...
OpenSSL is quite robust, well documented. tested, and proven
OpenSSL provides a full
On Tue, Mar 26, 2013 at 1:20 AM, silvioprog silviop...@gmail.com wrote:
I don't know if you noticed, but I sent the ALL test cases required by the
RFC 2202 (http://tools.ietf.org/html/rfc2202), i.e., it's enough to check
whether the algorithm it's well implemented or not.
I'll await the
A small improvement:
uses
SHA1;
function SHA1Raw(const ABuffer; const ABufferLength: PtrUInt): string;
var
I: Byte;
VBytes : TBytes;
VDigest: TSHA1Digest;
VContext: TSHA1Context;
begin
Result := '';
SHA1Init(VContext);
SHA1Update(VContext, ABuffer, ABufferLength);
On 24.03.2013 16:59, silvioprog wrote:
My function is more fast that cHash
(http://fundementals.sourceforge.net/dl.html). The comparison result is:
HMAC: 00:00:01:689 cHash: 00:00:02:038
My final unit is:
http://pastebin.com/4484g9i8
Could you maybe run your unit through some test vectors
On 24.03.2013 17:48, Sven Barth wrote:
On 24.03.2013 16:59, silvioprog wrote:
My function is more fast that cHash
(http://fundementals.sourceforge.net/dl.html). The comparison result is:
HMAC: 00:00:01:689 cHash: 00:00:02:038
My final unit is:
http://pastebin.com/4484g9i8
Could you maybe
On 24.03.2013 19:35, silvioprog wrote:
2013/3/24 Sven Barth pascaldra...@googlemail.com
mailto:pascaldra...@googlemail.com
On 24.03.2013 16:59, silvioprog wrote:
My function is more fast that cHash
(http://fundementals.__sourceforge.net/dl.html
2013/3/24 Sven Barth pascaldra...@googlemail.com
On 24.03.2013 19:35, silvioprog wrote:
2013/3/24 Sven Barth pascaldra...@googlemail.com
mailto:pascaldragon@**googlemail.com pascaldra...@googlemail.com
On 24.03.2013 16:59, silvioprog wrote:
My function is more fast that cHash
On 24.03.2013 21:06, silvioprog wrote:
2013/3/24 Sven Barth pascaldra...@googlemail.com
mailto:pascaldra...@googlemail.com
On 24.03.2013 19:35, silvioprog wrote:
2013/3/24 Sven Barth pascaldra...@googlemail.com
mailto:pascaldra...@googlemail.com
Oops ...
2013/3/25 silvioprog silviop...@gmail.com
[...]
(seven for MD5 and nine for SHA1), ...
... seven for both.
--
Silvio Clécio
My public projects - github.com/silvioprog
___
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
On Sat, March 23, 2013 06:28, silvioprog wrote:
Hi,
How to get HMAC_SHA1 using native functions of FPC?
HMAC_SHA1:
http://en.wikipedia.org/wiki/Hash-based_message_authentication_code#Examples_of_HMAC_.28MD5.2C_SHA1.2C_SHA256.29
Doesn't package hash (included with FPC by default for all
Silvio,
I had the same requirement for an HMAC and used the DCP library:
http://wiki.freepascal.org/DCPcrypt
I then used the following code snippet to generate the HMAC
Regards
Tony Whyman
MWA
unit hmac;
{$mode objfpc}{$H+}
interface
uses
Classes, SysUtils;
procedure MakeHMAC(text:
2013/3/23 Tomas Hajny xhaj...@hajny.biz
On Sat, March 23, 2013 06:28, silvioprog wrote:
Hi,
How to get HMAC_SHA1 using native functions of FPC?
HMAC_SHA1:
http://en.wikipedia.org/wiki/Hash-based_message_authentication_code#Examples_of_HMAC_.28MD5.2C_SHA1.2C_SHA256.29
Doesn't
2013/3/23 Tony Whyman tony.why...@mccallumwhyman.com
Silvio,
I had the same requirement for an HMAC and used the DCP library:
http://wiki.freepascal.org/DCPcrypt
I then used the following code snippet to generate the HMAC
Regards
Tony Whyman
MWA
unit hmac;
{$mode objfpc}{$H+}
Silvio,
Just one extra point - the snippet I sent is example code. It is not
intended to be RFC compliant.
Regards
Tony Whyman
MWA
On 23/03/13 15:24, silvioprog wrote:
2013/3/23 Tony Whyman tony.why...@mccallumwhyman.com
mailto:tony.why...@mccallumwhyman.com
Silvio,
I had the
2013/3/23 Tony Whyman tony.why...@mccallumwhyman.com
Silvio,
Just one extra point - the snippet I sent is example code. It is not
intended to be RFC compliant.
Regards
Tony Whyman
MWA
Thank you friend for the answer!
So, seems the Synapse library has the function I'm looking for.
Hello,
I could be wrong, but I think that Synapse function have a bug. See:
Using PHP:
?php
echo hash_hmac(ripemd160, The quick brown fox jumped over the lazy
dog., secret);
?
Result:
b8e7ae12510bdfb1812e463a7f086122cf37e4f7
Using the http://www.freeformatter.com site
Result:
What do you mean by native?
It is pure pascal code that compiles under Delphi and FreePascal.
Using it is as easy as:
SHA1DigestToHexA(CalcHMAC_SHA1('secret', 'message')
On Sat, Mar 23, 2013 at 5:18 PM, silvioprog silviop...@gmail.com wrote:
2013/3/23 David Butler djbut...@gmail.com
Hi
2013/3/23 David Butler djbut...@gmail.com
What do you mean by native?
It is pure pascal code that compiles under Delphi and FreePascal.
Using it is as easy as:
SHA1DigestToHexA(CalcHMAC_SHA1('secret', 'message')
To not implement a big code like this:
unit Unit1;
{$mode objfpc}{$H+}
On Sat, March 23, 2013 16:21, silvioprog wrote:
2013/3/23 Tomas Hajny xhaj...@hajny.biz
On Sat, March 23, 2013 06:28, silvioprog wrote:
Hi,
How to get HMAC_SHA1 using native functions of FPC?
HMAC_SHA1:
Hello,
How to get HMAC_SHA1 using native functions of FPC?
HMAC_SHA1:
http://en.wikipedia.org/wiki/Hash-based_message_authentication_code#Examples_of_HMAC_.28MD5.2C_SHA1.2C_SHA256.29
Thank you!
--
Silvio Clécio
My public projects - github.com/silvioprog
35 matches
Mail list logo