]> Cypherpunks repositories - keks.git/log
keks.git
3 months agoAdd Magic
Sergey Matveev [Wed, 22 Jan 2025 12:07:32 +0000 (15:07 +0300)]
Add Magic

3 months agoStrip off "keks" from utilities names
Sergey Matveev [Wed, 22 Jan 2025 09:59:19 +0000 (12:59 +0300)]
Strip off "keks" from utilities names

3 months agoHKDF in gost3410-kexp15
Sergey Matveev [Wed, 22 Jan 2025 09:11:45 +0000 (12:11 +0300)]
HKDF in gost3410-kexp15

3 months agoenveloped-data
Sergey Matveev [Sat, 18 Jan 2025 14:48:43 +0000 (17:48 +0300)]
enveloped-data

3 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

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

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

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

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

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

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

3 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

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

3 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

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

3 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

3 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

3 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

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

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

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

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

4 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

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

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

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

4 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

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

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

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

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

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

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

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

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

4 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

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

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

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

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

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

4 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

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

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

4 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

4 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

4 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

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

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

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

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

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

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

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

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

4 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

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

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

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

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

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

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

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

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

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

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

4 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

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

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

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

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

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

5 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

5 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

5 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

5 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

5 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

5 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

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

5 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

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

5 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

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

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

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

5 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

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

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

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

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

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

5 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

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

5 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

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

5 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

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

5 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

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

5 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