805806807808809810811812813814815
// write a v3 private key // bOut = new ByteArrayOutputStream(); pOut = new BCPGOutputStream(bOut); pgpPriv.encode(pOut); if (!areEqual(bOut.toByteArray(), testPrivKeyV3)) { fail("private key V3 rewrite failed"); }
825826827828829830831832833834835
// write a private key // bOut = new ByteArrayOutputStream(); pOut = new BCPGOutputStream(bOut); pgpPriv.encode(pOut); if (!areEqual(bOut.toByteArray(), testPrivKey)) { fail("private key rewrite failed"); }
893894895896897898899900901902903
913914915916917918919920921922923
668669670671672673674675676677678
688689690691692693694695696697698