From 5565bde0b4892db2a3b5e44b4b09776ee6b9e095 Mon Sep 17 00:00:00 2001 From: Guillaume Michel - guissou Date: Tue, 14 Feb 2023 08:23:21 +0100 Subject: [PATCH 1/2] Adding multicodec for aes-gcm Adding aes-gcm-256 multicodec with category encryption. --- table.csv | 1 + 1 file changed, 1 insertion(+) diff --git a/table.csv b/table.csv index e9809c6a..54b7d566 100644 --- a/table.csv +++ b/table.csv @@ -69,6 +69,7 @@ aes-192, key, 0xa1, draft, 192-b aes-256, key, 0xa2, draft, 256-bit AES symmetric key chacha-128, key, 0xa3, draft, 128-bit ChaCha symmetric key chacha-256, key, 0xa4, draft, 256-bit ChaCha symmetric key +aes-gcm-256, encryption, 0xa5, draft, AES Galois/Counter Mode with 256-bit key and 12-byte IV bitcoin-block, ipld, 0xb0, permanent, Bitcoin Block bitcoin-tx, ipld, 0xb1, permanent, Bitcoin Tx bitcoin-witness-commitment, ipld, 0xb2, permanent, Bitcoin Witness Commitment From 7ba0c2348d63b58cddc3b97de75fcc4ec7fb586c Mon Sep 17 00:00:00 2001 From: Guillaume Michel - guissou Date: Mon, 20 Feb 2023 09:23:30 +0100 Subject: [PATCH 2/2] Moved aes-gcm-256 to 0x2000 code varint 8192 (0x2000) => 10000000 01000000 (0x8040) --- table.csv | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/table.csv b/table.csv index 54b7d566..828397da 100644 --- a/table.csv +++ b/table.csv @@ -69,7 +69,6 @@ aes-192, key, 0xa1, draft, 192-b aes-256, key, 0xa2, draft, 256-bit AES symmetric key chacha-128, key, 0xa3, draft, 128-bit ChaCha symmetric key chacha-256, key, 0xa4, draft, 256-bit ChaCha symmetric key -aes-gcm-256, encryption, 0xa5, draft, AES Galois/Counter Mode with 256-bit key and 12-byte IV bitcoin-block, ipld, 0xb0, permanent, Bitcoin Block bitcoin-tx, ipld, 0xb1, permanent, Bitcoin Tx bitcoin-witness-commitment, ipld, 0xb2, permanent, Bitcoin Witness Commitment @@ -165,6 +164,7 @@ secp256k1-priv, key, 0x1301, draft, Secp2 x25519-priv, key, 0x1302, draft, Curve25519 private key rsa-priv, key, 0x1305, draft, RSA private key kangarootwelve, multihash, 0x1d01, draft, KangarooTwelve is an extendable-output hash function based on Keccak-p +aes-gcm-256, encryption, 0x2000, draft, AES Galois/Counter Mode with 256-bit key and 12-byte IV silverpine, multiaddr, 0x3f42, draft, Experimental QUIC over yggdrasil and ironwood routing protocol sm3-256, multihash, 0x534d, draft, blake2b-8, multihash, 0xb201, draft, Blake2b consists of 64 output lengths that give different hashes