Commit Graph

118 Commits (a580cf8658dd9414f3e5aaa658ce268e5823f9dc)

Author SHA1 Message Date
Bob Mottram 56e9130287 Unit test for verifying new http signature type 2021-02-22 14:03:24 +00:00
Bob Mottram 4e2487aa27 Support for newer http signature specification 2021-02-22 11:13:27 +00:00
Bob Mottram a4b74c70db Note 2021-02-21 22:51:08 +00:00
Bob Mottram 0e9aa4766f Move jsonld signatures to python3-cryptography 2021-02-04 18:18:31 +00:00
Bob Mottram d6f7ad20a3 Using python3-cryptography
Roughtly 18 times speedup on http signatures
2021-02-04 16:30:32 +00:00
Bob Mottram 22984cd16f Revert "Test switching from pycryptodome to python3-cryptography"
This reverts commit bb28858c9e.
2021-02-03 21:21:57 +00:00
Bob Mottram bb28858c9e Test switching from pycryptodome to python3-cryptography 2021-02-03 21:18:03 +00:00
Bob Mottram 2cdd458079 Tidying 2021-02-03 18:25:41 +00:00
Bob Mottram 419353ccf9 Version 1.2.0 2021-01-26 10:07:42 +00:00
Bob Mottram 5cd9aa8d66 Enforce convention of underscore before local function names 2020-12-22 18:06:23 +00:00
Bob Mottram 15924d79b1 Tidying 2020-12-16 11:42:11 +00:00
Bob Mottram d853ba1978 Fix another port number bug 2020-12-16 11:38:40 +00:00
Bob Mottram 844f898b94 flake8 format 2020-04-03 12:05:30 +00:00
Bob Mottram 23bb250deb Remove trailing whitespace 2020-03-22 21:16:02 +00:00
Bob Mottram d0884fa04d Tidying 2020-03-22 20:36:19 +00:00
Bob Mottram 596d3a8747 cryptodome fallback 2020-03-04 09:59:08 +00:00
Bob Mottram f6869f9308 Use debian cryptodome package 2020-03-04 09:41:21 +00:00
Bob Mottram f6acc62b16 Version 1.1.0 2019-12-14 10:52:19 +00:00
Bob Mottram cd90434ce3 Variations on the theme 2019-11-12 19:32:23 +00:00
Bob Mottram a093472bee Comment 2019-11-12 19:23:57 +00:00
Bob Mottram 08c7177db5 Return to case 2019-11-12 19:20:55 +00:00
Bob Mottram 55194f95d5 Don't verify content length 2019-11-12 19:13:08 +00:00
Bob Mottram ff09bf0181 Handle mixed case 2019-11-12 19:04:12 +00:00
Bob Mottram 808b5a4c8b Separate cases 2019-11-12 18:48:29 +00:00
Bob Mottram 80a0560fed Extra test for content length 2019-11-12 18:21:52 +00:00
Bob Mottram 73ebebdcd1 More debug 2019-11-12 17:16:34 +00:00
Bob Mottram a3e7b0ed53 header format 2019-11-12 17:02:34 +00:00
Bob Mottram 9d7bff34ec Separate content-length check 2019-11-12 16:48:05 +00:00
Bob Mottram a37e401440 More debug 2019-11-12 15:25:47 +00:00
Bob Mottram 127a60280f Debug in http signature verification 2019-11-12 15:03:17 +00:00
Bob Mottram bc27329861 Capital L 2019-11-12 13:24:06 +00:00
Bob Mottram 9120444d09 content length as string 2019-11-12 13:15:45 +00:00
Bob Mottram 6deab18126 Add content langth to http signature 2019-11-12 13:01:56 +00:00
Bob Mottram 0192532293 Fixing non-ascii text 2019-11-09 21:39:04 +00:00
Bob Mottram 2b884be142 Include character encoding in content-type http header 2019-11-09 10:18:14 +00:00
Bob Mottram 779fc287d1 Version 1.0.0 2019-08-29 14:35:29 +01:00
Bob Mottram d9c8dc46c2 Tidying 2019-08-23 12:39:16 +01:00
Bob Mottram f0cc2359ad Check that header was not signed in the future 2019-08-23 12:37:34 +01:00
Bob Mottram a2e3208999 Comments 2019-08-23 12:31:46 +01:00
Bob Mottram bb6dfbd7f9 Make date check into a function 2019-08-23 12:30:37 +01:00
Bob Mottram c13173ed75 Mitigate replay attacks 2019-08-23 12:20:20 +01:00
Bob Mottram d05a416998 quieten some debug 2019-08-23 11:57:27 +01:00
Bob Mottram 896b56b3a0 Avoid post conversions between json and string after digest is calculated 2019-08-17 11:15:01 +01:00
Bob Mottram 1b1810ff8a Calculate message body digest from incoming bytes to avoid any json conversion issues 2019-08-16 18:19:23 +01:00
Bob Mottram d2394b3a69 Fixing http signatures 2019-08-16 14:47:01 +01:00
Bob Mottram 174e166769 Fix digest encoding 2019-08-16 11:36:41 +01:00
Bob Mottram cf69c4568b decode body digest 2019-08-16 10:56:58 +01:00
Bob Mottram 81d990c066 activity content type 2019-08-16 10:12:47 +01:00
Bob Mottram d538e901a2 decode 2019-08-16 10:00:10 +01:00
Bob Mottram e86a01a9c4 Non-binary encoding for header list 2019-08-16 09:57:47 +01:00
Bob Mottram 92469ed199 Get host from post to inbox 2019-08-15 23:33:42 +01:00
Bob Mottram 0372da8ef1 Debug 2019-08-15 23:19:04 +01:00
Bob Mottram 977160eecf http signature fixes 2019-08-15 22:34:25 +01:00
Bob Mottram ed050d48f5 Remove date 2019-08-15 19:24:32 +01:00
Bob Mottram 6855366b4c Remove date 2019-08-15 19:21:43 +01:00
Bob Mottram 81d77f9843 Extra http header fields 2019-08-15 18:22:39 +01:00
Bob Mottram 7815126f65 Exception handling for http signature check 2019-08-15 18:09:17 +01:00
Bob Mottram be1a061122 Include date in http signature 2019-08-15 10:08:18 +01:00
Bob Mottram d769c5b258 Run test in its own subdirectory 2019-08-09 10:46:33 +01:00
Bob Mottram e12f0994cf Fixing public key lookup 2019-07-04 15:36:29 +01:00
Bob Mottram 86aaff3c84 Option to use dat urls 2019-07-03 20:00:03 +01:00
Bob Mottram c2cc03c76a Change username to nickname 2019-07-03 10:40:27 +01:00
Bob Mottram 306f9edf46 Tidying 2019-07-02 21:54:22 +01:00
Bob Mottram d160c060c9 Parameter types 2019-07-01 12:09:09 +01:00
Bob Mottram d9d5ce94dc Fix http signature with port number 2019-07-01 10:31:02 +01:00
Bob Mottram 8705b9e44c Move tests to their own file 2019-06-30 21:14:03 +01:00
Bob Mottram 6c85b39adc Include port with domain 2019-06-30 19:23:18 +01:00
Bob Mottram e5a03e0fe9 Initial 2019-06-28 19:55:29 +01:00