libcryptosec
Public Member Functions | Protected Attributes | Static Protected Attributes | List of all members

Classe usada para representar curvas elípticas. Esta classe possui funções para que os parâmetros das curvas sejam obtidos ou gerados a partir de um arquivo em PEM/DER. More...

#include <EllipticCurve.h>

Public Member Functions

 EllipticCurve ()
 
 EllipticCurve (ByteArray &encoded)
 
 EllipticCurve (std::string &encoded)
 
 ~EllipticCurve ()
 
const BIGNUM * BN_a () const throw ()
 
const BIGNUM * BN_b () const throw ()
 
const BIGNUM * BN_p () const throw ()
 
const BIGNUM * BN_x () const throw ()
 
const BIGNUM * BN_y () const throw ()
 
const BIGNUM * BN_order () const throw ()
 
const BIGNUM * BN_cofactor () const throw ()
 
const BigInteger getA () const
 
void setA (const BigInteger a)
 
void setA (const std::string hex)
 
const BigInteger getB () const
 
void setB (const BigInteger b)
 
void setB (const std::string hex)
 
const BigInteger getCofactor () const
 
void setCofactor (const BigInteger cofactor)
 
void setCofactor (const std::string hex)
 
const std::string getName () const
 
void setName (const std::string name)
 
const std::string getOid () const
 
void setOid (const std::string oid)
 
const BigInteger getOrder () const
 
void setOrder (const BigInteger order)
 
void setOrder (const std::string hex)
 
const BigInteger getP () const
 
void setP (const BigInteger p)
 
void setP (const std::string hex)
 
const BigInteger getX () const
 
void setX (const BigInteger x)
 
void setX (const std::string hex)
 
const BigInteger getY () const
 
void setY (const BigInteger y)
 
void setY (const std::string hex)
 

Protected Attributes

std::string oid
 
std::string name
 
BigInteger a
 
BigInteger b
 
BigInteger p
 
BigInteger x
 
BigInteger y
 
BigInteger order
 
BigInteger cofactor
 

Static Protected Attributes

static const std::string notSpecified = "Not Specified"
 

Detailed Description

Classe usada para representar curvas elípticas. Esta classe possui funções para que os parâmetros das curvas sejam obtidos ou gerados a partir de um arquivo em PEM/DER.

Constructor & Destructor Documentation

◆ EllipticCurve() [1/3]

EllipticCurve::EllipticCurve ( )

◆ EllipticCurve() [2/3]

EllipticCurve::EllipticCurve ( ByteArray encoded)

Cria uma curva elíptica a partir da descrição de seus parâmetros codificados em DER.

Parameters
encodedparâmetros de curva o formato DER.

◆ EllipticCurve() [3/3]

EllipticCurve::EllipticCurve ( std::string &  encoded)

Cria uma curva elíptica a partir da descrição de seus parâmetros codificados em PEM.

Parameters
encodedparâmetros de curva o formato PEM.

◆ ~EllipticCurve()

EllipticCurve::~EllipticCurve ( )

Member Function Documentation

◆ BN_a()

const BIGNUM * EllipticCurve::BN_a ( ) const
throw (
)

◆ BN_b()

const BIGNUM * EllipticCurve::BN_b ( ) const
throw (
)

◆ BN_cofactor()

const BIGNUM * EllipticCurve::BN_cofactor ( ) const
throw (
)

◆ BN_order()

const BIGNUM * EllipticCurve::BN_order ( ) const
throw (
)

◆ BN_p()

const BIGNUM * EllipticCurve::BN_p ( ) const
throw (
)

◆ BN_x()

const BIGNUM * EllipticCurve::BN_x ( ) const
throw (
)

◆ BN_y()

const BIGNUM * EllipticCurve::BN_y ( ) const
throw (
)

◆ getA()

const BigInteger EllipticCurve::getA ( ) const

◆ getB()

const BigInteger EllipticCurve::getB ( ) const

◆ getCofactor()

const BigInteger EllipticCurve::getCofactor ( ) const

◆ getName()

const std::string EllipticCurve::getName ( ) const

◆ getOid()

const std::string EllipticCurve::getOid ( ) const

◆ getOrder()

const BigInteger EllipticCurve::getOrder ( ) const

◆ getP()

const BigInteger EllipticCurve::getP ( ) const

◆ getX()

const BigInteger EllipticCurve::getX ( ) const

◆ getY()

const BigInteger EllipticCurve::getY ( ) const

◆ setA() [1/2]

void EllipticCurve::setA ( const BigInteger  a)

◆ setA() [2/2]

void EllipticCurve::setA ( const std::string  hex)

◆ setB() [1/2]

void EllipticCurve::setB ( const BigInteger  b)

◆ setB() [2/2]

void EllipticCurve::setB ( const std::string  hex)

◆ setCofactor() [1/2]

void EllipticCurve::setCofactor ( const BigInteger  cofactor)

◆ setCofactor() [2/2]

void EllipticCurve::setCofactor ( const std::string  hex)

◆ setName()

void EllipticCurve::setName ( const std::string  name)

◆ setOid()

void EllipticCurve::setOid ( const std::string  oid)

◆ setOrder() [1/2]

void EllipticCurve::setOrder ( const BigInteger  order)

◆ setOrder() [2/2]

void EllipticCurve::setOrder ( const std::string  hex)

◆ setP() [1/2]

void EllipticCurve::setP ( const BigInteger  p)

◆ setP() [2/2]

void EllipticCurve::setP ( const std::string  hex)

◆ setX() [1/2]

void EllipticCurve::setX ( const BigInteger  x)

◆ setX() [2/2]

void EllipticCurve::setX ( const std::string  hex)

◆ setY() [1/2]

void EllipticCurve::setY ( const BigInteger  y)

◆ setY() [2/2]

void EllipticCurve::setY ( const std::string  hex)

Member Data Documentation

◆ a

BigInteger EllipticCurve::a
protected

◆ b

BigInteger EllipticCurve::b
protected

◆ cofactor

BigInteger EllipticCurve::cofactor
protected

◆ name

std::string EllipticCurve::name
protected

◆ notSpecified

const std::string EllipticCurve::notSpecified = "Not Specified"
staticprotected

◆ oid

std::string EllipticCurve::oid
protected

◆ order

BigInteger EllipticCurve::order
protected

◆ p

BigInteger EllipticCurve::p
protected

◆ x

BigInteger EllipticCurve::x
protected

◆ y

BigInteger EllipticCurve::y
protected

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