question: public byte [ ] generateMwk ( byte [ ] desBytes ) { if ( debug ) { Debug . logInfo ( "DES Key : " + StringUtil . toHexString ( desBytes ) + " / " + desBytes . length , module ) ; } SecretKeyFactory skf1 = null ; SecretKey mwk = null ; try { skf1 = SecretKeyFactory . getInstance ( "DESede" ) ; } catch ( NoSuchAlgorithmException e ) { Debug . logError ( e , module ) ; } DESedeKeySpec desedeSpec2 = null ; try { desedeSpec2 = new DESedeKeySpec ( desBytes ) ; } catch ( InvalidKeyException e ) { Debug . logError ( e , module ) ; } if ( skf1 != null && desedeSpec2 != null ) { try { mwk = skf1 . generateSecret ( desedeSpec2 ) ; } catch ( InvalidKeySpecException e ) { Debug . logError ( e , module ) ; } } if ( mwk != null ) { return generateMwk ( mwk ) ; } else { return null ; } }
target:  Generate a new MWK