PreAuthenticationData : 0x30 LL 0xA1 LL 0x02 0x01 padata-type 0xA2 LL 0x04 LL padata-value
949596979899100101102103104
ByteBuffer bb = ByteBuffer.allocate( checksum.computeLength() ); try { bb = checksum.encode( bb ); // Check the length assertEquals( 0x11, bb.limit() ); String encodedPdu = Strings.dumpBytes( bb.array() );
8283848586878889909192
ByteBuffer bb = ByteBuffer.allocate( checksum.computeLength() ); try { bb = checksum.encode( bb ); // Check the length assertEquals( 0x11, bb.limit() ); String encodedPdu = Strings.dumpBytes(bb.array());
4849505152535455565758
PaData pad = new PaData( PaDataType.PA_ASF3_SALT, new byte[] { 0x01, 0x02, 0x03 } ); ByteBuffer encoded = ByteBuffer.allocate( pad.computeLength() ); pad.encode( encoded ); byte[] expectedResult = new byte[] { 0x30, 0x0c, ( byte ) 0xA1, 0x03,
7172737475767778798081
{ PaData pad = new PaData( PaDataType.PA_ASF3_SALT, null ); ByteBuffer encoded = ByteBuffer.allocate( pad.computeLength() ); pad.encode( encoded ); byte[] expectedResult = new byte[] { 0x30, 0x09, ( byte ) 0xA1, 0x03,
4748495051525354555657
7071727374757677787980