mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-04-28 11:47:48 +02:00
derivation of subcredentials for LeaseSet2
This commit is contained in:
parent
9aaba49a9f
commit
ea3070d02b
4 changed files with 29 additions and 19 deletions
|
@ -276,6 +276,13 @@ namespace data
|
|||
return 128;
|
||||
}
|
||||
|
||||
const uint8_t * IdentityEx::GetSigningPublicKeyBuffer () const
|
||||
{
|
||||
auto keyLen = GetSigningPublicKeyLen ();
|
||||
if (keyLen > 128) return nullptr; // P521
|
||||
return m_StandardIdentity.signingKey + 128 - keyLen;
|
||||
}
|
||||
|
||||
size_t IdentityEx::GetSigningPrivateKeyLen () const
|
||||
{
|
||||
if (!m_Verifier) CreateVerifier ();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue