]> Cypherpunks repositories - keks.git/log
keks.git
6 months agoSplit long strings
Sergey Matveev [Sat, 30 Nov 2024 16:21:28 +0000 (19:21 +0300)]
Split long strings

6 months agoLet's use shorter variable name
Sergey Matveev [Sat, 30 Nov 2024 16:19:16 +0000 (19:19 +0300)]
Let's use shorter variable name

I have nothing against "remaining", except for its length.
And "tail" term is used in pyac.py already.

6 months agoCollapse unnecessary multiline
Sergey Matveev [Sat, 30 Nov 2024 16:10:49 +0000 (19:10 +0300)]
Collapse unnecessary multiline

6 months agoReduce junk volume
Sergey Matveev [Sat, 30 Nov 2024 16:09:10 +0000 (19:09 +0300)]
Reduce junk volume

Just to reduce testing time. Anyway even several bytes of added data is
enough for testing purposes.

6 months agoAdd commonly used junk-generation strategy
Sergey Matveev [Sat, 30 Nov 2024 16:15:18 +0000 (19:15 +0300)]
Add commonly used junk-generation strategy

6 months agoLimit lists-strategy
Sergey Matveev [Sat, 30 Nov 2024 16:14:27 +0000 (19:14 +0300)]
Limit lists-strategy

6 months agoDRY: move commonly used strategies to single module
Sergey Matveev [Sat, 30 Nov 2024 15:57:52 +0000 (18:57 +0300)]
DRY: move commonly used strategies to single module

6 months agoTest does not accept any arguments
Sergey Matveev [Sat, 30 Nov 2024 16:00:47 +0000 (19:00 +0300)]
Test does not accept any arguments

6 months agoRemove unused imports
Sergey Matveev [Sat, 30 Nov 2024 15:46:31 +0000 (18:46 +0300)]
Remove unused imports

6 months agoUnify import-s grouping
Sergey Matveev [Sat, 30 Nov 2024 15:42:49 +0000 (18:42 +0300)]
Unify import-s grouping

As PEP8 (https://peps.python.org/pep-0008/) says, imports must be
grouped the following way: standard libraries, related third-party,
local application ones. "typing" is native library (since some modern
version), not third-party one.

Also, it is not explicitly noted anywhere, but imports are sorted with
ignored character case.

6 months agoRemove __main__ entrypoints from tests
Sergey Matveev [Sat, 30 Nov 2024 15:39:30 +0000 (18:39 +0300)]
Remove __main__ entrypoints from tests

Tests can easily be run directly by: python -m unittest python-path, so
those __main__ are not helpful at all.

6 months agoImport only necessary single TestCase, not the whole module
Sergey Matveev [Sat, 30 Nov 2024 15:38:33 +0000 (18:38 +0300)]
Import only necessary single TestCase, not the whole module

6 months agoUnify quotes usage
Sergey Matveev [Sat, 30 Nov 2024 15:35:49 +0000 (18:35 +0300)]
Unify quotes usage

6 months agoRemove redundant prefix from the name
Sergey Matveev [Sat, 30 Nov 2024 15:34:12 +0000 (18:34 +0300)]
Remove redundant prefix from the name

pyac_tests/ directory is located inside pyac/ already,
so "pyac_" prefix is not helpful.

6 months agoRemove ignore of the files that should not be generated
Sergey Matveev [Sat, 30 Nov 2024 15:31:22 +0000 (18:31 +0300)]
Remove ignore of the files that should not be generated

Although pyac is Python project and it is reasonable to include .pyc,
__pycache__ ignores, but I am confident, that an adequate Python setup
must not generate them at all. They are more than useless and must be
globally disabled on the system (PYTHONDONTWRITEBYTECODE=1), so should
not appear at all. Even if they are created, user should ignore them
globally in its own global .gitignore, rather in each Python-related
project.

6 months agoRemove personal tool preference ignore
Sergey Matveev [Sat, 30 Nov 2024 15:29:02 +0000 (18:29 +0300)]
Remove personal tool preference ignore

Project does not depend on VSCode in anyway. It is own preference of
what editors/tools to use. Should not be committed.

6 months agoMake a proper text file
Sergey Matveev [Sat, 30 Nov 2024 15:28:37 +0000 (18:28 +0300)]
Make a proper text file

6 months agoAdd tests
RudenkoAD [Fri, 15 Nov 2024 18:46:53 +0000 (21:46 +0300)]
Add tests

7 months agoBetter TAI-related testing
Sergey Matveev [Fri, 22 Nov 2024 15:19:44 +0000 (18:19 +0300)]
Better TAI-related testing

7 months agoFix awful typo error
Sergey Matveev [Thu, 21 Nov 2024 20:29:13 +0000 (23:29 +0300)]
Fix awful typo error

7 months agoHuman-convenient arguments
Sergey Matveev [Thu, 21 Nov 2024 12:38:11 +0000 (15:38 +0300)]
Human-convenient arguments

7 months agoIgnore some noisy warnings
Sergey Matveev [Thu, 21 Nov 2024 12:36:29 +0000 (15:36 +0300)]
Ignore some noisy warnings

7 months agoUnnecessary separator
Sergey Matveev [Thu, 21 Nov 2024 10:32:02 +0000 (13:32 +0300)]
Unnecessary separator

7 months agoRevised and corrected work with TAI64
Sergey Matveev [Thu, 21 Nov 2024 10:25:37 +0000 (13:25 +0300)]
Revised and corrected work with TAI64

7 months agoFixed TAI64N[A] *seconds validation
Sergey Matveev [Thu, 21 Nov 2024 09:03:28 +0000 (12:03 +0300)]
Fixed TAI64N[A] *seconds validation

7 months agoUse updated fixed tai64n library
Sergey Matveev [Thu, 21 Nov 2024 08:44:17 +0000 (11:44 +0300)]
Use updated fixed tai64n library

7 months agoRaise copyright years
Sergey Matveev [Thu, 21 Nov 2024 08:30:17 +0000 (11:30 +0300)]
Raise copyright years

7 months agoZero nsecs is ok for TAI64NA
Sergey Matveev [Thu, 21 Nov 2024 08:25:34 +0000 (11:25 +0300)]
Zero nsecs is ok for TAI64NA

7 months agoAssure that minimally encoded TAI64s are used
Sergey Matveev [Wed, 20 Nov 2024 21:25:26 +0000 (00:25 +0300)]
Assure that minimally encoded TAI64s are used

7 months agoTrivial optimisations
Sergey Matveev [Wed, 20 Nov 2024 14:10:00 +0000 (17:10 +0300)]
Trivial optimisations

7 months agomain() can accept void
Sergey Matveev [Wed, 20 Nov 2024 14:03:06 +0000 (17:03 +0300)]
main() can accept void

7 months agoRevised and corrected work with TAI64
Sergey Matveev [Wed, 20 Nov 2024 14:02:25 +0000 (17:02 +0300)]
Revised and corrected work with TAI64

7 months agoMove external-TAI64 specific constant out
Sergey Matveev [Wed, 20 Nov 2024 13:51:04 +0000 (16:51 +0300)]
Move external-TAI64 specific constant out

7 months agoExample leapsec border example
Sergey Matveev [Wed, 20 Nov 2024 13:13:08 +0000 (16:13 +0300)]
Example leapsec border example

7 months agoPlace function before intended call to it
Sergey Matveev [Wed, 20 Nov 2024 13:10:31 +0000 (16:10 +0300)]
Place function before intended call to it

7 months agoFixed typoed variable
Sergey Matveev [Wed, 20 Nov 2024 13:09:37 +0000 (16:09 +0300)]
Fixed typoed variable

7 months agoRevised and corrected work with TAI64
Sergey Matveev [Wed, 20 Nov 2024 12:39:34 +0000 (15:39 +0300)]
Revised and corrected work with TAI64

7 months agoFix condition
Sergey Matveev [Wed, 20 Nov 2024 12:38:20 +0000 (15:38 +0300)]
Fix condition

1<<63 value is also reserved (not allowed) one.

7 months agoDo not construct constant objects every time function is called
Sergey Matveev [Wed, 20 Nov 2024 12:37:42 +0000 (15:37 +0300)]
Do not construct constant objects every time function is called

7 months agoTAI64 is actually called external
Sergey Matveev [Wed, 20 Nov 2024 11:15:19 +0000 (14:15 +0300)]
TAI64 is actually called external

7 months agoMore PEP8 conformance
Sergey Matveev [Wed, 20 Nov 2024 12:40:16 +0000 (15:40 +0300)]
More PEP8 conformance

7 months agoNote that this is not a duplicate line
Sergey Matveev [Wed, 20 Nov 2024 11:12:02 +0000 (14:12 +0300)]
Note that this is not a duplicate line

7 months agoset encoding support
Sergey Matveev [Fri, 15 Nov 2024 13:05:23 +0000 (16:05 +0300)]
set encoding support

7 months agoCommand-line pretty-printer
Sergey Matveev [Wed, 13 Nov 2024 13:59:33 +0000 (16:59 +0300)]
Command-line pretty-printer

7 months agoSimplify pyac
Sergey Matveev [Wed, 13 Nov 2024 12:54:36 +0000 (15:54 +0300)]
Simplify pyac

Current classes are just useless. Initially it was probably expected to
use pyac as a generic tool for examining YAC data, like PyDERASN, that
keeps various offsets and lengths. But I doubt it would be used that way.

7 months agoSlightly reduced code
Sergey Matveev [Wed, 13 Nov 2024 11:07:03 +0000 (14:07 +0300)]
Slightly reduced code

7 months agoMore marketing
Sergey Matveev [Wed, 13 Nov 2024 10:45:21 +0000 (13:45 +0300)]
More marketing

7 months agoFix vlen size
Sergey Matveev [Tue, 12 Nov 2024 11:12:14 +0000 (14:12 +0300)]
Fix vlen size

7 months agoTrivial style fixes
Sergey Matveev [Mon, 11 Nov 2024 18:08:26 +0000 (21:08 +0300)]
Trivial style fixes

7 months agoMore general CanSign replacement
Sergey Matveev [Mon, 11 Nov 2024 10:07:33 +0000 (13:07 +0300)]
More general CanSign replacement

7 months agoBigints
Sergey Matveev [Thu, 7 Nov 2024 06:48:33 +0000 (09:48 +0300)]
Bigints

7 months agoUse "set" instead of map
Sergey Matveev [Wed, 30 Oct 2024 11:32:12 +0000 (14:32 +0300)]
Use "set" instead of map

7 months agoTrivial helper
Sergey Matveev [Wed, 30 Oct 2024 09:58:28 +0000 (12:58 +0300)]
Trivial helper

7 months agoVarious trivial additions
Sergey Matveev [Wed, 30 Oct 2024 08:47:33 +0000 (11:47 +0300)]
Various trivial additions

8 months agoSatisfy linter
Sergey Matveev [Fri, 25 Oct 2024 11:58:42 +0000 (14:58 +0300)]
Satisfy linter

8 months agoMore docstrings
Sergey Matveev [Mon, 21 Oct 2024 11:11:00 +0000 (14:11 +0300)]
More docstrings

8 months agoForgotten UTC conversion
Sergey Matveev [Fri, 18 Oct 2024 13:26:12 +0000 (16:26 +0300)]
Forgotten UTC conversion

8 months agoMore documentation
Sergey Matveev [Fri, 18 Oct 2024 11:55:25 +0000 (14:55 +0300)]
More documentation

8 months agoDeterministic decoding of blob lengths
Sergey Matveev [Fri, 18 Oct 2024 10:16:20 +0000 (13:16 +0300)]
Deterministic decoding of blob lengths

8 months agoTypo in constant's case
Sergey Matveev [Fri, 18 Oct 2024 10:15:13 +0000 (13:15 +0300)]
Typo in constant's case

8 months agoTrivial usage help
Sergey Matveev [Fri, 18 Oct 2024 10:15:01 +0000 (13:15 +0300)]
Trivial usage help

8 months agoDeterministic decoding of string lengths
Sergey Matveev [Fri, 18 Oct 2024 09:17:55 +0000 (12:17 +0300)]
Deterministic decoding of string lengths

8 months agoTiny comments for configuration files
Sergey Matveev [Fri, 18 Oct 2024 07:54:21 +0000 (10:54 +0300)]
Tiny comments for configuration files

8 months agoAbility to skip storing of offsets
Sergey Matveev [Thu, 17 Oct 2024 08:54:37 +0000 (11:54 +0300)]
Ability to skip storing of offsets

8 months agoNo excess map usage description
Sergey Matveev [Thu, 17 Oct 2024 08:54:05 +0000 (11:54 +0300)]
No excess map usage description

8 months agoSilence useless warning
Sergey Matveev [Thu, 17 Oct 2024 08:53:45 +0000 (11:53 +0300)]
Silence useless warning

8 months agoUnify size types and check overflows
Sergey Matveev [Wed, 16 Oct 2024 14:06:55 +0000 (17:06 +0300)]
Unify size types and check overflows

8 months agoSaner field names
Sergey Matveev [Tue, 15 Oct 2024 19:31:08 +0000 (22:31 +0300)]
Saner field names

8 months agoCheck ca ku presence
Sergey Matveev [Tue, 15 Oct 2024 13:02:52 +0000 (16:02 +0300)]
Check ca ku presence

8 months agocyac implemented certificate verifier
Sergey Matveev [Tue, 15 Oct 2024 07:31:30 +0000 (10:31 +0300)]
cyac implemented certificate verifier

8 months agoMore sets usage
Sergey Matveev [Tue, 15 Oct 2024 07:02:19 +0000 (10:02 +0300)]
More sets usage

8 months agoProper 34.10 signature is R||S
Sergey Matveev [Mon, 14 Oct 2024 17:26:19 +0000 (20:26 +0300)]
Proper 34.10 signature is R||S

8 months agoTypo in schema definition
Sergey Matveev [Mon, 14 Oct 2024 17:25:09 +0000 (20:25 +0300)]
Typo in schema definition

8 months agoColourise printer
Sergey Matveev [Mon, 14 Oct 2024 08:33:16 +0000 (11:33 +0300)]
Colourise printer

8 months agoRename "pool" to "items"
Sergey Matveev [Mon, 14 Oct 2024 07:42:28 +0000 (10:42 +0300)]
Rename "pool" to "items"

8 months agoNon-streamable parser
Sergey Matveev [Sun, 13 Oct 2024 17:36:51 +0000 (20:36 +0300)]
Non-streamable parser

8 months agoForbid empty map strings
Sergey Matveev [Sun, 13 Oct 2024 16:26:19 +0000 (19:26 +0300)]
Forbid empty map strings

8 months agoYet another revised certificate format
Sergey Matveev [Sat, 12 Oct 2024 14:11:35 +0000 (17:11 +0300)]
Yet another revised certificate format

8 months agoTypos
Sergey Matveev [Wed, 9 Oct 2024 09:34:47 +0000 (12:34 +0300)]
Typos

8 months agoStrip long strings
Sergey Matveev [Wed, 9 Oct 2024 18:02:18 +0000 (21:02 +0300)]
Strip long strings

8 months agoReplace assert with proper error printing
Sergey Matveev [Wed, 9 Oct 2024 18:02:09 +0000 (21:02 +0300)]
Replace assert with proper error printing

8 months agommap-ed buffer in no need of freeing
Sergey Matveev [Wed, 9 Oct 2024 18:01:19 +0000 (21:01 +0300)]
mmap-ed buffer in no need of freeing

8 months agoExplicitly show vlen
Sergey Matveev [Wed, 9 Oct 2024 11:17:05 +0000 (14:17 +0300)]
Explicitly show vlen

8 months agoSimpler blob
Sergey Matveev [Wed, 9 Oct 2024 11:04:50 +0000 (14:04 +0300)]
Simpler blob

8 months agoBetter C printer
Sergey Matveev [Wed, 9 Oct 2024 09:58:19 +0000 (12:58 +0300)]
Better C printer

8 months agoPrehashed certificate and CDDLs
Sergey Matveev [Wed, 9 Oct 2024 09:00:00 +0000 (12:00 +0300)]
Prehashed certificate and CDDLs

8 months agoMove yacpki to gyac
Sergey Matveev [Tue, 8 Oct 2024 17:17:24 +0000 (20:17 +0300)]
Move yacpki to gyac

8 months agogyac/yacpki
Sergey Matveev [Mon, 7 Oct 2024 12:52:31 +0000 (15:52 +0300)]
gyac/yacpki

8 months agoMore rationale
Sergey Matveev [Tue, 8 Oct 2024 11:47:41 +0000 (14:47 +0300)]
More rationale

8 months agoZero-based indeces
Sergey Matveev [Mon, 7 Oct 2024 16:19:14 +0000 (19:19 +0300)]
Zero-based indeces

8 months agoTypo
Sergey Matveev [Mon, 7 Oct 2024 12:12:35 +0000 (15:12 +0300)]
Typo

8 months agoNote that .sint holds negative numbers
Sergey Matveev [Mon, 7 Oct 2024 12:12:20 +0000 (15:12 +0300)]
Note that .sint holds negative numbers

8 months agoExplicitly disallow null byte in UTF-8
Sergey Matveev [Mon, 7 Oct 2024 12:11:57 +0000 (15:11 +0300)]
Explicitly disallow null byte in UTF-8

8 months agoRemark about zero byte
Sergey Matveev [Mon, 7 Oct 2024 05:06:54 +0000 (08:06 +0300)]
Remark about zero byte

8 months agoMore comparison
Sergey Matveev [Sun, 6 Oct 2024 18:33:54 +0000 (21:33 +0300)]
More comparison

8 months agoLimit chunk's size too
Sergey Matveev [Sun, 6 Oct 2024 10:04:04 +0000 (13:04 +0300)]
Limit chunk's size too

8 months agoSigned length is safer
Sergey Matveev [Sun, 6 Oct 2024 09:39:24 +0000 (12:39 +0300)]
Signed length is safer

8 months agoDo not deal with very large strings
Sergey Matveev [Sun, 6 Oct 2024 09:19:28 +0000 (12:19 +0300)]
Do not deal with very large strings

Currently code won't work with them because of the uint64 overflow.

8 months agoMore convenient namespace
Sergey Matveev [Sun, 6 Oct 2024 08:19:17 +0000 (11:19 +0300)]
More convenient namespace

8 months agoForgotten file
Sergey Matveev [Sat, 5 Oct 2024 16:52:32 +0000 (19:52 +0300)]
Forgotten file