src/Util/RSA.php
private static function convertIntegerToOctetString($x, $xLen)
    {
        $x = $x->toBytes();
        if (strlen($x) > $xLen) {
            return false;
        }

        return str_pad($x, $xLen, chr(0), STR_PAD_LEFT);
    }
private static function convertIntegerToOctetString($x, $xLen)
    {
        $x = $x->toBytes();
        if (strlen($x) > $xLen) {
            return false;
        }

        return str_pad($x, $xLen, chr(0), STR_PAD_LEFT);
    }
private static function convertIntegerToOctetString ( $ x , $ xLen ) { $ x = $ x -> toBytes ( ) ; if ( strlen ( $ x ) > $ xLen ) { return false ; } return str_pad ( $ x , $ xLen , chr ( 0 ) , STR_PAD_LEFT ) ; }
Integer-to-Octet-String primitive.

@param \Jose\Util\BigInteger $x
@param int                   $xLen

@return string
Integer - to - Octet - String primitive .