]>
Cypherpunks repositories - keks.git/log
Sergey Matveev [Sat, 30 Nov 2024 16:53:52 +0000 (19:53 +0300)]
Split floats-related combined tests
Simpler test cases, covering the narrow part of data, as a rule more
convenient to use, because if you have a typo in exactly 128-bit related
floats related code, then *_128 test will show that. Combined tests like
were before will require you using debugger.
Sergey Matveev [Sat, 30 Nov 2024 16:45:35 +0000 (19:45 +0300)]
Add junk during UUID decoding
Sergey Matveev [Sat, 30 Nov 2024 16:40:56 +0000 (19:40 +0300)]
More understandable naming of context manager's variable
"cm" just tells that it is "context manager". "class Class" is similar.
"err" can be more appropriate name, telling that it holds something
related to the error.
Sergey Matveev [Sat, 30 Nov 2024 16:37:13 +0000 (19:37 +0300)]
Split TestErrors
TestErrors mainly tests the NotEnoughData exception. Move it to its
separate class. Some generic errors tests are moved to separate file.
Sergey Matveev [Sat, 30 Nov 2024 16:32:24 +0000 (19:32 +0300)]
Remove dead test
Sergey Matveev [Sat, 30 Nov 2024 16:29:02 +0000 (19:29 +0300)]
Use more appropriate sets-strategy for map's keys
That way there won't be excess collapsing keys.
Sergey Matveev [Sat, 30 Nov 2024 16:27:02 +0000 (19:27 +0300)]
Use more assertSequenceEqual
For binary/text sequences it gives much more prettier output when
failing, more convenient and easy for human to deal with.
Sergey Matveev [Sat, 30 Nov 2024 16:21:28 +0000 (19:21 +0300)]
Split long strings
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.
Sergey Matveev [Sat, 30 Nov 2024 16:10:49 +0000 (19:10 +0300)]
Collapse unnecessary multiline
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.
Sergey Matveev [Sat, 30 Nov 2024 16:15:18 +0000 (19:15 +0300)]
Add commonly used junk-generation strategy
Sergey Matveev [Sat, 30 Nov 2024 16:14:27 +0000 (19:14 +0300)]
Limit lists-strategy
Sergey Matveev [Sat, 30 Nov 2024 15:57:52 +0000 (18:57 +0300)]
DRY: move commonly used strategies to single module
Sergey Matveev [Sat, 30 Nov 2024 16:00:47 +0000 (19:00 +0300)]
Test does not accept any arguments
Sergey Matveev [Sat, 30 Nov 2024 15:46:31 +0000 (18:46 +0300)]
Remove unused imports
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.
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.
Sergey Matveev [Sat, 30 Nov 2024 15:38:33 +0000 (18:38 +0300)]
Import only necessary single TestCase, not the whole module
Sergey Matveev [Sat, 30 Nov 2024 15:35:49 +0000 (18:35 +0300)]
Unify quotes usage
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.
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.
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.
Sergey Matveev [Sat, 30 Nov 2024 15:28:37 +0000 (18:28 +0300)]
Make a proper text file
RudenkoAD [Fri, 15 Nov 2024 18:46:53 +0000 (21:46 +0300)]
Add tests
Sergey Matveev [Fri, 22 Nov 2024 15:19:44 +0000 (18:19 +0300)]
Better TAI-related testing
Sergey Matveev [Thu, 21 Nov 2024 20:29:13 +0000 (23:29 +0300)]
Fix awful typo error
Sergey Matveev [Thu, 21 Nov 2024 12:38:11 +0000 (15:38 +0300)]
Human-convenient arguments
Sergey Matveev [Thu, 21 Nov 2024 12:36:29 +0000 (15:36 +0300)]
Ignore some noisy warnings
Sergey Matveev [Thu, 21 Nov 2024 10:32:02 +0000 (13:32 +0300)]
Unnecessary separator
Sergey Matveev [Thu, 21 Nov 2024 10:25:37 +0000 (13:25 +0300)]
Revised and corrected work with TAI64
Sergey Matveev [Thu, 21 Nov 2024 09:03:28 +0000 (12:03 +0300)]
Fixed TAI64N[A] *seconds validation
Sergey Matveev [Thu, 21 Nov 2024 08:44:17 +0000 (11:44 +0300)]
Use updated fixed tai64n library
Sergey Matveev [Thu, 21 Nov 2024 08:30:17 +0000 (11:30 +0300)]
Raise copyright years
Sergey Matveev [Thu, 21 Nov 2024 08:25:34 +0000 (11:25 +0300)]
Zero nsecs is ok for TAI64NA
Sergey Matveev [Wed, 20 Nov 2024 21:25:26 +0000 (00:25 +0300)]
Assure that minimally encoded TAI64s are used
Sergey Matveev [Wed, 20 Nov 2024 14:10:00 +0000 (17:10 +0300)]
Trivial optimisations
Sergey Matveev [Wed, 20 Nov 2024 14:03:06 +0000 (17:03 +0300)]
main() can accept void
Sergey Matveev [Wed, 20 Nov 2024 14:02:25 +0000 (17:02 +0300)]
Revised and corrected work with TAI64
Sergey Matveev [Wed, 20 Nov 2024 13:51:04 +0000 (16:51 +0300)]
Move external-TAI64 specific constant out
Sergey Matveev [Wed, 20 Nov 2024 13:13:08 +0000 (16:13 +0300)]
Example leapsec border example
Sergey Matveev [Wed, 20 Nov 2024 13:10:31 +0000 (16:10 +0300)]
Place function before intended call to it
Sergey Matveev [Wed, 20 Nov 2024 13:09:37 +0000 (16:09 +0300)]
Fixed typoed variable
Sergey Matveev [Wed, 20 Nov 2024 12:39:34 +0000 (15:39 +0300)]
Revised and corrected work with TAI64
Sergey Matveev [Wed, 20 Nov 2024 12:38:20 +0000 (15:38 +0300)]
Fix condition
1<<63 value is also reserved (not allowed) one.
Sergey Matveev [Wed, 20 Nov 2024 12:37:42 +0000 (15:37 +0300)]
Do not construct constant objects every time function is called
Sergey Matveev [Wed, 20 Nov 2024 11:15:19 +0000 (14:15 +0300)]
TAI64 is actually called external
Sergey Matveev [Wed, 20 Nov 2024 12:40:16 +0000 (15:40 +0300)]
More PEP8 conformance
Sergey Matveev [Wed, 20 Nov 2024 11:12:02 +0000 (14:12 +0300)]
Note that this is not a duplicate line
Sergey Matveev [Fri, 15 Nov 2024 13:05:23 +0000 (16:05 +0300)]
set encoding support
Sergey Matveev [Wed, 13 Nov 2024 13:59:33 +0000 (16:59 +0300)]
Command-line pretty-printer
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.
Sergey Matveev [Wed, 13 Nov 2024 11:07:03 +0000 (14:07 +0300)]
Slightly reduced code
Sergey Matveev [Wed, 13 Nov 2024 10:45:21 +0000 (13:45 +0300)]
More marketing
Sergey Matveev [Tue, 12 Nov 2024 11:12:14 +0000 (14:12 +0300)]
Fix vlen size
Sergey Matveev [Mon, 11 Nov 2024 18:08:26 +0000 (21:08 +0300)]
Trivial style fixes
Sergey Matveev [Mon, 11 Nov 2024 10:07:33 +0000 (13:07 +0300)]
More general CanSign replacement
Sergey Matveev [Thu, 7 Nov 2024 06:48:33 +0000 (09:48 +0300)]
Bigints
Sergey Matveev [Wed, 30 Oct 2024 11:32:12 +0000 (14:32 +0300)]
Use "set" instead of map
Sergey Matveev [Wed, 30 Oct 2024 09:58:28 +0000 (12:58 +0300)]
Trivial helper
Sergey Matveev [Wed, 30 Oct 2024 08:47:33 +0000 (11:47 +0300)]
Various trivial additions
Sergey Matveev [Fri, 25 Oct 2024 11:58:42 +0000 (14:58 +0300)]
Satisfy linter
Sergey Matveev [Mon, 21 Oct 2024 11:11:00 +0000 (14:11 +0300)]
More docstrings
Sergey Matveev [Fri, 18 Oct 2024 13:26:12 +0000 (16:26 +0300)]
Forgotten UTC conversion
Sergey Matveev [Fri, 18 Oct 2024 11:55:25 +0000 (14:55 +0300)]
More documentation
Sergey Matveev [Fri, 18 Oct 2024 10:16:20 +0000 (13:16 +0300)]
Deterministic decoding of blob lengths
Sergey Matveev [Fri, 18 Oct 2024 10:15:13 +0000 (13:15 +0300)]
Typo in constant's case
Sergey Matveev [Fri, 18 Oct 2024 10:15:01 +0000 (13:15 +0300)]
Trivial usage help
Sergey Matveev [Fri, 18 Oct 2024 09:17:55 +0000 (12:17 +0300)]
Deterministic decoding of string lengths
Sergey Matveev [Fri, 18 Oct 2024 07:54:21 +0000 (10:54 +0300)]
Tiny comments for configuration files
Sergey Matveev [Thu, 17 Oct 2024 08:54:37 +0000 (11:54 +0300)]
Ability to skip storing of offsets
Sergey Matveev [Thu, 17 Oct 2024 08:54:05 +0000 (11:54 +0300)]
No excess map usage description
Sergey Matveev [Thu, 17 Oct 2024 08:53:45 +0000 (11:53 +0300)]
Silence useless warning
Sergey Matveev [Wed, 16 Oct 2024 14:06:55 +0000 (17:06 +0300)]
Unify size types and check overflows
Sergey Matveev [Tue, 15 Oct 2024 19:31:08 +0000 (22:31 +0300)]
Saner field names
Sergey Matveev [Tue, 15 Oct 2024 13:02:52 +0000 (16:02 +0300)]
Check ca ku presence
Sergey Matveev [Tue, 15 Oct 2024 07:31:30 +0000 (10:31 +0300)]
cyac implemented certificate verifier
Sergey Matveev [Tue, 15 Oct 2024 07:02:19 +0000 (10:02 +0300)]
More sets usage
Sergey Matveev [Mon, 14 Oct 2024 17:26:19 +0000 (20:26 +0300)]
Proper 34.10 signature is R||S
Sergey Matveev [Mon, 14 Oct 2024 17:25:09 +0000 (20:25 +0300)]
Typo in schema definition
Sergey Matveev [Mon, 14 Oct 2024 08:33:16 +0000 (11:33 +0300)]
Colourise printer
Sergey Matveev [Mon, 14 Oct 2024 07:42:28 +0000 (10:42 +0300)]
Rename "pool" to "items"
Sergey Matveev [Sun, 13 Oct 2024 17:36:51 +0000 (20:36 +0300)]
Non-streamable parser
Sergey Matveev [Sun, 13 Oct 2024 16:26:19 +0000 (19:26 +0300)]
Forbid empty map strings
Sergey Matveev [Sat, 12 Oct 2024 14:11:35 +0000 (17:11 +0300)]
Yet another revised certificate format
Sergey Matveev [Wed, 9 Oct 2024 09:34:47 +0000 (12:34 +0300)]
Typos
Sergey Matveev [Wed, 9 Oct 2024 18:02:18 +0000 (21:02 +0300)]
Strip long strings
Sergey Matveev [Wed, 9 Oct 2024 18:02:09 +0000 (21:02 +0300)]
Replace assert with proper error printing
Sergey Matveev [Wed, 9 Oct 2024 18:01:19 +0000 (21:01 +0300)]
mmap-ed buffer in no need of freeing
Sergey Matveev [Wed, 9 Oct 2024 11:17:05 +0000 (14:17 +0300)]
Explicitly show vlen
Sergey Matveev [Wed, 9 Oct 2024 11:04:50 +0000 (14:04 +0300)]
Simpler blob
Sergey Matveev [Wed, 9 Oct 2024 09:58:19 +0000 (12:58 +0300)]
Better C printer
Sergey Matveev [Wed, 9 Oct 2024 09:00:00 +0000 (12:00 +0300)]
Prehashed certificate and CDDLs
Sergey Matveev [Tue, 8 Oct 2024 17:17:24 +0000 (20:17 +0300)]
Move yacpki to gyac
Sergey Matveev [Mon, 7 Oct 2024 12:52:31 +0000 (15:52 +0300)]
gyac/yacpki
Sergey Matveev [Tue, 8 Oct 2024 11:47:41 +0000 (14:47 +0300)]
More rationale
Sergey Matveev [Mon, 7 Oct 2024 16:19:14 +0000 (19:19 +0300)]
Zero-based indeces
Sergey Matveev [Mon, 7 Oct 2024 12:12:35 +0000 (15:12 +0300)]
Typo
Sergey Matveev [Mon, 7 Oct 2024 12:12:20 +0000 (15:12 +0300)]
Note that .sint holds negative numbers
Sergey Matveev [Mon, 7 Oct 2024 12:11:57 +0000 (15:11 +0300)]
Explicitly disallow null byte in UTF-8