Commit Graph

432 Commits

Author SHA1 Message Date
a0a8704c6c mapping.size = size to fix dereference panic 2024-11-26 20:30:31 -05:00
c68acf848e Corrected ValuesToMapping to order correctly 2024-11-26 19:56:32 -05:00
7a6927cf53 gofumpt 2024-11-26 19:47:17 -05:00
37e11ffee1 adjust generateTestRouterInfo 2024-11-26 15:56:41 -05:00
e15e427f60 return error + uniform naming 2024-11-26 15:56:29 -05:00
f0803a095e tweaks 2024-11-26 15:55:50 -05:00
bf7e88bec1 updated test functions to not panic 2024-11-24 14:34:14 -05:00
065ceeb88f Various changes
-removed outdated test functions (to be replaced later)
-added working experimental ReadKeysAndCert replacement candidate ReadKeysAndCertDeux
-added readCertificateFromEnd
-added constructPublicKey
-exported SpkType and CpkType in KeyCertificate
-added CryptoPublicKeySize() method
-added SigningPublicKeySize() method
2024-11-24 14:25:40 -05:00
ca4a7a13ea experimental functions, tests pass 2024-11-23 23:54:01 -05:00
0b0753cac1 tweaks 2024-11-23 22:48:58 -05:00
40c2c4806c fix padding + fail on invalid padding instead of warn. 2024-11-23 22:45:32 -05:00
9b4bf2663d clear artifact 2024-11-21 14:25:39 -05:00
08e599e59a create Ed25519PublicKeyFromBytes 2024-11-18 12:34:03 -05:00
30f5565217 .Type -> .Type() 2024-11-18 12:27:55 -05:00
fc3ba17af5 ReadKeysAndCert is not working as expected 2024-11-18 12:25:31 -05:00
631f8d1850 nuked lease_set_test.go -> BROKEN 2024-11-17 23:04:07 -05:00
cc43160bb9 nuked & revived router_info_test.go
-TestRouterInfoCapabilities() fails
-TestRouterInfoVersion() fails
2024-11-17 22:23:31 -05:00
09acf3d23d adjusted router_info2_test.go 2024-11-17 22:04:27 -05:00
cbe4af8459 added AsDestination() 2024-11-17 21:44:32 -05:00
b72ed0a37d remove recovery attempt in mapping 2024-11-17 21:39:31 -05:00
07268df720 CRITICAL: Reverted mapping.go 2024-11-17 21:03:42 -05:00
def8789b77 verification 2024-11-17 14:13:38 -05:00
59c53bc5c1 Added constructors and readers
-NewLeaseSet()
-NewLeaseSetFromBytes()
-ReadLease()
-NewLeaseFromBytes()
2024-11-17 14:00:41 -05:00
ee56e0f40f corrected TestPublicKeyWithBadCertificate that had fault error matching 2024-11-17 13:32:08 -05:00
4e2b55ccbe add new tests to router_info.mk 2024-11-17 13:01:46 -05:00
64d90a157c Fixed array bounds error in handling short input in NewKeyCertificate 2024-11-17 12:55:34 -05:00
3acff32f17 adjusted vars, all tests pass for mapping 2024-11-17 12:36:26 -05:00
362513bbe5 Handle extra bytes beyond mapping length 2024-11-17 12:32:46 -05:00
c9f3227116 added length check to ReadMapping 2024-11-17 12:23:21 -05:00
f0702ffba9 Various changes
-we're dropping errors instead of trying to recover
-revamp TestReadI2PStringErrWhenDataTooShort to reflect drops instead of recoveries
2024-11-17 11:52:47 -05:00
11b9018630 implement uniform errors 2024-11-17 11:26:02 -05:00
f6daa5d9b6 Various changes
-in func (str I2PString) Data(): remove recovery attempts causing tests to fail
-added more universal errors
2024-11-17 11:16:43 -05:00
58d1f0d815 fixed func (str I2PString) Data()
-replace actual length expected by TestI2PStringDataReportsExtraDataError, which is an invalid length
-added note to see if we should trim instead
2024-11-17 10:52:47 -05:00
62ececf102 fixed func(str I2pString) Length()
-Previously incorrectly checked length causing TestI2PStringReportsExtraDataError to fail
2024-11-17 10:35:22 -05:00
idk
1d90db3239 Merge pull request #23 from hkh4n/routerinfo
Routerinfo
2024-11-17 14:28:44 +00:00
idk
f729bda62d Merge branch 'master' into routerinfo 2024-11-16 18:17:10 +00:00
4ad0f97bfe Fail-fast switch for logging Logging, format 2024-11-16 13:15:33 -05:00
idk
e296441f29 Merge branch 'master' into routerinfo 2024-11-16 03:56:57 +00:00
62086c7d04 make fmt 2024-11-15 22:52:17 -05:00
ddba94d6ae remove printing 2024-11-15 22:48:57 -05:00
767b91df49 clean up temp dirs 2024-11-15 22:47:36 -05:00
1292098cf0 Merge remote-tracking branch 'origin/10k' into 10k 2024-11-15 22:45:04 -05:00
24bc4c3c17 Implemented ed25519 SPK's 2024-11-15 22:29:42 -05:00
81eb270351 !WIP! - 10k test 2024-11-15 22:06:23 -05:00
b6f197cf92 This is not correct yet, work on key_certificate.go lines 216-245 2024-11-15 17:35:44 -05:00
c10d98a3b2 export DEBUG_I2P=debug in Makefile so that extended logs show up in the tests 2024-11-15 16:52:37 -05:00
6d16ca5f87 debugging info to investigate 2024-11-15 14:43:36 -05:00
003d6c9ab8 !WIP! - 10k test 2024-11-15 13:53:44 -05:00
015c4b23e2 pass sigType to NewRouterInfo 2024-11-15 11:49:10 -05:00
e29c3c7abb formatting + implemented GetSignatureTypeFromCertificate 2024-11-15 11:31:29 -05:00