public static byte [ ] rawDigest ( final String alg , final byte [ ] data ) { try { val digest = getMessageDigestInstance ( alg ) ; return digest . digest ( data ) ; } catch ( final Exception cause ) { throw new SecurityException ( cause ) ; } }
Computes digest .