Home
last modified time | relevance | path

Searched refs:keyBytes (Results 1 – 25 of 25) sorted by relevance

/external/conscrypt/src/main/java/org/conscrypt/
DOpenSSLMac.java41 private byte[] keyBytes; field in OpenSSLMac
74 keyBytes = key.getEncoded(); in engineInit()
75 if (keyBytes == null) { in engineInit()
84 if (keyBytes != null) { in resetContext()
85 NativeCrypto.HMAC_Init_ex(ctxLocal, keyBytes, evp_md); in resetContext()
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/crypto/engines/
DRC4Engine.java113 private void setKey(byte[] keyBytes) in setKey() argument
115 workingKey = keyBytes; in setKey()
138 i2 = ((keyBytes[i1] & 0xff) + engineState[i] + i2) & 0xff; in setKey()
143 i1 = (i1+1) % keyBytes.length; in setKey()
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jcajce/provider/asymmetric/util/
DBaseAgreementSpi.java272 byte[] keyBytes = new byte[keySize / 8]; in engineGenerateSecret()
298 kdf.generateBytes(keyBytes, 0, keyBytes.length); in engineGenerateSecret()
300 secret = keyBytes; in engineGenerateSecret()
306 byte[] keyBytes = new byte[keySize / 8]; in engineGenerateSecret()
308 System.arraycopy(secret, 0, keyBytes, 0, keyBytes.length); in engineGenerateSecret()
310 secret = keyBytes; in engineGenerateSecret()
/external/icu/android_icu4j/src/main/java/android/icu/impl/
DUResource.java45 private Key(byte[] keyBytes, int keyOffset, int keyLength) { in Key() argument
46 bytes = keyBytes; in Key()
61 public void setBytes(byte[] keyBytes, int keyOffset) { in setBytes() argument
62 bytes = keyBytes; in setBytes()
64 for (length = 0; keyBytes[keyOffset + length] != 0; ++length) {} in setBytes()
DICUResourceBundleReader.java134 private byte[] keyBytes; field in ICUResourceBundleReader
295 keyBytes = new byte[(keysTop - keysBottom) << 2]; in init()
299 keyBytes = new byte[localKeyLimit]; in init()
301 bytes.get(keyBytes); in init()
445 private static String makeKeyStringFromBytes(byte[] keyBytes, int keyOffset) { in makeKeyStringFromBytes() argument
448 while((b = keyBytes[keyOffset]) != 0) { in makeKeyStringFromBytes()
456 return makeKeyStringFromBytes(keyBytes, keyOffset); in getKey16String()
458 return makeKeyStringFromBytes(poolBundleReader.keyBytes, keyOffset - localKeyLimit); in getKey16String()
463 return makeKeyStringFromBytes(keyBytes, keyOffset); in getKey32String()
465 return makeKeyStringFromBytes(poolBundleReader.keyBytes, keyOffset & 0x7fffffff); in getKey32String()
[all …]
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/
DUResource.java43 private Key(byte[] keyBytes, int keyOffset, int keyLength) { in Key() argument
44 bytes = keyBytes; in Key()
59 public void setBytes(byte[] keyBytes, int keyOffset) { in setBytes() argument
60 bytes = keyBytes; in setBytes()
62 for (length = 0; keyBytes[keyOffset + length] != 0; ++length) {} in setBytes()
DICUResourceBundleReader.java132 private byte[] keyBytes; field in ICUResourceBundleReader
293 keyBytes = new byte[(keysTop - keysBottom) << 2]; in init()
297 keyBytes = new byte[localKeyLimit]; in init()
299 bytes.get(keyBytes); in init()
443 private static String makeKeyStringFromBytes(byte[] keyBytes, int keyOffset) { in makeKeyStringFromBytes() argument
446 while((b = keyBytes[keyOffset]) != 0) { in makeKeyStringFromBytes()
454 return makeKeyStringFromBytes(keyBytes, keyOffset); in getKey16String()
456 return makeKeyStringFromBytes(poolBundleReader.keyBytes, keyOffset - localKeyLimit); in getKey16String()
461 return makeKeyStringFromBytes(keyBytes, keyOffset); in getKey32String()
463 return makeKeyStringFromBytes(poolBundleReader.keyBytes, keyOffset & 0x7fffffff); in getKey32String()
[all …]
/external/oauth/core/src/main/java/net/oauth/signature/
DHMAC_SHA1.java69 byte[] keyBytes = keyString.getBytes(ENCODING); in computeSignature()
70 this.key = new SecretKeySpec(keyBytes, MAC_NAME); in computeSignature()
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jcajce/provider/symmetric/util/
DPBE.java414 byte[] keyBytes = key.getEncoded(); in makePBEMacParameters()
420 for (int i = 0; i != keyBytes.length; i++) in makePBEMacParameters()
422 keyBytes[i] = 0; in makePBEMacParameters()
/external/sl4a/Common/src/com/googlecode/android_scripting/facade/wifi/
DWifiManagerFacade.java440 byte[] keyBytes = base64StrToBytes(key); in strToPrivateKey()
441 PKCS8EncodedKeySpec keySpec = new PKCS8EncodedKeySpec(keyBytes); in strToPrivateKey()
449 byte[] keyBytes = base64StrToBytes(key); in strToPublicKey()
450 X509EncodedKeySpec keySpec = new X509EncodedKeySpec(keyBytes); in strToPublicKey()
/external/icu/icu4j/main/tests/collate/src/com/ibm/icu/dev/test/collator/
DCollationTest.java1401 byte[] keyBytes = key.toByteArray();
1402 if (keyBytes.length == 0 || keyBytes[keyBytes.length - 1] != 0) {
1420 for (int i = 0; i < (keyBytes.length - 1); ++i) {
1421 byte b = keyBytes[i];
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/collator/
DCollationTest.java1405 byte[] keyBytes = key.toByteArray();
1406 if (keyBytes.length == 0 || keyBytes[keyBytes.length - 1] != 0) {
1424 for (int i = 0; i < (keyBytes.length - 1); ++i) {
1425 byte b = keyBytes[i];
/external/webrtc/webrtc/examples/objc/AppRTCDemo/third_party/SocketRocket/
DSRWebSocket.m506 NSMutableData *keyBytes = [[NSMutableData alloc] initWithLength:16];
507 SecRandomCopyBytes(kSecRandomDefault, keyBytes.length, keyBytes.mutableBytes);
509 if ([keyBytes respondsToSelector:@selector(base64EncodedStringWithOptions:)]) {
510 _secKey = [keyBytes base64EncodedStringWithOptions:0];
512 _secKey = [keyBytes base64Encoding];
/external/icu/icu4c/source/test/intltest/
Dcollationtest.cpp1364 const uint8_t *keyBytes = key.getByteArray(keyLength); in getCollationKey() local
1365 if(keyLength == 0 || keyBytes[keyLength - 1] != 0) { in getCollationKey()
1386 uint8_t b = keyBytes[i]; in getCollationKey()
1417 if(keyLength != parts.length() || uprv_memcmp(keyBytes, parts.data(), keyLength) != 0) { in getCollationKey()
/external/icu/icu4c/source/tools/genrb/
Dreslist.cpp1230 SRBRoot::addKeyBytes(const char *keyBytes, int32_t length, UErrorCode &errorCode) { in addKeyBytes() argument
1236 if (length < 0 || (keyBytes == NULL && length != 0)) { in addKeyBytes()
1256 uprv_memcpy(fKeys + keypos, keyBytes, length); in addKeyBytes()
Dreslist.h81 int32_t addKeyBytes(const char *keyBytes, int32_t length, UErrorCode &errorCode);
/external/conscrypt/src/main/native/
Dorg_conscrypt_NativeCrypto.cpp4666 ScopedByteArrayRO keyBytes(env, keyArray); local
4667 if (keyBytes.get() == nullptr) {
4671 keyPtr.reset(new unsigned char[keyBytes.size()]);
4672 memcpy(keyPtr.get(), keyBytes.get(), keyBytes.size());
4921 ScopedByteArrayRO keyBytes(env, keyArray); local
4922 if (keyBytes.get() == nullptr) {
4930 const uint8_t* tmp = reinterpret_cast<const uint8_t*>(keyBytes.get());
4931 int ret = EVP_AEAD_CTX_init(aeadCtx.get(), evpAead, tmp, keyBytes.size(), tagLen, nullptr);
5171 ScopedByteArrayRO keyBytes(env, keyArray); local
5172 if (keyBytes.get() == nullptr) {
[all …]
/external/eclipse-basebuilder/basebuilder-3.6.2/org.eclipse.releng.basebuilder/plugins/
Dorg.eclipse.core.resources.compatibility_3.4.0.v20090505.jarMETA-INF/MANIFEST.MF META-INF/ECLIPSEF.SF META-INF/ECLIPSEF ...
/external/bouncycastle/patches/
Dbcprov.patch2340 - byte[] keyBytes = new byte[keySize / 8];
2342 - kdf.generateBytes(keyBytes, 0, keyBytes.length);
2343 - secret = keyBytes;
2358 + // byte[] keyBytes = new byte[keySize / 8];
2360 + // kdf.generateBytes(keyBytes, 0, keyBytes.length);
2361 + // secret = keyBytes;
/external/robolectric/v3/runtime/
Dandroid-all-4.3_r2-robolectric-0.jarMETA-INF/ META-INF/MANIFEST.MF android/ android/accessibilityservice/ android/ ...
Dandroid-all-4.2.2_r1.2-robolectric-0.jarMETA-INF/ META-INF/MANIFEST.MF android/ android/accessibilityservice/ android/ ...
Dandroid-all-5.1.1_r9-robolectric-1.jarMETA-INF/ META-INF/MANIFEST.MF com/ com/google/ com/ ...
Dandroid-all-5.0.0_r2-robolectric-1.jarMETA-INF/ META-INF/MANIFEST.MF com/ com/google/ com/ ...
Dandroid-all-4.4_r1-robolectric-1.jarMETA-INF/ META-INF/MANIFEST.MF com/ com/google/ com/ ...
Dandroid-all-4.1.2_r1-robolectric-0.jarMETA-INF/ META-INF/MANIFEST.MF android/ android/accessibilityservice/ android/ ...