pssht  latest
SSH server library written in PHP
fpoirotte\Pssht\ECC\Point Class Reference
+ Inheritance diagram for fpoirotte\Pssht\ECC\Point:

Public Member Functions

 __construct ($x=null, $y=null)
 
 __get ($name)
 
 __set ($name, $value)
 
 isIdentity (\fpoirotte\Pssht\ECC\Curve $curve)
 
 multiply (\fpoirotte\Pssht\ECC\Curve $curve, $n)
 
 offsetExists ($offset)
 
 offsetGet ($offset)
 
 offsetSet ($offset, $value)
 
 offsetUnset ($offset)
 
 serialize (\fpoirotte\Pssht\ECC\Curve $curve)
 

Static Public Member Functions

static add (\fpoirotte\Pssht\ECC\Curve $curve,\fpoirotte\Pssht\ECC\Point $P,\fpoirotte\Pssht\ECC\Point $Q)
 
static unserialize (\fpoirotte\Pssht\ECC\Curve $curve, $s)
 

Protected Attributes

 $coordinates
 The points coordinates (x, y).
 

Detailed Description

Representation of a point on an elliptic curve.

Definition at line 17 of file Point.php.

Member Function Documentation

fpoirotte\Pssht\ECC\Point::offsetExists (   $offset)

Whether or not an offset exists.

This method is executed when using isset() or empty() on objects implementing ArrayAccess.

Parameters
mixed$offsetAn offset to check for.
Return values
booltrue is returned when the offset exists, false when it doesn't.
See also
http://php.net/arrayaccess.offsetexists.php
Note
When using empty() ArrayAccess::offsetGet() will be called and checked for emptyness only if ArrayAccess::offsetExists() returns true.

Implements ArrayAccess.

Definition at line 43 of file Point.php.

fpoirotte\Pssht\ECC\Point::offsetGet (   $offset)

Returns the value at specified offset.

This method is executed when checking if offset is empty().

Parameters
mixed$offsetThe offset to retrieve.
Return values
mixedValue at the specified offset.
See also
http://php.net/arrayaccess.offsetget.php

Implements ArrayAccess.

Definition at line 48 of file Point.php.

fpoirotte\Pssht\ECC\Point::offsetSet (   $offset,
  $value 
)

Assigns a value to the specified offset.

Parameters
mixed$offsetThe offset to assign the value to.
mixed$valueThe value to set.
See also
http://php.net/arrayaccess.offsetset.php

Implements ArrayAccess.

Definition at line 57 of file Point.php.

fpoirotte\Pssht\ECC\Point::offsetUnset (   $offset)

Unsets an offset.

Parameters
mixed$offsetThe offset to unset.
See also
http://php.net/arrayaccess.offsetunset.php
Note
This method will not be called when type-casting to (unset).

Implements ArrayAccess.

Definition at line 75 of file Point.php.


The documentation for this class was generated from the following file: