Page MenuHome GnuPG

713_0005-Use-2048-bit-RSA-keys-for-selftest.patch
AbandonedPublic

Authored by civ on Nov 5 2015, 2:18 PM.

Details

Reviewers
None
Summary

From 13a6fb8d29ce569c763b18a7075edb0ddce8a5fe Mon Sep 17 00:00:00 2001
From: Vitezslav Cizek <vcizek@suse.com>
Date: Fri, 30 Oct 2015 13:41:41 +0100
Subject: [PATCH 05/11] Use 2048 bit RSA keys for selftest

  • cipher/rsa.c (selftests_rsa): Use 2048 bit keys.

(selftest_encr_1024): Replaced by selftest_encr_2048.
(selftest_sign_1024): Replaced by selftest_sign_2048.
(selftest_encr_2048): Add check against known ciphertext.
(selftest_sign_2048): Add check against known signature.

  • tests/pubkey.c (get_keys_new): Generate 2048 bit keys. --

Use a 2048 bit keys for RSA selftest.
Check against the known signature/ciphertext after signing/encryption
in the selftests.
Also generate 2k keys in tests/pubkey.

Thanks to Ludwig Nussel.
Signed-off-by: Vitezslav Cizek <vcizek@suse.com>

Signed-off-by: Vitezslav Cizek <vcizek@suse.com>

cipher/rsa.c | 163 ++++++++++++++++++++++++++++++++++++++++-----------------
tests/pubkey.c | 4 +-
2 files changed, 116 insertions(+), 51 deletions(-)

2.6.2

Test Plan

Diff Detail

Lint
Lint Skipped
Unit
Unit Tests Skipped