Home
last modified time | relevance | path

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

12

/external/ukey2/src/main/java/com/google/security/cryptauth/lib/securegcm/
DKeyEncoding.java70 public static PublicKey parseUserPublicKey(byte[] keyBytes) throws InvalidKeySpecException { in parseUserPublicKey() argument
71 return parsePublicKey(keyBytes); in parseUserPublicKey()
78 public static PublicKey parseKeyAgreementPublicKey(byte[] keyBytes) in parseKeyAgreementPublicKey() argument
80 return parsePublicKey(keyBytes); in parseKeyAgreementPublicKey()
90 public static PrivateKey parseKeyAgreementPrivateKey(byte[] keyBytes, boolean isLegacy) in parseKeyAgreementPrivateKey() argument
93 return PublicKeyProtoUtil.parseDh2048PrivateKey(keyBytes); in parseKeyAgreementPrivateKey()
95 PKCS8EncodedKeySpec keySpec = new PKCS8EncodedKeySpec(keyBytes); in parseKeyAgreementPrivateKey()
103 public static PublicKey parseSigningPublicKey(byte[] keyBytes) throws InvalidKeySpecException { in parseSigningPublicKey() argument
104 return parsePublicKey(keyBytes); in parseSigningPublicKey()
111 public static PrivateKey parseSigningPrivateKey(byte[] keyBytes) throws InvalidKeySpecException { in parseSigningPrivateKey() argument
[all …]
/external/conscrypt/common/src/main/java/org/conscrypt/
DOpenSSLMac.java44 private byte[] keyBytes; field in OpenSSLMac
77 keyBytes = key.getEncoded(); in engineInit()
78 if (keyBytes == null) { in engineInit()
87 if (keyBytes != null) { in resetContext()
88 NativeCrypto.HMAC_Init_ex(ctxLocal, keyBytes, evp_md); in resetContext()
DKeyGeneratorImpl.java71 protected byte[] doKeyGeneration(int keyBytes) { in doKeyGeneration() argument
72 byte[] keyData = new byte[keyBytes]; in doKeyGeneration()
136 protected byte[] doKeyGeneration(int keyBytes) { in doKeyGeneration() argument
145 if (keyBytes == 14) { in doKeyGeneration()
/external/conscrypt/repackaged/common/src/main/java/com/android/org/conscrypt/
DOpenSSLMac.java47 private byte[] keyBytes; field in OpenSSLMac
80 keyBytes = key.getEncoded(); in engineInit()
81 if (keyBytes == null) { in engineInit()
90 if (keyBytes != null) { in resetContext()
91 NativeCrypto.HMAC_Init_ex(ctxLocal, keyBytes, evp_md); in resetContext()
DKeyGeneratorImpl.java74 protected byte[] doKeyGeneration(int keyBytes) { in doKeyGeneration() argument
75 byte[] keyData = new byte[keyBytes]; in doKeyGeneration()
174 protected byte[] doKeyGeneration(int keyBytes) { in doKeyGeneration() argument
183 if (keyBytes == 14) { in doKeyGeneration()
/external/bouncycastle/repackaged/bcprov/src/main/java/com/android/org/bouncycastle/crypto/engines/
DRC4Engine.java117 private void setKey(byte[] keyBytes) in setKey() argument
119 workingKey = keyBytes; in setKey()
142 i2 = ((keyBytes[i1] & 0xff) + engineState[i] + i2) & 0xff; in setKey()
147 i1 = (i1+1) % keyBytes.length; in setKey()
/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.java295 byte[] keyBytes = new byte[keySize / 8]; in getSharedSecretBytes()
327 kdf.generateBytes(keyBytes, 0, keyBytes.length); in getSharedSecretBytes()
331 return keyBytes; in getSharedSecretBytes()
337 byte[] keyBytes = new byte[keySize / 8]; in getSharedSecretBytes()
339 System.arraycopy(secret, 0, keyBytes, 0, keyBytes.length); in getSharedSecretBytes()
343 return keyBytes; in getSharedSecretBytes()
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/
DICUResourceBundleReader.java133 private byte[] keyBytes; field in ICUResourceBundleReader
296 keyBytes = new byte[(keysTop - keysBottom) << 2]; in init()
300 keyBytes = new byte[localKeyLimit]; in init()
302 bytes.get(keyBytes); in init()
446 private static String makeKeyStringFromBytes(byte[] keyBytes, int keyOffset) { in makeKeyStringFromBytes() argument
449 while((b = keyBytes[keyOffset]) != 0) { in makeKeyStringFromBytes()
457 return makeKeyStringFromBytes(keyBytes, keyOffset); in getKey16String()
459 return makeKeyStringFromBytes(poolBundleReader.keyBytes, keyOffset - localKeyLimit); in getKey16String()
464 return makeKeyStringFromBytes(keyBytes, keyOffset); in getKey32String()
466 return makeKeyStringFromBytes(poolBundleReader.keyBytes, keyOffset & 0x7fffffff); in getKey32String()
[all …]
DUResource.java54 private Key(byte[] keyBytes, int keyOffset, int keyLength) { in Key() argument
55 bytes = keyBytes; in Key()
70 public Key setBytes(byte[] keyBytes, int keyOffset) { in setBytes() argument
71 bytes = keyBytes; in setBytes()
73 for (length = 0; keyBytes[keyOffset + length] != 0; ++length) {} in setBytes()
/external/icu/android_icu4j/src/main/java/android/icu/impl/
DICUResourceBundleReader.java135 private byte[] keyBytes; field in ICUResourceBundleReader
298 keyBytes = new byte[(keysTop - keysBottom) << 2]; in init()
302 keyBytes = new byte[localKeyLimit]; in init()
304 bytes.get(keyBytes); in init()
448 private static String makeKeyStringFromBytes(byte[] keyBytes, int keyOffset) { in makeKeyStringFromBytes() argument
451 while((b = keyBytes[keyOffset]) != 0) { in makeKeyStringFromBytes()
459 return makeKeyStringFromBytes(keyBytes, keyOffset); in getKey16String()
461 return makeKeyStringFromBytes(poolBundleReader.keyBytes, keyOffset - localKeyLimit); in getKey16String()
466 return makeKeyStringFromBytes(keyBytes, keyOffset); in getKey32String()
468 return makeKeyStringFromBytes(poolBundleReader.keyBytes, keyOffset & 0x7fffffff); in getKey32String()
[all …]
DUResource.java57 private Key(byte[] keyBytes, int keyOffset, int keyLength) { in Key() argument
58 bytes = keyBytes; in Key()
73 public Key setBytes(byte[] keyBytes, int keyOffset) { in setBytes() argument
74 bytes = keyBytes; in setBytes()
76 for (length = 0; keyBytes[keyOffset + length] != 0; ++length) {} in setBytes()
/external/bouncycastle/repackaged/bcprov/src/main/java/com/android/org/bouncycastle/jcajce/provider/asymmetric/util/
DBaseAgreementSpi.java299 byte[] keyBytes = new byte[keySize / 8]; in getSharedSecretBytes()
331 kdf.generateBytes(keyBytes, 0, keyBytes.length); in getSharedSecretBytes()
335 return keyBytes; in getSharedSecretBytes()
341 byte[] keyBytes = new byte[keySize / 8]; in getSharedSecretBytes()
343 System.arraycopy(secret, 0, keyBytes, 0, keyBytes.length); in getSharedSecretBytes()
347 return keyBytes; in getSharedSecretBytes()
/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.java482 byte[] keyBytes = key.getEncoded(); in makePBEMacParameters()
488 for (int i = 0; i != keyBytes.length; i++) in makePBEMacParameters()
490 keyBytes[i] = 0; in makePBEMacParameters()
/external/bouncycastle/repackaged/bcprov/src/main/java/com/android/org/bouncycastle/jcajce/provider/symmetric/util/
DPBE.java486 byte[] keyBytes = key.getEncoded(); in makePBEMacParameters()
492 for (int i = 0; i != keyBytes.length; i++) in makePBEMacParameters()
494 keyBytes[i] = 0; in makePBEMacParameters()
/external/cldr/tools/java/org/unicode/cldr/icu/
DLDML2ICUBinaryWriter.java749 byte[] keyBytes; in writeKeyString()
814 keyBytes = keyList.getBytes(CHARSET8); in writeKeyString()
815 out.write(keyBytes); in writeKeyString()
816 written += keyBytes.length; in writeKeyString()
/external/icu/icu4j/main/tests/collate/src/com/ibm/icu/dev/test/collator/
DCollationTest.java1388 byte[] keyBytes = key.toByteArray();
1389 if (keyBytes.length == 0 || keyBytes[keyBytes.length - 1] != 0) {
1407 for (int i = 0; i < (keyBytes.length - 1); ++i) {
1408 byte b = keyBytes[i];
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/collator/
DCollationTest.java1391 byte[] keyBytes = key.toByteArray();
1392 if (keyBytes.length == 0 || keyBytes[keyBytes.length - 1] != 0) {
1410 for (int i = 0; i < (keyBytes.length - 1); ++i) {
1411 byte b = keyBytes[i];
/external/skia/src/utils/
DSkShadowUtils.cpp361 int keyBytes() const { return fShapeForKey.unstyledKeySize() * sizeof(uint32_t); } in keyBytes() function in __anon42c018ee0111::ShadowedPath
367 int keyBytes() const { return -1; } in keyBytes() function in __anon42c018ee0111::ShadowedPath
420 int keyDataBytes = path.keyBytes(); in draw_shadow()
/external/skqp/src/utils/
DSkShadowUtils.cpp360 int keyBytes() const { return fShapeForKey.unstyledKeySize() * sizeof(uint32_t); } in keyBytes() function in __anon9b2dc2850111::ShadowedPath
366 int keyBytes() const { return -1; } in keyBytes() function in __anon9b2dc2850111::ShadowedPath
394 int keyDataBytes = path.keyBytes(); in draw_shadow()
/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/sl4a/Common/src/com/googlecode/android_scripting/facade/wifi/
DWifiManagerFacade.java779 byte[] keyBytes = base64StrToBytes(key); in strToPrivateKey()
780 PKCS8EncodedKeySpec keySpec = new PKCS8EncodedKeySpec(keyBytes); in strToPrivateKey()
788 byte[] keyBytes = base64StrToBytes(key); in strToPublicKey()
789 X509EncodedKeySpec keySpec = new X509EncodedKeySpec(keyBytes); in strToPublicKey()
/external/icu/icu4c/source/test/intltest/
Dcollationtest.cpp1362 const uint8_t *keyBytes = key.getByteArray(keyLength); in getCollationKey() local
1363 if(keyLength == 0 || keyBytes[keyLength - 1] != 0) { in getCollationKey()
1384 uint8_t b = keyBytes[i]; in getCollationKey()
1415 if(keyLength != parts.length() || uprv_memcmp(keyBytes, parts.data(), keyLength) != 0) { in getCollationKey()
/external/icu/icu4c/source/tools/genrb/
Dreslist.cpp1232 SRBRoot::addKeyBytes(const char *keyBytes, int32_t length, UErrorCode &errorCode) { in addKeyBytes() argument
1238 if (length < 0 || (keyBytes == NULL && length != 0)) { in addKeyBytes()
1258 uprv_memcpy(fKeys + keypos, keyBytes, length); in addKeyBytes()

12