Project

General

Profile

Actions

Task #1648

closed

Add SecPublicInfo::getPublicKeyType?

Added by Anonymous over 10 years ago. Updated over 10 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Security
Target version:
Start date:
06/05/2014
Due date:
% Done:

100%

Estimated time:

Description

In SecPublicInfoSqlite3, the type of key is already saved along with the key DER. This allows it to distinguish an RSA key from another public key algorithm such as elliptic curve.

https://github.com/named-data/ndn-cxx/blob/c169a81a5caf3cb4dc14a0258719bc1ef09663cc/src/security/sec-public-info-sqlite3.cpp#L295

It seems that the SecPublicInfo API needs to have getPublicKeyType(keyName) so that KeyChain::sign can use the keyName do determine whether to create a SignatureSha256WithRsa or other type of signature.

https://github.com/named-data/ndn-cxx/blob/c169a81a5caf3cb4dc14a0258719bc1ef09663cc/src/security/key-chain.cpp#L188

Actions

Also available in: Atom PDF