| 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 |
nothing calls this directly
no outgoing calls
no test coverage detected