From 9c25ab3d34b6f679b3a2b1288d98ab32181b4911 Mon Sep 17 00:00:00 2001 From: June Blender Date: Tue, 12 May 2020 20:23:41 +0000 Subject: [PATCH 1/2] Use recommended RSA padding mode --- examples/raw_rsa_keyring.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/raw_rsa_keyring.c b/examples/raw_rsa_keyring.c index 7deb44f5a..2726cde73 100644 --- a/examples/raw_rsa_keyring.c +++ b/examples/raw_rsa_keyring.c @@ -133,7 +133,7 @@ int main(int argc, char **argv) { * was used on encryption. */ struct aws_cryptosdk_keyring *keyring = aws_cryptosdk_raw_rsa_keyring_new( - alloc, wrapping_key_namespace, wrapping_key_name, private_key_pem, public_key_pem, AWS_CRYPTOSDK_RSA_PKCS1); + alloc, wrapping_key_namespace, wrapping_key_name, private_key_pem, public_key_pem, AWS_CRYPTOSDK_RSA_OAEP_SHA256_MGF1); if (!keyring) abort(); /* The raw RSA keyring keeps its own copies of the PEM files, so we free From bf9ccdb22757e7737d4f198e127d1ee77a139de6 Mon Sep 17 00:00:00 2001 From: June Blender Date: Tue, 12 May 2020 21:18:55 +0000 Subject: [PATCH 2/2] Reformat for clang linter --- examples/raw_rsa_keyring.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/examples/raw_rsa_keyring.c b/examples/raw_rsa_keyring.c index 2726cde73..411daab9f 100644 --- a/examples/raw_rsa_keyring.c +++ b/examples/raw_rsa_keyring.c @@ -133,7 +133,12 @@ int main(int argc, char **argv) { * was used on encryption. */ struct aws_cryptosdk_keyring *keyring = aws_cryptosdk_raw_rsa_keyring_new( - alloc, wrapping_key_namespace, wrapping_key_name, private_key_pem, public_key_pem, AWS_CRYPTOSDK_RSA_OAEP_SHA256_MGF1); + alloc, + wrapping_key_namespace, + wrapping_key_name, + private_key_pem, + public_key_pem, + AWS_CRYPTOSDK_RSA_OAEP_SHA256_MGF1); if (!keyring) abort(); /* The raw RSA keyring keeps its own copies of the PEM files, so we free