MCPcopy Create free account
hub / github.com/PurpleI2P/i2pd / EncodePoint

Method EncodePoint

libi2pd/Ed25519.cpp:436–441  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

434 }
435
436 void Ed25519::EncodePoint (const EDDSAPoint& p, uint8_t * buf) const
437 {
438 EncodeBN (p.y, buf,EDDSA25519_PUBLIC_KEY_LENGTH);
439 if (BN_is_bit_set (p.x, 0)) // highest bit
440 buf[EDDSA25519_PUBLIC_KEY_LENGTH - 1] |= 0x80; // set highest bit
441 }
442
443 template<int len>
444 BIGNUM * Ed25519::DecodeBN (const uint8_t * buf) const

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected