1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00
Commit Graph

164 Commits

Author SHA1 Message Date
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
Daniel Däschle
d679146a80
fmt: remove space in front of ? and ! (#14366) 2022-05-13 06:56:21 +03:00
stackotter
563469ed9f
vfmt: fix array_init line wrapping (#14154) 2022-04-25 08:11:44 +03:00
Delyan Angelov
375361b787
ci: fix ./v check-md -hide-warnings . 2022-04-15 21:08:09 +03:00
Delyan Angelov
840f474fb5
ci: fix ./v -progress test-cleancode 2022-04-15 21:04:10 +03:00
Delyan Angelov
868d3e1008
ci: fix failing tests for mysql, crypto.rc4, strings 2022-04-15 20:51:04 +03:00
Alexander Medvednikov
78cb6e2b41 all: handle fixed []u8 2022-04-15 18:35:56 +03:00
Alexander Medvednikov
fb192d949b all: replace []byte with []u8 2022-04-15 15:35:35 +03:00
Alexander Medvednikov
d4a0d6f73c all: byte => u8 2022-04-15 14:58:56 +03:00
Delyan Angelov
c3ee4fb2a2
crypto: make public all Digest.checksum() methods 2022-04-15 09:02:42 +03:00
Delyan Angelov
8788512c4d
checker: make using err.msg and err.code produce an *actual* notice, even with the present compatibility hack (will be *removed* in 2022-06-01) 2022-04-12 14:56:02 +03:00
Nick Treleaven
7231a3f135
vlib: add mut for the first parameter of builtin.copy, arrays.copy and crypto (#13702) 2022-03-09 20:26:00 +02:00
Alexander Medvednikov
36ec47cd20 all: replace "NB:" with "Note:" (docs/comments) 2022-03-06 20:01:22 +03:00
Larpon
73f931b52e
fmt: improve single line const comment placement (#13595) 2022-02-25 14:46:12 +02:00
Bastian Buck
fa645516c3
crypto: implement Output Feedback (OFB) Mode for AES and DES (#13583) 2022-02-24 14:38:21 +02:00
Bastian Buck
0d07a64230
crypto: implement Counter (CTR) Mode for AES and DES (#13582) 2022-02-24 12:06:33 +02:00
Subhomoy Haldar
114a341f5f
rand: simplify rand.PRNG, move to optional types for error handling (#13570) 2022-02-23 12:36:14 +02:00
Bastian Buck
5c0b7b0d05
crypto: implement Cipher Feedback (CFB) Mode for AES and DES (#13566) 2022-02-23 11:55:16 +03:00
blackshirt
54b10e99a1
ed25519: make public ed25519.internal.edwars25519.Element (#13488) 2022-02-16 22:56:14 +02:00
blackshirt
3ac4155f0c
crypto: add an ed25519 digital signature module (#13476) 2022-02-15 21:28:14 +02:00
Delyan Angelov
ff34b79d39
crypto: implement rand.bytes(needed_bytes int) ?[]byte, use it consistently instead of the old rand.read(), which will change to be compatible with io and the pseudo random rand module 2022-02-15 18:39:33 +02:00
blackshirt
57e850e932
crypto.sha512, crypto.sha256 : Make public the write() and sum() methods (#13461) 2022-02-14 00:10:50 +02:00
Tim Basel
9d0a5942ac
builtin: change IError msg and code to methods + fix vlib, add a deprecation notice for the old usages (#13041) 2022-02-11 15:52:33 +02:00
688862
83e9585d06
crypto: crypto.aes CBC mode moves to crypto.cipher (#13084) 2022-01-08 17:08:46 +02:00
688862
2b42ea9883
crypto: add a crypto.des module (#13065) 2022-01-07 13:51:37 +02:00
jeffmikels
6e6d51a1c9
docs: add more documentation to each of the modules in vlib (#13043) 2022-01-07 13:28:50 +02:00
jeffmikels
a60b381d5e
docs: adding skeleton README.md files for all vlib modules (#13034) 2022-01-05 18:06:08 +02:00
Alexander Medvednikov
59ed4be49a all: update copyright year 2022-01-04 12:21:12 +03:00
Taillook
4b21d3e364
crypto.sha256: add missing documentation of sum (#12716) 2021-12-04 20:16:44 +02:00
Taillook
f86710dcc7
crypto.bcrypt: add doc comments for public bcrypt functions (#12622) 2021-11-30 19:41:59 +02:00
Taillook
bbc47562b3
crypto.blowfish: add doc comments for the public API (#12609) 2021-11-29 22:19:52 +02:00
Delyan Angelov
6d97b0a407
checker: improve checking of a << b, when a and b are numbers (#12589) 2021-11-29 03:48:49 +03:00
Delyan Angelov
31fe02de8c
builtin,crypto: fix problems detected by -fsanitize=address,undefined and -fsanitize=memory 2021-11-28 20:35:18 +02:00
Delyan Angelov
dc610a9a80
ci,crypto: fix -cstrict compilation 2021-11-28 15:30:13 +02:00
Taillook
783aba4552
vlib/crypto/bcrypt: Add bcrypt (#12595) 2021-11-28 12:40:50 +02:00
yuyi
108a01d65f
fmt: fix unnecessary line break in array init (fix #11448) (#11562) 2021-09-21 16:20:09 +03:00
Enzo
e3b65092d6
parser: deprecate size_t (#11443) 2021-09-08 13:09:32 +03:00
Uwe Krüger
60c880a0cc
vlib: use malloc_noscan() where possible (#10465) 2021-06-15 14:47:11 +03:00
Delyan Angelov
d8d6e9b901
ci: run vfmt over sha256_test.v 2021-05-08 17:38:05 +03:00
Delyan Angelov
8a380f4699
tools: make v test-cleancode test everything by default (#10050) 2021-05-08 13:32:29 +03:00
Leigh McCulloch
cba2cb6b9c
crypto/sha256: make digest sum public (#10047) 2021-05-08 13:14:37 +03:00
Atakan Yenel
70b189d751
crypto: add custom errors to crypto lib (#9522) 2021-03-30 15:27:57 +03:00
Delyan Angelov
0547a0a9cd
ci: comment the dump(fixed_array) call in crypto_rand_read_test.v 2021-03-16 12:04:50 +02:00
Delyan Angelov
c09e85fa90
crypto.rand: add a test for rand.read/1 2021-03-16 11:37:05 +02:00