]> Cypherpunks repositories - keks.git/log
keks.git
11 months agoFix typo in name
Sergey Matveev [Thu, 16 Jan 2025 09:32:56 +0000 (12:32 +0300)]
Fix typo in name

12 months agotextdump-tester
Sergey Matveev [Tue, 14 Jan 2025 12:03:44 +0000 (15:03 +0300)]
textdump-tester

12 months agoAdditional TAI64NA generation strategy
Sergey Matveev [Tue, 14 Jan 2025 12:33:16 +0000 (15:33 +0300)]
Additional TAI64NA generation strategy

12 months agoAdditional BLOB generation won't hurt
Sergey Matveev [Tue, 14 Jan 2025 11:42:29 +0000 (14:42 +0300)]
Additional BLOB generation won't hurt

12 months agoSlightly shorter big.Int initialisation
Sergey Matveev [Tue, 14 Jan 2025 10:20:34 +0000 (13:20 +0300)]
Slightly shorter big.Int initialisation

12 months agoDo not modify big.Int during encoding
Sergey Matveev [Tue, 14 Jan 2025 10:20:55 +0000 (13:20 +0300)]
Do not modify big.Int during encoding

12 months agoSimplify ≥0 check
Sergey Matveev [Tue, 14 Jan 2025 10:19:54 +0000 (13:19 +0300)]
Simplify ≥0 check

12 months agoAbility to skip UTC→TAI conversion during encoding
Sergey Matveev [Tue, 14 Jan 2025 08:38:11 +0000 (11:38 +0300)]
Ability to skip UTC→TAI conversion during encoding

12 months agoHonest bytewise map's key ordering
Sergey Matveev [Tue, 14 Jan 2025 08:22:38 +0000 (11:22 +0300)]
Honest bytewise map's key ordering

12 months agoAbility to skip TAI→UTC conversion
Sergey Matveev [Tue, 14 Jan 2025 08:10:22 +0000 (11:10 +0300)]
Ability to skip TAI→UTC conversion

12 months agoLess stateful BLOB decoding
Sergey Matveev [Fri, 10 Jan 2025 14:11:17 +0000 (17:11 +0300)]
Less stateful BLOB decoding

Replace NIL-prefixed BLOB's chunks encoding with ordinary BIN-encoding.
That way the whole file can be decoded by only calling atom decode
functions, without the need of keeping special inside-blob state.

12 months agoAdd missing anchors
Sergey Matveev [Fri, 10 Jan 2025 14:20:11 +0000 (17:20 +0300)]
Add missing anchors

12 months agoFix pki/cer.c workability
Sergey Matveev [Fri, 10 Jan 2025 13:26:00 +0000 (16:26 +0300)]
Fix pki/cer.c workability

12 months agoAdd optional offsets storage
Sergey Matveev [Wed, 8 Jan 2025 16:02:22 +0000 (19:02 +0300)]
Add optional offsets storage

12 months agoUnify Go and C printers output
Sergey Matveev [Fri, 27 Dec 2024 12:31:50 +0000 (15:31 +0300)]
Unify Go and C printers output

12 months agoGo implementation has fewer limitations
Sergey Matveev [Fri, 27 Dec 2024 09:14:23 +0000 (12:14 +0300)]
Go implementation has fewer limitations

12 months agoHighly optimised and revised Go's decoding/encoding
Sergey Matveev [Wed, 18 Dec 2024 14:27:43 +0000 (17:27 +0300)]
Highly optimised and revised Go's decoding/encoding

Much higher decoding performance.
Simplified encoding/decoding interfaces.
Get rid off atom/ and mapstruct/ packages.

12 months agoMinor trivial changes to documentation
Sergey Matveev [Wed, 25 Dec 2024 09:00:42 +0000 (12:00 +0300)]
Minor trivial changes to documentation

12 months agoNo need in Raw's tag separation from the body
Sergey Matveev [Wed, 18 Dec 2024 08:02:55 +0000 (11:02 +0300)]
No need in Raw's tag separation from the body

13 months agoStatic linking is good
Sergey Matveev [Mon, 16 Dec 2024 15:23:59 +0000 (18:23 +0300)]
Static linking is good

13 months agoInclude run time in totals
Sergey Matveev [Mon, 16 Dec 2024 15:23:37 +0000 (18:23 +0300)]
Include run time in totals

13 months agoExplicitly set items initial capacity
Sergey Matveev [Mon, 16 Dec 2024 15:21:42 +0000 (18:21 +0300)]
Explicitly set items initial capacity

13 months agoDecode context options
Sergey Matveev [Mon, 16 Dec 2024 13:39:26 +0000 (16:39 +0300)]
Decode context options

13 months agoAdd missing copyright information
Sergey Matveev [Mon, 16 Dec 2024 08:22:10 +0000 (11:22 +0300)]
Add missing copyright information

13 months agoGreat renaming
Sergey Matveev [Sun, 15 Dec 2024 17:57:09 +0000 (20:57 +0300)]
Great renaming

13 months agoCheck mk-fuzz-inputs output
Sergey Matveev [Sun, 15 Dec 2024 16:55:54 +0000 (19:55 +0300)]
Check mk-fuzz-inputs output

13 months agoStreaming BLOBs
Sergey Matveev [Sun, 15 Dec 2024 16:26:37 +0000 (19:26 +0300)]
Streaming BLOBs

13 months agoHexadecimal encoding is easier to read
Sergey Matveev [Sun, 15 Dec 2024 16:24:59 +0000 (19:24 +0300)]
Hexadecimal encoding is easier to read

13 months agoStreaming encoding/decoding
Sergey Matveev [Sun, 15 Dec 2024 13:30:24 +0000 (16:30 +0300)]
Streaming encoding/decoding

13 months agoCover ErrInvalid in switches
Sergey Matveev [Sun, 15 Dec 2024 10:01:05 +0000 (13:01 +0300)]
Cover ErrInvalid in switches

13 months agoLess panics
Sergey Matveev [Sun, 15 Dec 2024 09:49:56 +0000 (12:49 +0300)]
Less panics

13 months agoRemove excess expectEOC state
Sergey Matveev [Sun, 15 Dec 2024 08:58:26 +0000 (11:58 +0300)]
Remove excess expectEOC state

13 months agoUnroll loops
Sergey Matveev [Fri, 13 Dec 2024 18:04:07 +0000 (21:04 +0300)]
Unroll loops

13 months agoAdd invalid item type for zeroed memory
Sergey Matveev [Sun, 15 Dec 2024 08:32:21 +0000 (11:32 +0300)]
Add invalid item type for zeroed memory

13 months agoRemove unneeded code
Sergey Matveev [Sun, 15 Dec 2024 08:32:18 +0000 (11:32 +0300)]
Remove unneeded code

13 months agoMissing quotes
Sergey Matveev [Fri, 13 Dec 2024 17:44:55 +0000 (20:44 +0300)]
Missing quotes

13 months agoRemove excess "pki" prefix from the namespace
Sergey Matveev [Thu, 12 Dec 2024 18:07:29 +0000 (21:07 +0300)]
Remove excess "pki" prefix from the namespace

13 months agoLeave -algo default value for convenience
Sergey Matveev [Thu, 12 Dec 2024 17:59:48 +0000 (20:59 +0300)]
Leave -algo default value for convenience

13 months agoMake clean scripts source directory agnostic
Sergey Matveev [Thu, 12 Dec 2024 14:19:51 +0000 (17:19 +0300)]
Make clean scripts source directory agnostic

13 months agoMissing clean call
Sergey Matveev [Thu, 12 Dec 2024 13:29:14 +0000 (16:29 +0300)]
Missing clean call

13 months agoMissing break
Sergey Matveev [Thu, 12 Dec 2024 13:25:21 +0000 (16:25 +0300)]
Missing break

13 months agoRefactor and reorganise yacpki
Sergey Matveev [Thu, 12 Dec 2024 13:00:58 +0000 (16:00 +0300)]
Refactor and reorganise yacpki

Mainly move cryptography-related code outside.

13 months agoPrettier panic output
Sergey Matveev [Thu, 12 Dec 2024 09:55:40 +0000 (12:55 +0300)]
Prettier panic output

13 months agoNon exportable const
Sergey Matveev [Thu, 12 Dec 2024 09:55:28 +0000 (12:55 +0300)]
Non exportable const

13 months agoProperly regrouped imports
Sergey Matveev [Thu, 12 Dec 2024 10:14:16 +0000 (13:14 +0300)]
Properly regrouped imports

13 months agoMore docstrings
Sergey Matveev [Thu, 12 Dec 2024 09:55:15 +0000 (12:55 +0300)]
More docstrings

13 months agoLess pointers
Sergey Matveev [Thu, 12 Dec 2024 09:40:33 +0000 (12:40 +0300)]
Less pointers

Item, Raw, Blob are rather small structures, so an additional pointer
may hurt performance.

13 months agoLeave less junk after creating testdata
Sergey Matveev [Thu, 12 Dec 2024 09:35:37 +0000 (12:35 +0300)]
Leave less junk after creating testdata

13 months agoBig code reorganisation
Sergey Matveev [Wed, 11 Dec 2024 15:46:04 +0000 (18:46 +0300)]
Big code reorganisation

Much more clearer separated types.

13 months agoFuzz program for cyac
Sergey Matveev [Wed, 11 Dec 2024 13:51:04 +0000 (16:51 +0300)]
Fuzz program for cyac

13 months agoConsider possible tail existence
Sergey Matveev [Wed, 11 Dec 2024 13:41:13 +0000 (16:41 +0300)]
Consider possible tail existence

13 months agoWider code fuzz coverage
Sergey Matveev [Wed, 11 Dec 2024 13:27:17 +0000 (16:27 +0300)]
Wider code fuzz coverage

13 months agoFix an endless cycle
Sergey Matveev [Wed, 11 Dec 2024 13:26:39 +0000 (16:26 +0300)]
Fix an endless cycle

13 months agoFix reflected value type
Sergey Matveev [Wed, 11 Dec 2024 13:09:37 +0000 (16:09 +0300)]
Fix reflected value type

13 months agoCombine single error
Sergey Matveev [Wed, 11 Dec 2024 13:00:58 +0000 (16:00 +0300)]
Combine single error

13 months agoSimpler encode API
Sergey Matveev [Wed, 11 Dec 2024 12:59:21 +0000 (15:59 +0300)]
Simpler encode API

13 months agoDo not allow lonely EOC
Sergey Matveev [Wed, 11 Dec 2024 12:50:58 +0000 (15:50 +0300)]
Do not allow lonely EOC

13 months agoMissing buffer size check
Sergey Matveev [Wed, 11 Dec 2024 11:43:34 +0000 (14:43 +0300)]
Missing buffer size check

Found immediately by fuzz test.

13 months agoKeep test-related code in tests
Sergey Matveev [Wed, 11 Dec 2024 11:15:17 +0000 (14:15 +0300)]
Keep test-related code in tests

13 months agoHasher field must be publicly accessible
Sergey Matveev [Mon, 9 Dec 2024 12:28:13 +0000 (15:28 +0300)]
Hasher field must be publicly accessible

So external library users can use its GOSTSigner.

13 months agoProtection from recursion DoS
Sergey Matveev [Thu, 5 Dec 2024 12:12:57 +0000 (15:12 +0300)]
Protection from recursion DoS

13 months agoYet another tiny optimisation
Sergey Matveev [Thu, 5 Dec 2024 10:43:41 +0000 (13:43 +0300)]
Yet another tiny optimisation

13 months agoFuzzing related scripts
Sergey Matveev [Thu, 5 Dec 2024 09:57:38 +0000 (12:57 +0300)]
Fuzzing related scripts

13 months agoTrivial tiny performance optimisations
Sergey Matveev [Thu, 5 Dec 2024 09:56:37 +0000 (12:56 +0300)]
Trivial tiny performance optimisations

13 months agoAbility to set leapsecUTCAllow from CLI
Sergey Matveev [Thu, 5 Dec 2024 09:39:00 +0000 (12:39 +0300)]
Ability to set leapsecUTCAllow from CLI

13 months agoPrevent uncaught recursion limits during decoding
Sergey Matveev [Wed, 4 Dec 2024 16:14:46 +0000 (19:14 +0300)]
Prevent uncaught recursion limits during decoding

13 months agoCheck that leapsecUTCAllow is propagated everywhere
Sergey Matveev [Wed, 4 Dec 2024 16:02:44 +0000 (19:02 +0300)]
Check that leapsecUTCAllow is propagated everywhere

13 months agoSimpler and more robust datetime overflow check
Sergey Matveev [Wed, 4 Dec 2024 13:17:07 +0000 (16:17 +0300)]
Simpler and more robust datetime overflow check

13 months agoMonocypher-based cyac ed25519-blake2b cer-verify
Sergey Matveev [Wed, 4 Dec 2024 12:26:23 +0000 (15:26 +0300)]
Monocypher-based cyac ed25519-blake2b cer-verify

13 months agoAdd various suggested hash algorithms and Ed25519-BLAKE2b scheme
Sergey Matveev [Sat, 30 Nov 2024 14:54:44 +0000 (17:54 +0300)]
Add various suggested hash algorithms and Ed25519-BLAKE2b scheme

13 months agoFix terminology
Sergey Matveev [Tue, 3 Dec 2024 10:17:50 +0000 (13:17 +0300)]
Fix terminology

There is no general view on how to count the bit indexes.
Usually people use most/least significant bit terminology.

13 months agoDummy test for Raw-encoding coverage
Sergey Matveev [Mon, 2 Dec 2024 16:00:37 +0000 (19:00 +0300)]
Dummy test for Raw-encoding coverage

13 months agoMore set-related coverage
Sergey Matveev [Mon, 2 Dec 2024 16:00:16 +0000 (19:00 +0300)]
More set-related coverage

13 months agoPure hex (non escaped) encoding is easier to read and more compact
Sergey Matveev [Sun, 1 Dec 2024 10:02:06 +0000 (13:02 +0300)]
Pure hex (non escaped) encoding is easier to read and more compact

13 months agoMissing invalid UTF-8 strategies
Sergey Matveev [Sun, 1 Dec 2024 09:17:50 +0000 (12:17 +0300)]
Missing invalid UTF-8 strategies

13 months agoAnother compare optimisation
Sergey Matveev [Sat, 30 Nov 2024 22:29:00 +0000 (01:29 +0300)]
Another compare optimisation

Instead of always checking of the length, do it only when error happens.

13 months agoAdd pyac-related tests
Sergey Matveev [Sat, 30 Nov 2024 20:10:32 +0000 (23:10 +0300)]
Add pyac-related tests

13 months agoNote what exact version hypothesis was used
Sergey Matveev [Sat, 30 Nov 2024 20:10:18 +0000 (23:10 +0300)]
Note what exact version hypothesis was used

13 months agoAdd copyright information
Sergey Matveev [Sat, 30 Nov 2024 20:08:11 +0000 (23:08 +0300)]
Add copyright information

13 months agoUnify returned NotEnoughData sizes
Sergey Matveev [Sat, 30 Nov 2024 20:02:05 +0000 (23:02 +0300)]
Unify returned NotEnoughData sizes

NotEnoughData.n is decided to show how many *more* bytes we require,
not how many bytes at least at all is needed.

13 months agoAdd missing known TAI64 values
Sergey Matveev [Sat, 30 Nov 2024 19:37:13 +0000 (22:37 +0300)]
Add missing known TAI64 values

13 months agoSlight optimisation, reduce calls to .keys()
Sergey Matveev [Sat, 30 Nov 2024 19:26:04 +0000 (22:26 +0300)]
Slight optimisation, reduce calls to .keys()

13 months agoFix grammar
Sergey Matveev [Sat, 30 Nov 2024 19:23:55 +0000 (22:23 +0300)]
Fix grammar

Key can not "contain" the string, but key can be the string.

13 months agoSplit TAI-related tests for each separate type
Sergey Matveev [Sat, 30 Nov 2024 19:23:35 +0000 (22:23 +0300)]
Split TAI-related tests for each separate type

13 months agoMissing non-minimal TAI64 testing
Sergey Matveev [Sat, 30 Nov 2024 19:02:51 +0000 (22:02 +0300)]
Missing non-minimal TAI64 testing

13 months agoReplace hard-coded tests with symmetric ones
Sergey Matveev [Sat, 30 Nov 2024 18:58:02 +0000 (21:58 +0300)]
Replace hard-coded tests with symmetric ones

13 months agoSplit long lines
Sergey Matveev [Sat, 30 Nov 2024 18:46:13 +0000 (21:46 +0300)]
Split long lines

13 months agoWe can easily check exact Raw's value
Sergey Matveev [Sat, 30 Nov 2024 18:44:11 +0000 (21:44 +0300)]
We can easily check exact Raw's value

13 months agoMove Leapsec-related tests outside common ones
Sergey Matveev [Sat, 30 Nov 2024 18:42:29 +0000 (21:42 +0300)]
Move Leapsec-related tests outside common ones

Because they are not directly involved in TAI-testing, but the
correctness of our database.

13 months agoExplicitly check that length sorting works
Sergey Matveev [Sat, 30 Nov 2024 18:37:13 +0000 (21:37 +0300)]
Explicitly check that length sorting works

13 months agoCombine encode/decode tests
Sergey Matveev [Sat, 30 Nov 2024 18:35:15 +0000 (21:35 +0300)]
Combine encode/decode tests

Because output data of the encode test is the input for the decode one.
Actually tests separation could be useful to determine where we are
failing, but verbose assertEqual failed message will show exactly where
we failed (either during encode or decode).

13 months agoMove everything-strategy as it will be used
Sergey Matveev [Sat, 30 Nov 2024 18:34:54 +0000 (21:34 +0300)]
Move everything-strategy as it will be used

13 months agoRename test for clearness
Sergey Matveev [Sat, 30 Nov 2024 18:24:43 +0000 (21:24 +0300)]
Rename test for clearness

13 months agoMore symmetric tests
Sergey Matveev [Sat, 30 Nov 2024 18:24:02 +0000 (21:24 +0300)]
More symmetric tests

13 months agoSplit long strings tests
Sergey Matveev [Sat, 30 Nov 2024 18:15:37 +0000 (21:15 +0300)]
Split long strings tests

13 months agoSplit strings testing
Sergey Matveev [Sat, 30 Nov 2024 18:01:35 +0000 (21:01 +0300)]
Split strings testing

Binary and Unicode strings are two distinct data types.
However, of course, sharing big amount of code.

13 months agoSingle-test cases can omit test name
Sergey Matveev [Sat, 30 Nov 2024 18:01:13 +0000 (21:01 +0300)]
Single-test cases can omit test name

13 months agoSplit int-related combined tests
Sergey Matveev [Sat, 30 Nov 2024 17:49:23 +0000 (20:49 +0300)]
Split int-related combined tests

13 months agoUnacceptable string representations
Sergey Matveev [Sat, 30 Nov 2024 17:35:22 +0000 (20:35 +0300)]
Unacceptable string representations

Human can read either some of ASCII, some of Unicode, hexadecimal, but
not escaped data. Hexadecimal data clearly does not seem to be close to
Raw's argument encoding. That was definitely just copy-pasted, but
should be manually crafted as a desired and expected data.

13 months agoUnify case in hexadecimal strings
Sergey Matveev [Sat, 30 Nov 2024 17:28:54 +0000 (20:28 +0300)]
Unify case in hexadecimal strings