]> Cypherpunks repositories - keks.git/log
keks.git
10 months agoMove KEKSAtom definition to apropriate header
Sergey Matveev [Thu, 16 Jan 2025 12:55:24 +0000 (15:55 +0300)]
Move KEKSAtom definition to apropriate header

10 months agoRemove unused variable
Sergey Matveev [Thu, 16 Jan 2025 11:34:41 +0000 (14:34 +0300)]
Remove unused variable

10 months agoRename to shorter understandable names
Sergey Matveev [Thu, 16 Jan 2025 08:05:30 +0000 (11:05 +0300)]
Rename to shorter understandable names

10 months agoFix item names
Sergey Matveev [Thu, 16 Jan 2025 08:07:46 +0000 (11:07 +0300)]
Fix item names

10 months agoFix typo in name
Sergey Matveev [Thu, 16 Jan 2025 09:32:56 +0000 (12:32 +0300)]
Fix typo in name

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

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

10 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

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

10 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

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

10 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

10 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

10 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

10 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.

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

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

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

11 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

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

11 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.

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

11 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

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

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

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

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

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

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

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

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

11 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

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

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

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

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

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

11 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

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

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

11 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

11 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

11 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

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

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

11 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.

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

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

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

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

11 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.

11 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

11 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.

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

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

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

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

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

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

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

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

11 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.

11 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

11 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.

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

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

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

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

11 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

11 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

11 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

11 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

11 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

11 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

11 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.

11 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

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

11 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

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

11 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.

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

11 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

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

11 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.

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

11 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()

11 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.

11 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

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

11 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

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

11 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

11 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.

11 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

11 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).

11 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

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

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

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

11 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.