| 488 | } |
| 489 | |
| 490 | size_t GetIdentityBufferLen (const uint8_t * buf, size_t len) |
| 491 | { |
| 492 | if (len < DEFAULT_IDENTITY_SIZE) return 0; |
| 493 | size_t l = DEFAULT_IDENTITY_SIZE + bufbe16toh (buf + DEFAULT_IDENTITY_SIZE - 2); |
| 494 | if (l > len) return 0; |
| 495 | return l; |
| 496 | } |
| 497 | |
| 498 | PrivateKeys& PrivateKeys::operator=(const Keys& keys) |
| 499 | { |
no test coverage detected