key_bytes ); } /** * Gets the raw bytes of the key. * * @return string */ public function getRawBytes() { return $this->key_bytes; } /** * Constructs a new Key object from a string of raw bytes. * * @param string $bytes * * @throws Ex\EnvironmentIsBrokenException */ private function __construct($bytes) { if (Core::ourStrlen($bytes) !== self::KEY_BYTE_SIZE) { throw new Ex\EnvironmentIsBrokenException( 'Bad key length.' ); } $this->key_bytes = $bytes; } }