February 17, 2004

Code Beautifier.

This is a test of the code beautifier. // Returns the signature for the given buffer of bytes using the private key. public static byte[] createSignature(PrivateKey key, byte[] buffer) { try { Signature sig = Signature.getInstance(key.getAlgorithm()); sig.initSign(key); sig.update(buffer, 0, buffer.length); return sig.sign(); } catch (SignatureException e) { } catch (InvalidKeyException e) { } catch (NoSuchAlgorithmException e) { } return null; } So. Look good ? Posted by Lemming at February 17, 2004 11:42 PM