(...args)
| 1505 | } |
| 1506 | /* High-level API */ |
| 1507 | function checkArrayTypes(...args) { |
| 1508 | var t, i; |
| 1509 | for (i = 0; i < arguments.length; i++) { |
| 1510 | if ((t = Object.prototype.toString.call(arguments[i])) !== '[object Uint8Array]') |
| 1511 | throw new TypeError('unexpected type ' + t + ', use Uint8Array'); |
| 1512 | } |
| 1513 | } |
| 1514 | /** |
| 1515 | * Returns a raw shared key between own private key and peer's public key (in other words, this is an ECC Diffie-Hellman function X25519, performing scalar multiplication). |
| 1516 | * |
no test coverage detected