From owner-freebsd-chat Thu Mar 15 5:55:15 2001 Delivered-To: freebsd-chat@freebsd.org Received: from nef.ens.fr (nef.ens.fr [129.199.96.32]) by hub.freebsd.org (Postfix) with ESMTP id DFD5237B71D for ; Thu, 15 Mar 2001 05:55:10 -0800 (PST) (envelope-from Rahul.Siddharthan@lpt.ens.fr) Received: from corto.lpt.ens.fr (corto.lpt.ens.fr [129.199.122.2]) by nef.ens.fr (8.10.1/1.01.28121999) with ESMTP id f2FDsrr14009 ; Thu, 15 Mar 2001 14:54:53 +0100 (CET) Received: from (rsidd@localhost) by corto.lpt.ens.fr (8.9.3/jtpda-5.3.1) id OAA34325 ; Thu, 15 Mar 2001 14:54:53 +0100 (CET) Date: Thu, 15 Mar 2001 14:54:53 +0100 From: Rahul Siddharthan To: Brad Knowles Cc: Neil Blakey-Milner , Dan Langille , freebsd-chat@FreeBSD.ORG Subject: signature (was Re: copyright issues regarding FreeBSD ISOs/CDs) Message-ID: <20010315145452.C33560@lpt.ens.fr> Mail-Followup-To: Brad Knowles , Neil Blakey-Milner , Dan Langille , freebsd-chat@FreeBSD.ORG References: <200103141336.f2EDaZ215574@ns1.unixathome.org>; <20010314153955.A17985@rapier.smartspace.co.za> <200103141342.f2EDga215670@ns1.unixathome.org> <20010314154654.A18459@rapier.smartspace.co.za> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: ; from brad.knowles@skynet.be on Wed, Mar 14, 2001 at 03:01:18PM +0100 X-Operating-System: FreeBSD 3.4-STABLE i386 Sender: owner-freebsd-chat@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Brad Knowles said on Mar 14, 2001 at 15:01:18: > -- > Brad Knowles, > > #!/usr/bin/perl -w > # 531-byte qrpff-fast, Keith Winstein and Marc Horowitz > # MPEG 2 PS VOB file on stdin -> descrambled output on stdout > # arguments: title key bytes in least to most-significant order > # Usage: > # qrpff 153 2 8 105 225 /mnt/dvd/VOB_FILE_NAME | extract_mpeg2 | mpeg2_dec - > $_='while(read+STDIN,$_,2048){$a=29;$b=73;$c=142;$t=255;@t=map{$_%16or$t^=$c^=( > $m=(11,10,116,100,11,122,20,100)[$_/16%8])&110;$t^=(72,@z=(64,72,$a^=12*($_%16 > -2?0:$m&17)),$b^=$_%64?12:0,@z)[$_%8]}(16..271);if((@a=unx"C*",$_)[20]&48){$h > =5;$_=unxb24,join"",@b=map{xB8,unxb8,chr($_^$a[--$h+84])}@ARGV;s/...$/1$&/;$ > d=unxV,xb25,$_;$e=256|(ord$b[4])<<9|ord$b[3];$d=$d>>8^($f=$t&($d>>12^$d>>4^ > $d^$d/8))<<17,$e=$e>>8^($t&($g=($q=$e>>14&7^$e)^$q*8^$q<<6))<<9,$_=$t[$_]^ > (($h>>=8)+=$f+(~$g&$t))for@a[128..$#a]}print+x"C*",@a}';s/x/pack+/g;eval Speaking of signatures... have you seen this one? Also from Touretzky's site, and apparently very fast -- faster than the spec allows for. -- /* efdtt.c Author: Charles M. Hannum */ /* */ /* Usage is: cat title-key scrambled.vob | efdtt >clear.vob */ #define K(i)(x[i]^s[i+84])<< unsigned char x[5],y,z,s[2048];main(n){for(read(0,x,5);read(0,s,n=2048);write(1 ,s,n))if(s[y=s[13]%8+20]/16%4==1){int i=K(1)17^256+K(0)8,k=K(2)0,j=K(4)17^K(3)9 ^k*2-k%8^8,a=0,b=0,c=26;for(s[y]-=16;--c;i/=2,j/=2)a=a*2^i&1,b=b*2^j&1;for(j= 127;++jy)a^=a>>14,a=a>>8^(y=a^a*8^a<<6)<<9,b=b>>8^(z=b^b/8^b>>4^b>>12) <<17,i=s[j],i="7Wo~'G_\216"[i&7]+2^"cr3sfw6v;*k+>/n."[i>>4]*2^i*257/8,s[j]=i^(i &i*2&34)*6^z+c+~y;}} To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-chat" in the body of the message