Home | History | Annotate | Download | only in keystore

Lines Matching defs:in

5  * you may not use this file except in compliance with the License.
10 * Unless required by applicable law or agreed to in writing, software
90 /* Here is the encoding of keys. This is necessary in order to allow arbitrary
91 * characters in keys. Characters in [0-~] are not encoded. Others are encoded
94 * [0-o]. Therefore in the worst case the length of a key gets doubled. Note
98 const uint8_t* in = reinterpret_cast<const uint8_t*>(keyName.string());
100 for (int i = length; i > 0; --i, ++in) {
101 if (*in < '0' || *in > '~') {
109 const uint8_t* in = reinterpret_cast<const uint8_t*>(keyName.string());
111 for (int i = length; i > 0; --i, ++in, ++out) {
112 if (*in < '0' || *in > '~') {
113 *out = '+' + (*in >> 6);
114 *++out = '0' + (*in & 0x3F);
117 *out = *in;
389 static size_t decode_key_length(const char* in, size_t length) {
392 for (const char* end = in + length; in < end; in++) {
394 if (*in < '0' || *in > '~') {
403 static void decode_key(char* out, const char* in, size_t length) {
404 for (const char* end = in + length; in < end; in++) {
405 if (*in < '0' || *in > '~') {
407 if (in + 1 >= end) {
411 *out = (*in++ - '+') << 6;
412 *out++ |= (*in - '0') & 0x3F;
414 *out++ = *in;
707 int in = TEMP_FAILURE_RETRY(open(sMetaDataFile, O_RDONLY));
708 if (in < 0) {
711 size_t fileLength = readFully(in, (uint8_t*)&mMetaData, sizeof(mMetaData));
715 close(in);
752 // Initialize again in case we had a key.