private static function createInfo($type, $context) { if (Utils::safeStrlen($context) !== 135) { throw new \ErrorException('Context argument has invalid size'); } return 'Content-Encoding: ' . $type . chr(0) . 'P-256' . $context; }