Commit graph

207 commits

Author SHA1 Message Date
Turiiya
f77bb32044
all: fix typos (#21089) 2024-03-25 12:18:27 +02:00
Kim Shrier
09f3ac1413
crypto.blake3: fix typo on Digest comment (#20991) 2024-03-11 07:03:33 +02:00
blackshirt
1d80cb9157
sha256,sha512: fix behavioral bug in .checksum (#20884) 2024-02-22 10:30:45 +02:00
Turiiya
d485cceee8
doc: update trim_doc_node_description, make module readmes more uniform (#20792) 2024-02-12 12:38:47 +02:00
kbkpbot
88e413ca5b
crypto.aes: optimise performance (#20674) 2024-01-27 21:38:34 +02:00
Anton
763f94388b
all: update copyright year (#20334) 2024-01-01 23:29:54 +02:00
Kim Shrier
110e9f1ef5
crypto: add blake3 hash (#20319) 2024-01-01 13:17:11 +02:00
Delyan Angelov
30d6f7b294
crypto: fix notices/errors for v -N test vlib/crypto 2023-12-25 20:00:35 +02:00
Kim Shrier
062cc3f59f
crypto.blake2b: fix erroneous comment in unit tests (#20235) 2023-12-21 11:25:27 +02:00
Kim Shrier
e6a30dc4ef
crypto: add blake2s and blake2b hashes (#20149) 2023-12-11 12:40:07 +02:00
Alexander Medvednikov
f09826e928 all: unwrap const() blocks 2023-11-25 10:02:51 +03:00
Kim Shrier
cc220e60a5
vlib: change byte to u8 (#19930) 2023-11-19 04:23:32 +03:00
Joe C
757929392e
all: update attributes to use new syntax 2023-11-15 16:16:01 +11:00
shove
880ce7a33f
crypto: eliminate deprecating notifications from internal calls to checksum() (#19707) 2023-10-30 14:54:52 +02:00
shove
395b55f0cf
crypto.md5: fix calculating the same hash values, when .sum() is called several times (#19703) 2023-10-30 09:30:34 +02:00
shove
ac40981bcc
crypto.sha: fix calculating the same hash values when .sum() is called several times for sha1/256/512 (fix #19696) (#19697) 2023-10-30 03:25:54 +02:00
yuyi
7681a0b46d
checker: check error of implementing other module private interface (fix #19620) (#19688) 2023-10-29 14:20:16 +02:00
Turiiya
9051ac8921
all: fix typos (#19634) 2023-10-23 21:21:15 +03:00
Turiiya
6437d82ee1
checker: warn about byte deprecation, when used as a fn parameter (#19629) 2023-10-23 20:54:28 +03:00
sibkod
25777bde4e
crypto.bcrypt: fix bcrypt failure for valid pass and hash (fix #19558) (#19569) 2023-10-16 14:12:57 +03:00
zakuro
1efdb88c55
crypto: fix blowfish (#19567) 2023-10-15 04:43:35 +03:00
Subhomoy Haldar
b0fb9fb7ed
crypto.md5: change the Digest.write return type, from ?int to !int (#19311)
Co-authored-by: Subhomoy Haldar <shaldar@componentsense.com>
2023-09-09 13:34:47 +03:00
Delyan Angelov
f4c2ecfaa9
crypto.sha512: make the new384/0, new512_256/0, new512_224/0 functions public 2023-08-01 06:55:41 +03:00
phoebe
d66b097ddc
crypto.pem: add decode_only and general improvements to decoding (#18908) 2023-07-20 02:34:08 +03:00
phoebe
a49b8f28b1
math.big: rework function naming and documentation (#18890) 2023-07-20 02:33:07 +03:00
phoebe
6dcf122172
crypto.pem: add a static method Block.new, to replace new (#18846) 2023-07-18 08:02:30 +03:00
Turiiya
9c5aeb62b2
checker: disallow import names and import aliases, shadowing the module name (#18431) 2023-06-17 16:39:10 +03:00
Ikko Eltociear Ashimine
7838ef366a
crypto.pem: fix typo in decode.v (#17896)
seperator -> separator
2023-04-06 12:12:45 +03:00
Alexander Medvednikov
6756d28595 all: 2023 copyright 2023-03-28 22:55:57 +02:00
yuyi
95a9f0e29b
ast, parser, fmt: fix fmt error of infix expr with comments (fix #17560) (#17583) 2023-03-12 01:07:13 +02:00
yuyi
b42a3f43a5
crypto, math: change option to result (#17580) 2023-03-10 10:31:05 +02:00
yuyi
17000ef7b6
checker: check option fn returning error (fix #17423) (#17438) 2023-03-02 15:49:50 +02:00
Ahmad Yasser
cad2cd5583
docs: fix typos using codespell (#17332) 2023-02-16 11:43:39 +02:00
MatejMagat305
25f1b713aa
crypto.pem: add Block.free() method (#17045) 2023-01-20 10:49:45 +02:00
phoebe
fed6524803
vlib: add a crypto.pem module (#17034) 2023-01-19 17:01:11 +02:00
MatejMagat305
6bf6a40e0c
crypto: add .free() and .reset() methods to reduce memory leaks with -autofree (#16992)
* Fix unsafe pointer

I was compile vab with '-prod' and it was needed  to fix and it is of course warning

* Add files via upload

* reduce memory  leak s sha512

* add method .free() and .reset() for some
2023-01-16 17:30:40 +02:00
MatejMagat305
92fd12c18a
crypto.sha256: add .free() and .reset() methods to reduce memory leaks with -autofree (#16991) 2023-01-16 13:23:46 +02:00
mfont
1e401d1433
bcrypt: fix issue #16769 security problem in compare_hash_and_password (#16815) 2022-12-31 17:18:43 +02:00
yuyi
ef5be22f81
all: replace generic <> with [] - part 2 (#16536) 2022-11-26 18:23:26 +02:00
yuyi
017ace6ea7
vfmt: change all '$expr' to '${expr}' (#16428) 2022-11-15 16:53:13 +03:00
yuyi
993e21e85b
checker: check fntype mismatch of struct field init (fix #16372) (#16381) 2022-11-10 20:19:19 +02:00
Swastik Baranwal
ca484430e0
checker: check int overflow for const vars (#16332) 2022-11-06 08:22:28 +03:00
Delyan Angelov
b52b8429d4
vfmt: implement support for // vfmt off and // vfmt on, with it, v fmt -w . now works. (#16335) 2022-11-05 09:08:01 +03:00
Alexander Medvednikov
c6158e4519 all: remove unnecessary IError() casts 2022-10-28 19:08:30 +03:00
yuyi
51f4d99399
all: change optional to result in most of the libraries (#16123) 2022-10-20 22:14:33 +03:00
yuyi
5e8f9b11c9
checker: check casting voidptr to generic struct (fix #15618) (#15626) 2022-09-01 09:22:37 +03:00
John
d41b2be3a7
crypt: implement crypto.rand.read/1 for OpenBSD and FreeBSD (#15437) 2022-08-17 07:41:27 +03:00
Hitalo de Jesus do Rosário Souza
1f3be99859
crypto: add an example of how to verify jwt tokens (#15198) 2022-07-24 10:27:21 +03:00
Hitalo de Jesus do Rosário Souza
c481b80ec3
docs: add a jwt example to vlib/crypto/README.md (#14872) 2022-06-29 11:57:05 +03:00
Delyan Angelov
fc64f09f0b
crypto.md5: improve performance of md5.blockblock_generic 2022-05-30 21:56:39 +03:00