aboutsummaryrefslogtreecommitdiffstats
path: root/src/libcharon/plugins/attr_sql
diff options
context:
space:
mode:
authorTobias Brunner <tobias@strongswan.org>2015-07-02 15:58:01 +0200
committerTobias Brunner <tobias@strongswan.org>2015-08-06 17:15:25 +0200
commitb2efc6181848b679a186f00963bfe02816f79d05 (patch)
tree398dc1545814c8b1d9ec781832c65552e3b55047 /src/libcharon/plugins/attr_sql
parent1de31bcc2b3d6b5ff9f8d06651bc5c68d94d5e9b (diff)
downloadstrongswan-b2efc6181848b679a186f00963bfe02816f79d05.tar.bz2
strongswan-b2efc6181848b679a186f00963bfe02816f79d05.tar.xz
pkcs11: Fix encoding of RSA keys if unnecessarily zero prefixed
Some tokens/libraries seem to prefix all numbers with zero bytes even if not necessary (e.g. the default exponent 0x010001). If we don't fix that, the fingerprints calculated based on the retrieved values will be incorrect. Even if the pkcs1 plugin can properly handle numbers that are not in two's complement since a81bd670b086 ("Added PUBKEY_RSA_MODULUS encoding type") we prefix them with zero if necessary as other encoders might expect them in two's complement. Fixes #1012.
Diffstat (limited to 'src/libcharon/plugins/attr_sql')
0 files changed, 0 insertions, 0 deletions