ParagonIE\Halite\Asymmetric\SignatureSecretKey::__construct PHP Method

__construct() public method

public __construct ( HiddenString $keyMaterial )
$keyMaterial ParagonIE\Halite\HiddenString - The actual key data
    public function __construct(HiddenString $keyMaterial)
    {
        if (CryptoUtil::safeStrlen($keyMaterial->getString()) !== \Sodium\CRYPTO_SIGN_SECRETKEYBYTES) {
            throw new InvalidKey('Signature secret key must be CRYPTO_SIGN_SECRETKEYBYTES bytes long');
        }
        parent::__construct($keyMaterial);
        $this->isSigningKey = true;
    }