Skip to content

Instantly share code, notes, and snippets.

@ocheron
ocheron / other-pss-vectors.patch
Created January 16, 2019 06:05
Additional RSA-PSS test vectors
commit 048b2dbb670f78af5736fd67e69c625e94058a37
Author: Olivier Chéron <olivier.cheron@gmail.com>
Date: Sat Jan 12 14:14:18 2019 +0100
Other RSASSA-PSS examples
diff --git a/tests/KAT_PubKey/PSS.hs b/tests/KAT_PubKey/PSS.hs
index 551ac61..29ada07 100644
--- a/tests/KAT_PubKey/PSS.hs
+++ b/tests/KAT_PubKey/PSS.hs
From 50e84d47221665a3fd44c7300c690994fdec3fa7 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Olivier=20Ch=C3=A9ron?= <olivier.cheron@gmail.com>
Date: Thu, 23 Aug 2018 21:22:09 +0200
Subject: [PATCH] Fix handling of CKX_RSA with TLS13-compatible client
hstClientVersion must be set to TLS12 instead of TLS13 on both sides of
the connection.
diff --git a/core/Network/TLS/Handshake/Client.hs b/core/Network/TLS/Handshake/Client.hs
index 9951fa18..134a98e0 100644
{-# LANGUAGE GeneralizedNewtypeDeriving #-}
module Ed25519 where
import Control.DeepSeq
import Data.Bits
import Data.ByteArray (ByteArrayAccess, Bytes, ScrubbedBytes, View)
import qualified Data.ByteArray as B
import Data.Word
@ocheron
ocheron / ed448-example.pem
Last active January 17, 2018 05:57
Ed448 Certificate Example
-----BEGIN CERTIFICATE-----
MIIBRjCBxaADAgECAgECMAcGAytlcQUAMBsxGTAXBgNVBAMMEFRlc3QgQ2VydGlm
aWNhdGUwHhcNMTcwMTE2MDAwMDAwWhcNMjcwMTE2MDAwMDAwWjAbMRkwFwYDVQQD
DBBUZXN0IENlcnRpZmljYXRlMEMwBQYDK2VxAzoAXhgt35N6+nGnCLrSmh73ECgq
pHY3DpFFjYbM5upLQlWVbdEdUbr6WcJvmVfsEjxEO1bLQ2ua1DIAoxMwETAPBgNV
HRMBAf8EBTADAQH/MAcGAytlcQUAA3MAtzNG8LjH8uVuHxyYrktnQxOC/yhYlUgw
QJiSgSKbco5jCYOuXHSo/i+PXpk7usJL6kbRZY87cw8Abgl1JsV2rLP3Cr/GBrgM
WP9rF7++oSkTKUKBYjtgUVL8uT/jK74XRek9O0ykm3ilwDzPIWG8ITEA
-----END CERTIFICATE-----
-----BEGIN PRIVATE KEY-----