pull/66/head
Jeff Becker 6 years ago
parent 2f855c106c
commit b11bddad02
No known key found for this signature in database
GPG Key ID: F357B3B42F6F9B05

@ -159,35 +159,35 @@ namespace llarp
byte_t*
data()
{
return &b[0];
return b;
}
const byte_t*
data() const
{
return &b[0];
return b;
}
Long_t*
data_l()
{
return &l[0];
return l;
}
const Long_t*
data_l() const
{
return &l[0];
return l;
}
operator const byte_t*() const
{
return &b[0];
return b;
}
operator byte_t*()
{
return &b[0];
return b;
}
bool

@ -41,7 +41,7 @@ namespace llarp
bool
CloseExitMessage::Verify(llarp_crypto* c, const llarp::PubKey& pk) const
{
byte_t tmp[128] = {0};
byte_t tmp[512] = {0};
auto buf = llarp::StackBuffer< decltype(tmp) >(tmp);
CloseExitMessage copy;
copy = *this;
@ -55,7 +55,7 @@ namespace llarp
bool
CloseExitMessage::Sign(llarp_crypto* c, const llarp::SecretKey& sk)
{
byte_t tmp[128] = {0};
byte_t tmp[512] = {0};
auto buf = llarp::StackBuffer< decltype(tmp) >(tmp);
Z.Zero();
Y.Randomize();

@ -46,7 +46,7 @@ namespace llarp
UpdateExitMessage::Verify(llarp_crypto* c, const llarp::PubKey& pk) const
{
byte_t tmp[128] = {0};
byte_t tmp[512] = {0};
auto buf = llarp::StackBuffer< decltype(tmp) >(tmp);
UpdateExitMessage copy;
copy = *this;
@ -72,7 +72,7 @@ namespace llarp
bool
UpdateExitMessage::Sign(llarp_crypto* c, const llarp::SecretKey& sk)
{
byte_t tmp[128] = {0};
byte_t tmp[512] = {0};
auto buf = llarp::StackBuffer< decltype(tmp) >(tmp);
Y.Randomize();
if(!BEncode(&buf))

@ -424,7 +424,7 @@ namespace llarp
{
llarp_time_t now = Now();
huint32_t nextIP = {0};
RouterID ident(addr);
AlignedBuffer< 32 > ident(addr);
{
// previously allocated address
auto itr = m_AddrToIP.find(ident);

Loading…
Cancel
Save