Commit graph

163 commits

Author SHA1 Message Date
Elias Batek
075f7ed846 Optimize fromHexString() 2024-11-04 03:43:04 +01:00
tynuk
23ea6b019d Add fromHexString, fromHexStringAsRange and isHexString
Squashed commit of the following:

commit af66b61a4ca4195c6b3a9de2a2eaaaa3786972c5
Author: Elias Batek
Date:   Sun Nov 3 09:37:51 2024 +0100

    Further cleanup

commit cb122cd54b14d253b29f99927b9f02cc4017dd05
Author: Elias Batek
Date:   Sun Nov 3 09:31:42 2024 +0100

    Add bloat because of questionable Circle CI failure

commit 1ad9e889bbe58ee9f0b5476f26b48aa7e51488d7
Author: Elias Batek
Date:   Sun Nov 3 09:24:37 2024 +0100

    Add cycle test

commit 913cfc771d694e785cae07157bccdf933fc8b969
Author: Elias Batek
Date:   Sun Nov 3 09:13:47 2024 +0100

    Split long lines

commit 4c062ccc07de668e75300ce3d20420b7dba51f15
Author: Elias Batek
Date:   Sun Nov 3 09:11:38 2024 +0100

    Do not leak implementation details in unittest

commit 66e64deecb2c3f9e4624204038ae0495a5d6f28a
Author: Elias Batek
Date:   Sun Nov 3 09:09:17 2024 +0100

    Improve unittests

commit 1b95777add501bd9ec21fcecf50be5de6fc182fb
Author: Elias Batek
Date:   Sun Nov 3 09:00:16 2024 +0100

    Fix style

commit b1e4c61440a11e4bc7481920a7ccf75065a5b5e9
Author: Elias Batek
Date:   Sun Nov 3 08:56:02 2024 +0100

    Improve unittests

commit c5aed51db374d6c4199f0ce9be1305d1b787248e
Author: Elias Batek
Date:   Sun Nov 3 08:31:57 2024 +0100

    Fix decoder regression

commit 89f4d9bf81bd4709b11e58f4caae782b5a63ff73
Author: Elias Batek
Date:   Sun Nov 3 08:21:52 2024 +0100

    Rename

commit c3a8c5263272770272e77fec30af3d2d833c41da
Author: Elias Batek
Date:   Sun Nov 3 08:11:03 2024 +0100

    Oops

commit aff5b0d8a38c33c94308618cf5aa7819a9427070
Author: Elias Batek
Date:   Sun Nov 3 08:03:32 2024 +0100

    Fix typo and wstring/dstring bug

commit dbe75e9a35b4d963ae7fc54dc69060ce0a59065a
Author: Elias Batek
Date:   Sun Nov 3 08:03:23 2024 +0100

    Improve docs

commit 9ff3ac3e43346e266e4fef51bd9d8e86f80dd48d
Author: Elias Batek
Date:   Sun Nov 3 07:50:35 2024 +0100

    Fix return type typo

commit 4b68416030f3c7782716964c276c9c99d1b08932
Author: Elias Batek
Date:   Sun Nov 3 07:49:48 2024 +0100

    Add validation

commit 3d2224478f4c20f252a409c37d755be05eb6f049
Author: Elias Batek
Date:   Sun Nov 3 07:34:21 2024 +0100

    Remove no longer necessary cast

commit a8ac073a6437dc3c7f079a9a9aa199dd6bd4e57d
Author: Elias Batek
Date:   Sun Nov 3 07:30:41 2024 +0100

    Improve docs

commit 4efb47b9b92ece256485c2d4d34c2a82133a2da3
Author: Elias Batek
Date:   Sun Nov 3 07:27:54 2024 +0100

    Cleanup API

commit d1a3fd0b466480d4f1ddddbd9f4437088a667a4b
Author: Elias Batek
Date:   Sun Nov 3 07:15:42 2024 +0100

    Add constraints

commit 5fb9097c548e5be25dcc45cfdbb7f29010143955
Author: Elias Batek
Date:   Sun Nov 3 07:05:17 2024 +0100

    Improve docs

commit 100aa5f996b088d7962891f3fd60a6e23d6c887b
Author: Elias Batek
Date:   Sun Nov 3 06:46:32 2024 +0100

    Refactor

commit 13551c1de0e54c19ec72bc0294f6956a7c787790
Author: Elias Batek
Date:   Sun Nov 3 06:37:33 2024 +0100

    Fix out-of-bounds bug

commit cca538ffef43894b607847473e56ab3af476660c
Author: Elias Batek
Date:   Sun Nov 3 06:32:52 2024 +0100

    Fix accidental conversion of faulty hex digits

commit c4a367ddbe334928d6c2ec7953ecab6bdbb6080f
Author: Elias Batek
Date:   Sun Nov 3 06:19:19 2024 +0100

    Refactor

commit 538ea2380c54e0eea08dc422766ebc3bad0bbb29
Author: Elias Batek
Date:   Sun Nov 3 06:15:21 2024 +0100

    Add changelog

commit cb1b131743a3b1f377f8740e5721eef1eda70d2d
Author: Elias Batek
Date:   Sun Nov 3 05:17:55 2024 +0100

    Add fromHexString

    Squashed commit of the following:

    commit bc159e9b44c89e68b66dfb3c54bd781229dffa46
    Author: Tynuk <bowsworddv@gmail.com>
    Date:   Sat Jan 27 12:14:52 2024 +0200

        update style

    commit 1fc719532fb83b764c95701973a5fddc98520a15
    Author: Tynuk <bowsworddv@gmail.com>
    Date:   Sat Jan 27 11:52:19 2024 +0200

        create ByteRange

    commit 27ea722f04d9b0120aff2a405935530dd0174950
    Author: Tynuk <43266276+Tynukua@users.noreply.github.com>
    Date:   Thu Aug 25 16:19:45 2022 +0300

        rm spaces

    commit 1fdf63ab4baafc1c4d6d9e957767fe64716365ef
    Author: Tynuk <43266276+Tynukua@users.noreply.github.com>
    Date:   Thu Aug 25 15:55:40 2022 +0300

        Rename

    commit 4b37b8d40d1c251b35e3c14ec64e3b15a388e158
    Author: Tynuk <43266276+Tynukua@users.noreply.github.com>
    Date:   Thu Aug 25 15:26:10 2022 +0300

        Update std/digest/package.d

    commit 712eb2504371c63bee582fb53b5d2bbae9e6f525
    Author: Tynuk <43266276+Tynukua@users.noreply.github.com>
    Date:   Thu Aug 25 15:25:51 2022 +0300

        Update std/digest/package.d

    commit 4826317a5d9d1da7ef8cd4b6df87237d8d254bff
    Author: Tynuk <43266276+Tynukua@users.noreply.github.com>
    Date:   Thu Aug 25 15:25:43 2022 +0300

        Update std/digest/package.d

    commit aedb66bd1ab8bdd1f5acc54f5f63f2c9d2b33b05
    Author: tynuk <bowsworddv@gmail.com>
    Date:   Mon Aug 8 15:15:42 2022 +0300

        add toDigest / hexToBytes

Co-authored-by: Elias Batek <desisma@heidel.beer>
2024-11-03 17:59:26 +08:00
Temtaime
97647042ca Fix hang with buffer > 4gb 2023-08-14 02:38:04 +02:00
Temtaime
f73555bf8e
Use size_t instead of uint for data indexing, because it hangs with files > 4g on x64 2023-08-06 00:56:26 +03:00
Lucian Danescu
8293310cd8 rename variables 2022-11-09 23:28:55 +02:00
Lucian Danescu
452b1def78 same name fix 2022-11-07 19:20:19 +02:00
Nick Treleaven
281f42d306
Fix missing unittests in docs (#8603)
* Fix missing staticArray unittest in docs

Found using https://github.com/dlang/dmd/pull/14527.

* Fix missing FloatRep and DoubleRep unittests in docs

* 2 JSONValue op overloads

* std.random

* detabber

* remove

* std.digest.murmurhash
2022-10-17 05:43:13 +08:00
Iain Buclaw
e341d38e97 Remove deprecated std.digest.digest module 2022-08-28 15:08:12 +02:00
Sebastian Wilzbach
63712f491c Remove redundant access specifier from Phobos 2021-10-27 10:04:23 +03:00
Iain Buclaw
2f7155042a std.digest.digest: Update deprecation comment 2021-03-19 23:55:12 +01:00
Nathan Sashihara
ffac90a201 Use core.bitop.rol instead of defining own rotateLeft 2021-03-13 03:34:00 +01:00
MoonlightSentinel
4c13507fc2 Fix DIP1000 violation in sdt.digest.hmac
References to the local buffer may not be assigned to a
parameter with longer lifetime
2021-03-13 00:09:37 +01:00
Martin Kinkelin
2bcc2375b6 Minor fixes for -preview=in and targets preferring by-ref for real
Code compiled with -preview=in is currently supposed to link
successfully against druntime/Phobos compiled without -preview=in.

There were still a few places where -preview=in makes a difference for
existing `in` params; convert them to `const [scope]`, analogous to
PR #7593.
2020-11-01 01:50:26 +01:00
Andrei Alexandrescu
f06c92f484 Temporarily disable inlining of T_SHA2_16_79 because it increases build speed by 10x.
See also https://forum.dlang.org/thread/lcgitgilixahbnzwpwfp@forum.dlang.org
2020-08-04 19:01:37 +02:00
Nathan Sashihara
9f84d4ff21 sha: bswap without intermediate conversion to byte array 2020-07-25 10:07:59 +02:00
Walter Bright
2f0ea3fded sha: inline critical functions 2020-07-22 11:53:52 +02:00
Walter Bright
ddca869335 change rotateLeft to rol, rotateRight to ror 2020-07-21 10:01:26 +02:00
Walter Bright
6ca6549f9a std.digest.sha: don't reinvent rotate functions 2020-07-15 18:39:37 +02:00
Walter Bright
8b3a082878 std.digest.sha1: don't reinvent bswap() 2020-07-15 05:21:45 +02:00
Nathan Sashihara
18f2e6f042 Fix Issue 20887 - Improve speed of std.digest.digest!(Hash, Range) on non-array ranges 2020-05-30 18:04:07 -07:00
Geod24
04f3979317 Replace 'Issue XXX' with Bugzilla links
Make the links clickable, as was done in the DMD repository.
Also avoids any ambiguity w.r.t. where the issue is stored.
2020-04-13 16:28:09 +09:00
MoonlightSentinel
10981b2aae
Remove deprecated symbols from std.digest.digest
The empty file is retained because the module was not deprecated.
2020-04-09 11:35:23 +02:00
Walter Bright
418fabe782 sha.d: assert msg cannot be scope 2020-03-20 22:52:14 -07:00
Alexandru Militaru
bb62aaca3d Replaced version (unittest) with version (StdUnittest) to avoid unnecessary overhead when compiling with -unittest 2020-01-19 14:05:17 +02:00
Atila Neves
236c2d3f93 Add scope preparing for in to become const scope 2019-10-30 17:06:13 +01:00
Nicholas Lindsay Wilson
516432d185 Fix issue 13471: can't use crc at CTFE 2019-05-23 02:40:46 -04:00
Ben Jones
349691573a factor out toHexStringCode 2019-04-12 08:23:53 -06:00
Rainer Schuetze
4cd43db1d8 SHA on Win64: use SSSE3 version by adjusting register usage 2018-12-08 15:46:12 +01:00
Iain Buclaw
fd5facfe04 posix.mak: Enforce whitespace before opening parenthesis for version conditions 2018-09-22 16:57:24 +02:00
Sebastian Wilzbach
c324714fde Remove a few cases of underscore escaping 2018-06-04 13:05:01 +02:00
Sebastian Wilzbach
de150a4215
Merge pull request #6453 from schveiguy/version_unittest_p4
More removal of version(unittest)
2018-04-15 00:02:27 +02:00
Steven Schveighoffer
d4a35f09da More removal of version(unittest) 2018-04-13 12:20:02 -04:00
Steven Schveighoffer
6a324db900 Another batch for removing version(unittest) 2018-04-12 16:27:18 -04:00
Sebastian Wilzbach
42894784dd Markdownify Phobos
$(D word) -> `word`
2018-04-02 22:32:47 +02:00
Sebastian Wilzbach
21659561ef Add more public examples to std.digest + add DScanner check 2018-03-29 23:03:37 +02:00
Sebastian Wilzbach
8f86a0d734 Fix if constraints indentation 2018-03-24 13:17:53 +01:00
Sebastian Wilzbach
d63e8edbe1 Trigger deprecation warnings for std.digest.digest 2018-03-17 11:03:04 +01:00
Jack Stouffer
663b5b9278 Revert addition of StdUnittest 2018-02-20 13:32:32 -05:00
Sebastian Wilzbach
d9830b739e Fix DScanner warnings 2018-02-10 22:46:32 +01:00
Walter Bright
f4f071cb8e fix Issue 18397 - Poor implementation of std.conf.hexString results in unintended bloat 2018-02-09 01:18:15 -08:00
Jack Stouffer
18cbb29b04 Replaced version(unittest) blocks with version(StdUnittest) 2018-02-01 19:56:59 -05:00
Joakim
311bb3b0bf Fix some comments from #5902 2018-01-30 19:36:12 +01:00
The Dlang Bot
2f25cdf076
Merge pull request #5902 from kinke/ldc_to_upstream
Upstream some LDC patches
merged-on-behalf-of: unknown
2018-01-29 19:15:07 +01:00
Martin
d5f710c57e std.digest.murmurhash: Support architectures not allowing unaligned loads 2018-01-26 20:16:46 +01:00
Sebastian Wilzbach
ec3f5e017c Replace deprecated hexstrings with std.conv.hexString
Basically `s/x"/hexString!"/`
2018-01-23 22:37:10 +01:00
Sebastian Wilzbach
2591b61b4f Start removing std.{json,zip,zlib,algorithm.mutation}
from the assert_without_msg blacklist
2017-12-01 09:28:05 +01:00
JinShil
f0372315ca Issue 12625 - [scope] [DIP1000] implicit slicing of RValue static array should be illegal 2017-11-29 19:04:45 +09:00
Jack Stouffer
8ca4bf715c
Add secureEqual to the digest booktable 2017-11-20 22:46:43 -05:00
Sebastian Wilzbach
df6365092a Replace body keyword with its replacement: do
Automatic replacement with

    sed -i "s/^\([ ]*\)body/\1do/" -i **/*.d
2017-11-20 15:33:52 +01:00
Walter Bright
73ff97b90b std.digest.package: fix slicing of temp array 2017-08-31 00:55:18 -07:00