20 October 2011

Pi

Pi
Seems that By Alexander J. Yee numberworld isnt using any NVIDIA processors, just Intel CPUs to calculate 10Trillion digits of Pi.

Hes using Intel 'Xeon 5680' which is a 6 core superior to the i7 (at $1600 it oughta be)
He says he hasnt done any work on CUDA
but "v0.5.5 is faster on processors with AVX instructions."

aaa


tomshardware

for some sexy motherboard pics:
pcguide


Meanwhile, If you merely want to run other-region DVDs, get VideoLAN software
Its grand that LapTops have HDMI sockets.
Who needs a TV set?     (except: "that 70's show" isnt on Demand...)
Not So grand that I dont have a "Home Theatre"

Of Course if you live in Sydney you can get "multi-region' DVD players... they arent allowed to advertise as such, but downtown Sydney had charming "Barkers" outside stores shouting "get your unlocked DVD playes here" (is this still true?)
great for those 20-title DVDs you picked up in PatPong

Intel i5 chip seems adequate, get an i7 if you like.

If you want heavy games, better get a tower with slots for NVIDIA cards.
Never been into games much, myself, same as Steve Jobs.



More Motherboard Porn:
theinquirer
"you may indeed have assembled the fastest/most powerful single-motherboard computer in history."
Note the liquid Nitrogen cooling. Youd want to be careful, ... N2 is a well known murder weapon - if the gas displaces the oxygen you may never wake up.
aaa


_____________________________________________________________________________
nb I have altered the translation of Leopold Kronecker's remark...
note that Integers are Positive Natural numbers, so it appears that God created negative numbers...

12 October 2011

CUDA, Supercomputing for the Masses:

CUDA, Supercomputing for the Masses:
Part 1 .... Part 21
(Dr Dobbs series... DDJ is one site thats worth registering .. they dont block safetymail.info...)
DDJ



NVidia Graphics cards , massively parallel, speed up calculations 10x-100x
Since 2007 NVIDIAs CUDA has brought super-computing to anyone with a game card...

"GeForce GT 220 packs 48 processing cores into a compact power efficient.."(< $80)   2009

 this year: NVIDIA® GeForce® GTX 550 Ti graphics processing unit (GPU) $150 "GPU called GF116,"
... Ti is a Fermi?? newegg

:The refreshed Fermi chip is large: it includes 512 stream processors, grouped in 16 stream multiprocessors clusters (each with 32 CUDA cores)," ??

The GF116 has a single Graphics Processing Cluster (GPC), with four Streaming Multiprocessors (SMs). Each SM contains 48 shader cores, four dispatch units, and eight texture units. All told, GF116 employs 192 shader cores, four Polymorph engines (one per SM), and 32 texture units.??

... and all three ROP partitions are fully functional.. similar to the uncut GF106 GPU in Nvidia's GeForce GTX 460M mobile graphics module. With each of the three ROP partitions capable of eight 32-bit integer pixels per clock, we have 24 ROPs and a cumulative 192-bit memory interface..
(24 * 32bits per clock doesnt sound all that grand .. maybe a "shader unit" can do a multiply?)


..............................................
ATI (AMD) Radeon HD 5770 features the exact core configuration of the Radeon HD 4870 and 4890: 800 SPUs, 40 TAUs (Texture Address Units) and 16 ROPs (Rasterization Operator Units).
might be better than NVIDIA, but as NVIDIA write CUDA , they might be more copasetic
"The Radeon HD 5770 features a remarkably low 18 watt idle consumption level, making it one of the most efficient graphics cards available today. When pushing the card to the extreme it will still suck up to 108 watts, but even with the increased thermal stress, noise levels were comparable to those of the Radeon HD 4770 or GeForce GTS 250 graphics cards."
...........................................
Jargon ROP Raster Operations Partition? ROP partition = ROPs + memory controllers + L2 cache .
...........................................
GeForce GTX 295 Each GPU features the full array of 240 processing cores and 80 texture filtering units. The processor cores and filtering units operate at 1242 MHz and 576 MHz respectively ($500? fits in one slot?)
There are GPU cards up to $700.




Either pay $$ for Mathematica 8 ..'Native support for Compute Unified Device Architecture (CUDA) and OpenCL GPU'
or write yr own.

Me, I'd like to set a couple of cards making Carmicheal numbers and seeing how many Miller-Rabin bases I can fox.
At 2048 bits, any more than 2 bases would be fun!



I'm assuming that GeForce work well on Integers. Surely better than AMD 8-core Bulldozers ($205-4245)
cnet


Since I dont do games, or huge monitors, most of the fun would be lost if I bought a DEsktop and a couple of GPU cards
...........................................................................................
Java
jcuda
JCublas is a library that makes it it possible to use CUBLAS, the NVIDIA CUDA implementation of the Basic Linear Algebra Subprograms, in Java applications.

JCublas provides methods for
Vector operations (Level 1 BLAS)
Matrix-Vector operations (Level 2 BLAS)
Matrix-Matrix operations (Level 3 BLAS)

- so no Integers??
I suppose that means dusting off JNI
nvidia

................................
Some Integer work in C: Jeet Chauhan Summer 2010 - a quick eyeball seems to show that Chauhan is NOT using BigInt, ie integers < 2^32 - no fun!!! calstate

__________________________________________________________________
Jolt
More DDJ stuff...
winners of the 2011 Jolt Awards for books, the winner of the top prize,
 Continuous Delivery by Jez Humble and David Farley, was a run-away #1 choice
Continuous Delivery: Reliable Software Releases through Build, Test, and Deployment Automation (Addison-Wesley Signature Series (Fowler)) [Hardcover]Jez Humble (Author), David Farley (Author)

DDJ

Reliable Releases - this seems to be a lasting fashion, cant be bad..
(Jolt was (is?) a cola with "all of the sugar and twice the caffeine?)

10 October 2011

News

Bogota's brilliant Bus system .. seems to be using NFC ("HID")
1.7 million trips/day
treehugger
______________________________________________________
__________________________________________________
FIPS 201 ended up being operating system agnostic, though implementations have all been based on the Java Card OS. There were MULTOS-approved systems when FIPS 201 first came out but agencies have exclusively deployed Java Card, says Neville Pattinson, vice president of government affairs at Gemalto.
CAC/PIV
To date U.S. government agencies have issued more than 4.8 million credentials running the Java Card OS.
fips201

Army Knowledge Online AKO..Internet Explorer 6 ..Tools > Internet Options> Advanced Tab, scroll down to the Security section. check "Use TLS 1.0" ..
.. Mozilla Firefox, go to: Tools > Options > Advanced > Encryption..
Chrome TLS1.0 by default wrench, Options, "Under the Hood" Tab, Change proxy settings,
.."Advanced" Tab, Scoll down and check TLS 1.0
__________________________________
"What AKO tries to do is provide a layer of protection, so in addition to just using a password, you can supply answers to questions about yourself," he said. "Who was your first teacher, the first person you kissed' It'll be answers known only by you. ..
..one more layer of security that defeat keystroke loggers," ...

army
__________________________________________


Thales never sleeps

16 August 2011 Thales, ... announces the world’s first software for Hardware Security Modules (HSMs) that enables mobile payment issuers to deliver their mobile payment applications to mobile handsets Over-The-Air (OTA) in a simple, efficient and secure manner.
..
Today’s mobile payments issuers have to use multiple core cryptographic function calls to build the data needed to issue a payment application and to create the secure messages required to personalize the mobile phone with the application Over-The-Air (OTA)..
Thales HSMs now provide for the first time the ability to create a secure message to personalize a payment application hosted in a GlobalPlatform Secure Element, resident in a mobile phone using a single dedicated cryptographic HSM call...
thalesgroup
paymentssecurity
___________________________
Sydney U researches smart transport:
? Does Sydney have a BusCArd Yet? Is this report worth $25?
edu
_________________________________________________

Sydney Oyster/Opal 2014 $1B
Sydney's version of a universal public transport card .. will be called Opal...
The card will first be introduced on Sydney Ferries by December next year, she said.
.. following year it will be trains, the following year after that it will be buses  " ..
She said the system had been bought from and would be operated by the people behind London's Oyster card, and would cost just over $1E9. NSW Transport Minister Gladys Berejiklian says.
September 13, 2011 AP
smh
_________________________________________________
Vodafone Italia and CartaSi .. launch of the Vodafone Smart Pass, a pre-paid ... NFC... .. associated to mobile phone number .. CartaSi channels... and MasterCard.
_________________________________________________


Aug 16 2011
Motorola Gives Google Chance to Control More Secure Elements
Lower NFC Phone Shipments....
..offers Google a way to control the secure chips in more NFC phones.
Google needs ...control of the ..secure elements for its Google Wallet...trademarked .."SingleTap"
..no problem .. with the Nexus S 4G, ..so far the only phone model onboard for the wallet launch, expected next month in the US..
..ordered it with an embedded secure element from..NXP..
But for other Android phones, Google would have to make deals with handset makers or mobile operators to allow it to manage the wallet applications, ..
...willing to work with mobile operators to put the Google Wallet applications onto these SIMs, perhaps renting space on the cards from the telcos. But the Google Wallet would compete with the operators’ own wallets,..
.. Motorola, .. 11% of the U.S. smartphone market with its Android handsets and about 2% of the global phone market,.. Verizon..part of the Isis joint venture and wants to control all secure elements in the NFC phones it sells.
..Sprint, which is not part of Isis ..
nfctimes
____________________________
The Mobile Wallet Wars
mercatoradvisorygroup
____________________________
intel
.. Intel Advanced Vector Extensions Programming Reference (June 2011)... AVX2 (256-bit integer AVX instructions) and some VEX-encoded general-purpose instruction for bit manipulation et al.

'm assuming by an 8 core Bulldozer, they are actually really referring to a physical 4 core CPU that has 8 integer cores and 4 FPU cores. I think this terminology will trick a lot of people, because in reality, it is really only a quad processor that happens to have 2 integer units per core :). The extra cost of the extra integer unit per core was apparently very minimal, so cost wise the Bulldozer should be comparable to the Sandy-Bridge, just (supposedly) a lot faster! In addition to both having AVX instructions, the Bulldozer has the additional benefit of having what was once known as SSE5, but is now FMA4, CVT16 etc, although I'm not sure whether they will be beneficial for encoding.
popper

____________________________________

Some Skype distributions, like those available in China, have built-in back doors that make it possible for local officials to monitor communications.
____________________________________


nearfield
nearfield
viddler

nearfieldcommunicationsworld

MeeGo, the Linux-based open source operating system born from the February 2010 shotgun marriage of Nokia's Maemo and Intel's Moblin and left at the altar when Nokia hooked up with Windows Phone 7, is an "unstoppable force" that speeds device-developers' time-to-market, and it stands for "love, courage, and change."

That was the message delivered at the MeeGo Conference in San Francisco on Monday by the executive director of The Linux Foundation Jim Zemlin
_____________________________________________________________

conceivablytech

Japan’s Riken Advanced Institute.. ..fastest supercomputers.
The K Computer ....
..a peak 8.77 PFlop/s..sustained 8.2 PFlop/s
Peta = E15

..Tianhe-1.. November.. 4.7 PFlop/s, K does not use GPUs..It’s extremely difficult to exploit ..a GPU supercomputer.

K ... 68,544 2.0 GHz Fujitsu Sparc VIIIfx CPUs with 8 cores each, ..(548,352). Each core .. 16 (double-precision, DP) GFlop/s,.. slightly more than Intel.. Sandy Bridge..
45 nm chip .. 8 flop/clock/core.

8-core processor ...58 Watts.
currently 9.9 MWatts ..When finalized,... 10 PFlop/s ... 11 MWatts.
..human Brain .. 10 - 38 PFlop/s ... memory 3584 TB
we may be able to simulate a human brain next year or within 3 years. {i dont believe in this simulate a human at all}

03 October 2011

GlobalPlatform Card Key Id & Versions

GlobalPlatform Card  Key Id & Versions

1) select Card Manager     byte[] selectAPDU = Uti.asHex("00A4 0400 08 A000000003000000 ");
2) get data p2 = E0     APDU  "80 CA 00 E0 00"
this returns  E024C00401018010C00402018010C00403018010C00401038010C00402038010C00403038010
which we can unpack knowing tags E0 and C0 as
E024
  C004 01018010   id = 01 vers = 01 type = 80 (DES)  length = 10 (16 decimal)
  C004 02018010
  C004 03018010
  C004 01038010   version 03  I believe this is after me adding version 3 keys...
  C004 02038010
  C004 03038010

with tag C1 and CLA 00  get get data C1 <<<00BD>>>Sequence Counter of the default Key Version Number   ???
with tag C1 and CLA 80  C10200C5  which looks better    sequence counter (?) is C5 ???
This is said to be used to derive session keys??
In practice we use the 108100..00 derivation data, so when is this sequence counter used??
It is said that only SCP02 responds to C1,so there's a test for you...

Note the GetData CLA can be 00 or 80   80 is better.....
there is an undocumented CLA of FF which returns 2DB3BB28 irrespective of p2 .....
  seems to be uid String getUID = "FF CA 00 00 00";
------------------------------------
get data tag 66
664C
  734A
    0607 2A864886FC6B01
     600C 060A 2A864886FC6B 02     020101  211  ie GPCard Spec 2.1.1
     6309 0607 2A864886FC6B 03     IIN and CIN not seen here...
     640B 0609 2A864886FC6B 04 0215     scp 02  i 15 'implementation option'
     650B 0609 2B8510864864020103   GP does not say
     660C 060A 2B060104012A026E0102 GP does not say
   
     IIN tag 42 not seen here
     CIN tag 45 not seen here
     2A864886FC6B seems to be  {globalPlatform}
    12840114283 dec -> 2FD54986B Hex 
    {iso(1) member-body(2) country-USA(840) Global-Platform(114283)} 


    so do I decode these few items the 'hard' way 
    or do I find a library for ISO/IEC 7816-4 structure.
   (the 'difficult' way)
---------------------------------------------------------    



02 October 2011

CMAC for JCOP

CMAC
New version since Aug 2010 - everything works! thanks jcManager & braicu




        public static byte[] generateMAC_SCP02(byte[] iv, byte[] data) throws Exception {
                byte cMac[] = null;
if (data.length < 5)
                {
                    print("\n MAC data.length  < 5 \n");
                    return cMac;
                }
                int z = data[4] & 0xFF;
z = z + 8;
//padding
int dz = data.length+1;
while ((dz & 7)!=0) {
dz++;
}


byte[] dataWithPAD = new byte[dz];
int dsub = dz - 8;


System.arraycopy(data,     0, dataWithPAD,           0, data.length);
                dataWithPAD[data.length] = (byte)0x80;
dataWithPAD[4] = (byte)z;   //modify Lc with C-MAC length


SecretKeySpec desSingleKey = new SecretKeySpec(S_MAC_24,0, 8,"DES");
Cipher singleDesCipher = Cipher.getInstance("DES/CBC/NoPadding");
byte ivc[] = null;
IvParameterSpec ivSpec = new IvParameterSpec(iv);
                if (dsub > 0)                   // try as 1 op
                {
                    byte[] head = new byte [dsub];  // care dsub may = 0
                    System.arraycopy(dataWithPAD,0,head,0,dsub);
             singleDesCipher.init(Cipher.ENCRYPT_MODE, desSingleKey, ivSpec);
   ivc = singleDesCipher.doFinal(head); //Final<<<<<<<<<<<<
   ivSpec = new IvParameterSpec(ivc);
                }




SecretKeySpec desKey = new SecretKeySpec(S_MAC_24, "DESede");
Cipher cipher = Cipher.getInstance("DESede/CBC/NoPadding", "SunJCE");
cipher.init(Cipher.ENCRYPT_MODE, desKey, ivSpec);
cMac = cipher.doFinal(dataWithPAD, dsub, 8); //Final<<<<<<<<<<<<
return cMac;
}




I can even change keys (sometimes, on some cards! - there may be something about new and old key version that needs to be done right.. braicu just assumes old version = 1)