private void initWithKey ( byte [ ] key ) throws SymmetricKeyException { if ( key == null ) throw new SymmetricKeyException ( "Key cannot be null" ) ; if ( key . length != KEY_SIZE ) throw new SymmetricKeyException ( "Key size is not " + KEY_SIZE + "bytes" ) ; keyData = key ; }
Initialize the object with a raw key of 32 bytes size .