System.arraycopy(k, k.length-bytes.length, bytes, 0, bytes.length);
System.arraycopy(vals, vals.length-bytes.length, bytes, 0, bytes.length);
    private void testECNR192bitPrime()        throws Exception    {        BigInteger r  = new BigInteger("2474388605162950674935076940284692598330235697454145648371");        BigInteger s  = new BigInteger("2997192822503471356158280167065034437828486078932532073836");        SecureRandom    k = new SecureRandom()        {            public void nextBytes(byte[] bytes)            {                byte[] k = new BigInteger("700000017569056646655505781757157107570501575775705779575555657156756655").toByteArray();                System.arraycopy(k, k.length-bytes.length, bytes, 0, bytes.length);            }        };        ECCurve.Fp curve = new ECCurve.Fp(            new BigInteger("6277101735386680763835789423207666416083908700390324961279"), // q (or p)            new BigInteger("FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEFFFFFFFFFFFFFFFC", 16),   // a            new BigInteger("64210519E59C80E70FA7E9AB72243049FEB8DEECC146B9B1", 16));  // b                ECParameterSpec spec = new ECParameterSpec(            curve,            curve.decodePoint(Hex.decode("03188DA80EB03090F67CBF20EB43A18800F4FF0AFD82FF1012")), // G            new BigInteger("6277101735386680763835789423176059013767194773182842284081")); // n                ECPrivateKeySpec priKey = new ECPrivateKeySpec(            new BigInteger("651056770906015076056810763456358567190100156695615665659"), // d            spec);        ECPublicKeySpec pubKey = new ECPublicKeySpec(            curve.decodePoint(Hex.decode("0262B12D60690CDCF330BABAB6E69763B471F994DD702D16A5")), // Q            spec);        Signature           sgr = Signature.getInstance("SHA1withECNR", "BC");        KeyFactory          f = KeyFactory.getInstance("ECDSA", "BC");        byte[] message = new byte[] { (byte)'a', (byte)'b', (byte)'c' };                checkSignature(192, priKey, pubKey, sgr, k, message, r, s);    }