ekzyis
|
6a3d864c8f
|
Fix missing module rename
|
2024-04-25 11:48:20 +02:00 |
ekzyis
|
7b673f3624
|
Point to github.com/ekzyis/nip44 in README
People can't create tickets in gitea mirror
|
2024-04-24 23:07:00 +02:00 |
ekzyis
|
1defc0bdf6
|
Make sure privkey is on curve before using unsafe secp256k1.PrivKeyFromBytes
|
2024-04-24 23:06:27 +02:00 |
ekzyis
|
ddde532a9e
|
Add disclaimer in README
|
2023-12-30 18:00:32 +01:00 |
ekzyis
|
74f7cf030b
|
Update README to point to merged NIP-44
|
2023-12-22 18:14:10 +01:00 |
ekzyis
|
51800a91df
|
Move t.Skip into assertion helper function
|
2023-12-22 18:10:43 +01:00 |
ekzyis
|
0389349e4b
|
Add more range checks
|
2023-12-22 18:06:19 +01:00 |
ekzyis
|
701723d6a7
|
Fix decryption padding error
|
2023-12-22 17:51:24 +01:00 |
ekzyis
|
9a3bf5d669
|
Add invalid decryption test vectors
|
2023-12-22 17:39:34 +01:00 |
ekzyis
|
9658eeedfa
|
Add TODO regarding security of secp256k1 keys
|
2023-12-22 17:07:07 +01:00 |
ekzyis
|
e41258cd01
|
Add test vectors for long messages
|
2023-12-22 14:22:49 +01:00 |
ekzyis
|
79a63b3cea
|
Add AAD nonce to HMAC
|
2023-12-22 13:36:55 +01:00 |
ekzyis
|
b73b57f50f
|
Use hkdf.Expand in message key generation
|
2023-12-22 08:58:40 +01:00 |
ekzyis
|
960d9b923e
|
Use hkdf.Extract in GenerateConversationKey
|
2023-12-22 07:47:40 +01:00 |
ekzyis
|
5d08b08162
|
Remove empty line
|
2023-12-22 06:53:55 +01:00 |
ekzyis
|
5e60487ae2
|
Rename to TestCryptPrivXXX
|
2023-12-22 06:50:48 +01:00 |
ekzyis
|
f1977a09a3
|
Add MIT license
|
2023-10-03 23:11:51 +02:00 |
ekzyis
|
084b838a97
|
Add README.md
|
2023-10-03 12:44:46 +02:00 |
ekzyis
|
3570c56af4
|
Generate shared secret using ECDH on secp256k1
|
2023-10-03 12:36:34 +02:00 |
ekzyis
|
63502ecb45
|
Fix test vectors
|
2023-09-30 19:28:13 +02:00 |
ekzyis
|
907edd1e91
|
Better assertions + flow
|
2023-09-30 19:24:00 +02:00 |
ekzyis
|
c03e3a5d44
|
Rename to chacha20_
|
2023-09-30 16:06:07 +02:00 |
ekzyis
|
aaaf9eea83
|
Add invalid ciphertext test vectors
|
2023-09-30 15:18:27 +02:00 |
ekzyis
|
ea2b05b223
|
Formatting
|
2023-09-30 14:42:22 +02:00 |
ekzyis
|
154a8f6f8e
|
Implement NIP-44 decrypt
|
2023-09-30 14:40:52 +02:00 |
ekzyis
|
0cbe107a98
|
Update encryption to v2
|
2023-09-30 14:00:53 +02:00 |
ekzyis
|
d276299e67
|
Remove unnecessary else
|
2023-09-28 01:22:41 +02:00 |
ekzyis
|
41865c5107
|
Implement NIP-44 encrypt
* passes all valid encrypt test vectors
does not include:
* invalid test vectors
* decryption
* conversation key generation using privkey + pubkey
|
2023-09-28 01:13:09 +02:00 |
ekzyis
|
8ef947b350
|
initial commit
|
2023-09-27 20:54:32 +02:00 |