This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.machfour.example.app | |
import android.content.Context | |
import android.os.Build | |
import android.util.AttributeSet | |
import android.util.Log | |
import android.view.inputmethod.InputMethodManager | |
import android.widget.AbsListView | |
import android.widget.AutoCompleteTextView | |
import android.widget.ListPopupWindow |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* Let function f() be the DES confusion function, without the bit | |
* permutation PC. It has two inputs (32-bit value x, which is the | |
* right-half of the current DES block, and 48-bit subkey k) and | |
* a 32-bit output. | |
*/ | |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <string.h> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class ScrollTextView extends TextView { | |
public ScrollTextView(Context context) { | |
super(context); | |
} | |
public ScrollTextView(Context context, AttributeSet attrs) { | |
super(context, attrs); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class Util { | |
/** | |
* DES Keys use the LSB as the odd parity bit. This method can | |
* be used enforce correct parity. | |
* | |
* @param bytes the byte array to set the odd parity on. | |
*/ | |
public static void adjustDESParity (byte[] bytes) { | |
for (int i = 0; i < bytes.length; i++) { |