PHP Classes

File: src/Asymmetric/PublicKey.php

Recommend this page to a friend!
  Classes of Scott Arciszewski   Halite   src/Asymmetric/PublicKey.php   Download  
File: src/Asymmetric/PublicKey.php
Role: Class source
Content type: text/plain
Description: Class source
Class: Halite
Perform cryptography operations with libsodium
Author: By
Last change: For version 2, let's use strict types!
Date: 8 years ago
Size: 548 bytes
 

Contents

Class file image Download
<?php
declare(strict_types=1);
namespace
ParagonIE\Halite\Asymmetric;

use \
ParagonIE\Halite\Contract;
use \
ParagonIE\Halite\Key;

class
PublicKey extends Key implements Contract\KeyInterface
{
   
/**
     * @param string $keyMaterial - The actual key data
     * @param bool $signing - Is this a signing key?
     */
   
public function __construct(string $keyMaterial = '', ...$args)
    {
       
$signing = \count($args) >= 1
           
? $args[0]
            :
false;
       
parent::__construct($keyMaterial, true, $signing, true);
    }
}