For historical reasons libsignal's PublicKey.init(_:) allows trailing data, because the type byte specifies how much of the data is relevant anyway. init(keyBytes:), however, should not be so lax, since it's assuming the key data is a Curve25519 public point. |
||
|---|---|---|
| .. | ||
| ECKeyPairTest.swift | ||