HomeSort by relevance Sort by last modified time
    Searched refs:keyBytes (Results 1 - 25 of 27) sorted by null

1 2

  /external/chromium_org/third_party/tlslite/tlslite/utils/
RC4.py 6 def __init__(self, keyBytes, implementation):
7 if len(keyBytes) < 16 or len(keyBytes) > 256:
Python_RC4.py 12 keyBytes = stringToBytes(key)
16 j = (j + S[i] + keyBytes[i % len(keyBytes)]) % 256
  /libcore/luni/src/main/java/org/apache/harmony/security/x509/
X509PublicKey.java 25 private final byte[] keyBytes;
27 public X509PublicKey(String algorithm, byte[] encoded, byte[] keyBytes) {
30 this.keyBytes = keyBytes;
51 // buf.append(Arrays.toString(keyBytes));
  /external/apache-harmony/auth/src/test/java/common/org/apache/harmony/auth/tests/javax/security/auth/kerberos/
KerberosKeyTest.java 43 private final byte[] keyBytes = new byte[] { 0x00, 0x01, 0x02, 0x03, 0x04,
53 assertNull(new KerberosKey(null, keyBytes, 0, 0).getPrincipal());
55 // NPE for null keyBytes parameter
63 KerberosKey key = new KerberosKey(principal, keyBytes, 1, 123);
71 key = new KerberosKey(principal, keyBytes, 0, 0);
121 KerberosKey key = new KerberosKey(principal, keyBytes, 1, 123);
124 assertTrue("encoded", Arrays.equals(keyBytes, keyBytes1));
127 assertNotSame("keyBytes immutability 1 ", keyBytes, keyBytes1);
128 assertNotSame("keyBytes immutability 2 ", keyBytes1, key.getEncoded())
    [all...]
KerberosTicketTest.java 325 byte[] keyBytes = sKey.getEncoded();
327 assertTrue(Arrays.equals(sessionKey, keyBytes));
  /frameworks/base/core/java/android/net/nsd/
DnsSdTxtRecord.java 70 byte[] keyBytes;
83 keyBytes = key.getBytes("US-ASCII");
89 for (int i = 0; i < keyBytes.length; i++) {
90 if (keyBytes[i] == '=') {
95 if (keyBytes.length + valLen >= 255) {
103 insert(keyBytes, valBytes, currentLoc);
168 private void insert(byte[] keyBytes, byte[] value, int index) {
178 avLen = keyBytes.length + valLen + (value != null ? 1 : 0);
186 System.arraycopy(keyBytes, 0, mData, insertion + 1, keyBytes.length)
    [all...]
  /external/bouncycastle/bcprov/src/main/java/org/bouncycastle/crypto/engines/
RC4Engine.java 111 private void setKey(byte[] keyBytes)
113 workingKey = keyBytes;
136 i2 = ((keyBytes[i1] & 0xff) + engineState[i] + i2) & 0xff;
141 i1 = (i1+1) % keyBytes.length;
  /external/chromium_org/chrome/android/java/src/org/chromium/chrome/browser/
WebappAuthenticator.java 99 byte[] keyBytes = new byte[MAC_KEY_BYTE_COUNT];
101 if (MAC_KEY_BYTE_COUNT != input.read(keyBytes)) {
106 return new SecretKeySpec(keyBytes, algorithmName);
126 byte[] keyBytes = key.getEncoded();
127 if (MAC_KEY_BYTE_COUNT != keyBytes.length) {
128 Log.e(TAG, "writeKeyToFile got key encoded bytes length " + keyBytes.length +
135 output.write(keyBytes);
  /libcore/crypto/src/main/java/org/conscrypt/
OpenSSLMac.java 83 final byte[] keyBytes = key.getEncoded();
84 if (keyBytes == null) {
88 macKey = new OpenSSLKey(NativeCrypto.EVP_PKEY_new_mac_key(evp_pkey_type, keyBytes));
  /external/oauth/core/src/main/java/net/oauth/signature/
HMAC_SHA1.java 69 byte[] keyBytes = keyString.getBytes(ENCODING);
70 this.key = new SecretKeySpec(keyBytes, MAC_NAME);
  /libcore/luni/src/test/java/libcore/javax/crypto/
CipherInputStreamTest.java 33 private final byte[] keyBytes = { 127, -2, -95, -39, 35, 118, 121, -92 };
39 key = new SecretKeySpec(keyBytes, "DES");
  /frameworks/base/keystore/java/android/security/
AndroidKeyStore.java 213 byte[] keyBytes = null;
240 keyBytes = key.getEncoded();
241 if (keyBytes == null) {
327 && !mKeyStore.importKey(Credentials.USER_PRIVATE_KEY + alias, keyBytes,
  /external/chromium_org/third_party/icu/source/tools/genrb/
reslist.h 92 bundle_addKeyBytes(struct SRBRoot *bundle, const char *keyBytes, int32_t length, UErrorCode *status);
reslist.c     [all...]
  /external/icu4c/tools/genrb/
reslist.h 92 bundle_addKeyBytes(struct SRBRoot *bundle, const char *keyBytes, int32_t length, UErrorCode *status);
reslist.c     [all...]
  /frameworks/base/packages/SettingsProvider/src/com/android/providers/settings/
SettingsBackupAgent.java 762 byte[] keyBytes = key.getBytes();
763 totalSize += INTEGER_BYTE_COUNT + keyBytes.length;
764 values[backedUpSettingIndex * 2] = keyBytes;
    [all...]