/external/dropbear/libtomcrypt/src/encauth/gcm/ |
gcm_memory.c | 48 int err; local 50 if ((err = cipher_is_valid(cipher)) != CRYPT_OK) { 51 return err; 87 if ((err = gcm_init(gcm, cipher, key, keylen)) != CRYPT_OK) { 90 if ((err = gcm_add_iv(gcm, IV, IVlen)) != CRYPT_OK) { 93 if ((err = gcm_add_aad(gcm, adata, adatalen)) != CRYPT_OK) { 96 if ((err = gcm_process(gcm, pt, ptlen, ct, direction)) != CRYPT_OK) { 99 err = gcm_done(gcm, tag, taglen); 102 return err;
|
/external/dropbear/libtomcrypt/src/pk/asn1/der/sequence/ |
der_length_sequence.c | 30 int err, type; local 50 if ((err = der_length_boolean(&x)) != CRYPT_OK) { 57 if ((err = der_length_integer(data, &x)) != CRYPT_OK) { 64 if ((err = der_length_short_integer(*((unsigned long *)data), &x)) != CRYPT_OK) { 71 if ((err = der_length_bit_string(size, &x)) != CRYPT_OK) { 78 if ((err = der_length_octet_string(size, &x)) != CRYPT_OK) { 89 if ((err = der_length_object_identifier(data, size, &x)) != CRYPT_OK) { 96 if ((err = der_length_ia5_string(data, size, &x)) != CRYPT_OK) { 103 if ((err = der_length_printable_string(data, size, &x)) != CRYPT_OK) { 110 if ((err = der_length_utctime(data, &x)) != CRYPT_OK) [all...] |
/external/dropbear/libtomcrypt/src/pk/ecc/ |
ecc_shared_secret.c | 40 int err; local 66 if ((err = mp_init(&prime)) != CRYPT_OK) { 68 return err; 71 if ((err = mp_read_radix(prime, (char *)private_key->dp->prime, 16)) != CRYPT_OK) { goto done; } 72 if ((err = ltc_mp.ecc_ptmul(private_key->k, &public_key->pubkey, result, prime, 1)) != CRYPT_OK) { goto done; } 77 err = CRYPT_BUFFER_OVERFLOW; 81 if ((err = mp_to_unsigned_bin(result->x, out + (x - mp_unsigned_bin_size(result->x)))) != CRYPT_OK) { goto done; } 83 err = CRYPT_OK; 88 return err;
|
/external/dropbear/libtomcrypt/src/pk/pkcs1/ |
pkcs_1_mgf1.c | 35 int err; local 43 if ((err = hash_is_valid(hash_idx)) != CRYPT_OK) { 44 return err; 72 if ((err = hash_descriptor[hash_idx].init(md)) != CRYPT_OK) { 75 if ((err = hash_descriptor[hash_idx].process(md, seed, seedlen)) != CRYPT_OK) { 78 if ((err = hash_descriptor[hash_idx].process(md, buf, 4)) != CRYPT_OK) { 81 if ((err = hash_descriptor[hash_idx].done(md, buf)) != CRYPT_OK) { 91 err = CRYPT_OK; 101 return err;
|
/external/dropbear/libtomcrypt/src/pk/rsa/ |
rsa_encrypt_key.c | 41 int err; local 55 if ((err = prng_is_valid(prng_idx)) != CRYPT_OK) { 56 return err; 61 if ((err = hash_is_valid(hash_idx)) != CRYPT_OK) { 62 return err; 79 if ((err = pkcs_1_oaep_encode(in, inlen, lparam, 82 return err; 87 if ((err = pkcs_1_v1_5_encode(in, inlen, LTC_PKCS_1_EME, 90 return err;
|
/external/icu4c/test/cintltst/ |
eurocreg.c | 125 UErrorCode err = U_ZERO_ERROR; local 126 UConverter* myConv = ucnv_open(convertersToCheck[i], &err); 127 if (U_FAILURE(err)&&convertersToCheck[i][0]) 128 log_data_err("%s \tMISSING [%s]\n", convertersToCheck[i], u_errorName(err)); 146 UErrorCode err = U_ZERO_ERROR; local 147 /*const char* myName = ucnv_getName(myConv, &err);*/ 154 &err); 155 if (U_FAILURE(err)) 165 &err); 166 if (U_FAILURE(err)) [all...] |
stdnmtst.c | 62 UErrorCode err; local 68 err = U_ZERO_ERROR; 69 standard = ucnv_getStandard(i, &err); 70 if (U_FAILURE(err)) { 71 log_err("FAIL: ucnv_getStandard(%d), error=%s\n", i, u_errorName(err)); 79 err = U_ZERO_ERROR; 83 } else if (*ucnv_getStandard((uint16_t)(count-1), &err) != 0) { 87 err = U_ZERO_ERROR; 88 if (ucnv_getStandard(++i, &err)) { 171 UErrorCode err = U_ZERO_ERROR local 223 UErrorCode err = U_ZERO_ERROR; local [all...] |
/external/openssl/crypto/x509/ |
x509_r2x.c | 77 goto err; 85 if ((xi->version=M_ASN1_INTEGER_new()) == NULL) goto err; 86 if (!ASN1_INTEGER_set(xi->version,2)) goto err; 93 goto err; 95 goto err; 98 goto err; 100 goto err; 105 goto err; 108 err:
|
/external/openssl/ssl/ |
ssl_err2.c | 60 #include <openssl/err.h>
|
/external/yaffs2/yaffs2/direct/ |
yaffscfg.h | 27 void yaffsfs_SetError(int err);
|
/frameworks/av/media/libstagefright/codecs/amrnb/enc/src/ |
q_gain_c.cpp | 207 Word16 err; local 257 err = ((Word32)gcode0 * *(p++)) >> 15; 258 err = g_q0 - err; 260 if (err < 0) 262 err = -err; 267 if (err < err_min) 269 err_min = err;
|
/frameworks/native/services/surfaceflinger/ |
EventControlThread.cpp | 42 status_t err = mCond.wait(mMutex); local 43 if (err != NO_ERROR) { 45 strerror(-err), err);
|
/external/chromium_org/media/audio/mac/ |
audio_input_mac.cc | 51 OSStatus err = AudioQueueNewInput(&format_, local 58 if (err != noErr) { 59 HandleError(err); 71 OSStatus err = AudioQueueStart(audio_queue_, NULL); local 72 if (err != noErr) { 73 HandleError(err); 85 OSStatus err = AudioQueueStop(audio_queue_, true); 86 if (err != noErr) 87 HandleError(err); 96 OSStatus err = AudioQueueDispose(audio_queue_, true) local 143 OSStatus err = AudioQueueAllocateBuffer(audio_queue_, local 214 OSStatus err = QueueNextBuffer(audio_buffer); local [all...] |
/external/zlib/src/test/ |
example.c | 22 #define CHECK_ERR(err, msg) { \ 23 if (err != Z_OK) { \ 24 fprintf(stderr, "%s error: %d\n", msg, err); \ 92 int err; local 95 err = compress(compr, &comprLen, (const Bytef*)hello, len); 96 CHECK_ERR(err, "compress"); 100 err = uncompress(uncompr, &uncomprLen, compr, comprLen); 101 CHECK_ERR(err, "uncompress"); 122 int err; 134 fprintf(stderr, "gzputs err: %s\n", gzerror(file, &err)) 205 int err; local 242 int err; local 284 int err; local 338 int err; local 380 int err; local 417 int err; local 462 int err; local 498 int err; local [all...] |
/external/chromium_org/third_party/openssl/openssl/crypto/ec/ |
ecp_oct.c | 65 #include <openssl/err.h> 94 if (y == NULL) goto err; 102 if (!BN_nnmod(x, x_, &group->field,ctx)) goto err; 106 if (!group->meth->field_sqr(group, tmp2, x_, ctx)) goto err; 107 if (!group->meth->field_mul(group, tmp1, tmp2, x_, ctx)) goto err; 111 if (!BN_mod_sqr(tmp2, x_, &group->field, ctx)) goto err; 112 if (!BN_mod_mul(tmp1, tmp2, x_, &group->field, ctx)) goto err; 118 if (!BN_mod_lshift1_quick(tmp2, x, &group->field)) goto err; 119 if (!BN_mod_add_quick(tmp2, tmp2, x, &group->field)) goto err; 120 if (!BN_mod_sub_quick(tmp1, tmp1, tmp2, &group->field)) goto err; 151 unsigned long err = ERR_peek_last_error(); local [all...] |
/external/openssl/crypto/ec/ |
ecp_oct.c | 65 #include <openssl/err.h> 94 if (y == NULL) goto err; 102 if (!BN_nnmod(x, x_, &group->field,ctx)) goto err; 106 if (!group->meth->field_sqr(group, tmp2, x_, ctx)) goto err; 107 if (!group->meth->field_mul(group, tmp1, tmp2, x_, ctx)) goto err; 111 if (!BN_mod_sqr(tmp2, x_, &group->field, ctx)) goto err; 112 if (!BN_mod_mul(tmp1, tmp2, x_, &group->field, ctx)) goto err; 118 if (!BN_mod_lshift1_quick(tmp2, x, &group->field)) goto err; 119 if (!BN_mod_add_quick(tmp2, tmp2, x, &group->field)) goto err; 120 if (!BN_mod_sub_quick(tmp1, tmp1, tmp2, &group->field)) goto err; 151 unsigned long err = ERR_peek_last_error(); local [all...] |
/external/chromium_org/tools/gn/ |
functions.cc | 12 #include "tools/gn/err.h" 25 void FillNeedsBlockError(const FunctionCallNode* function, Err* err) { 26 *err = Err(function->function(), "This function call requires a block.", 38 Err* err) { 39 if (!EnsureNotProcessingImport(invocation, scope, err)) 44 block, args, &block_scope, err)) 48 block->ExecuteBlockInScope(&block_scope, err); [all...] |
/external/chromium_org/third_party/mesa/src/src/egl/main/ |
eglsurface.c | 67 EGLint i, err = EGL_SUCCESS; local 79 err = EGL_BAD_PARAMETER; 86 err = EGL_BAD_PARAMETER; 92 err = EGL_BAD_ATTRIBUTE; 96 if (err != EGL_SUCCESS) { 102 return err; 116 EGLint i, err = EGL_SUCCESS; local 141 err = EGL_BAD_ATTRIBUTE; 144 if (err != EGL_SUCCESS) 154 err = EGL_BAD_ATTRIBUTE 285 EGLint err; local 429 EGLint err = EGL_SUCCESS; local [all...] |
/external/dropbear/libtomcrypt/src/prngs/ |
fortuna.c | 70 int err, x; local 76 if ((err = sha256_process(&md, prng->fortuna.K, 32)) != CRYPT_OK) { 78 return err; 84 if ((err = sha256_done(&prng->fortuna.pool[x], tmp)) != CRYPT_OK) { 86 return err; 89 if ((err = sha256_process(&md, tmp, 32)) != CRYPT_OK) { 91 return err; 94 if ((err = sha256_init(&prng->fortuna.pool[x])) != CRYPT_OK) { 96 return err; 104 if ((err = sha256_done(&md, prng->fortuna.K)) != CRYPT_OK) 132 int err, x, y; local 174 int err; local 229 int err; local 286 int err, x; local 318 int x, err; local 384 int err, x; local [all...] |
/external/mesa3d/src/egl/main/ |
eglsurface.c | 67 EGLint i, err = EGL_SUCCESS; local 79 err = EGL_BAD_PARAMETER; 86 err = EGL_BAD_PARAMETER; 92 err = EGL_BAD_ATTRIBUTE; 96 if (err != EGL_SUCCESS) { 102 return err; 116 EGLint i, err = EGL_SUCCESS; local 141 err = EGL_BAD_ATTRIBUTE; 144 if (err != EGL_SUCCESS) 154 err = EGL_BAD_ATTRIBUTE 285 EGLint err; local 429 EGLint err = EGL_SUCCESS; local [all...] |
/build/tools/atree/ |
fs.cpp | 23 int err; local 25 err = stat(path.c_str(), &st); 26 return err != 0 || S_ISDIR(st.st_mode); 32 int err = unlink(path.c_str()); local 33 if (err != 0) { 44 int err; local 83 err = remove_file(*it); 84 if (err != 0) { 85 return err; 90 err = remove_recursively(*it) 111 int err; local 145 int err; local [all...] |
/frameworks/native/services/surfaceflinger/DisplayHardware/ |
FramebufferSurface.cpp | 90 status_t err = acquireBufferLocked(&item, 0); local 91 if (err == BufferQueue::NO_BUFFER_AVAILABLE) { 94 } else if (err != NO_ERROR) { 95 ALOGE("error acquiring buffer: %s (%d)", strerror(-err), err); 96 return err; 110 err = releaseBufferLocked(mCurrentBufferSlot, mCurrentBuffer, 112 if (err < NO_ERROR) { 113 ALOGE("error releasing buffer: %s (%d)", strerror(-err), err); 128 status_t err = nextBuffer(buf, acquireFence); local 151 status_t err = addReleaseFence(mCurrentBufferSlot, local [all...] |
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/localization/locale.categories/category.time/locale.time.get/locale.time.get.members/ |
get_time.pass.cpp | 16 // ios_base::iostate& err, tm* t) const; 38 std::ios_base::iostate err; local 42 err = std::ios_base::goodbit; 44 I i = f.get_time(I(in), I(in+sizeof(in)-1), ios, err, &t); 49 assert(err == std::ios_base::eofbit); 53 err = std::ios_base::goodbit; 55 I i = f.get_time(I(in), I(in+sizeof(in)-1), ios, err, &t); 60 assert(err == std::ios_base::eofbit); 64 err = std::ios_base::goodbit; 66 I i = f.get_time(I(in), I(in+sizeof(in)-1), ios, err, &t) [all...] |
get_time_wide.pass.cpp | 16 // ios_base::iostate& err, tm* t) const; 38 std::ios_base::iostate err; local 42 err = std::ios_base::goodbit; 44 I i = f.get_time(I(in), I(in+sizeof(in)/sizeof(in[0])-1), ios, err, &t); 49 assert(err == std::ios_base::eofbit); 53 err = std::ios_base::goodbit; 55 I i = f.get_time(I(in), I(in+sizeof(in)/sizeof(in[0])-1), ios, err, &t); 60 assert(err == std::ios_base::eofbit); 64 err = std::ios_base::goodbit; 66 I i = f.get_time(I(in), I(in+sizeof(in)/sizeof(in[0])-1), ios, err, &t) [all...] |
get_weekday.pass.cpp | 16 // ios_base::iostate& err, tm* t) const; 38 std::ios_base::iostate err; local 42 err = std::ios_base::goodbit; 44 I i = f.get_weekday(I(in), I(in+sizeof(in)-1), ios, err, &t); 47 assert(err == std::ios_base::eofbit); 51 err = std::ios_base::goodbit; 53 I i = f.get_weekday(I(in), I(in+sizeof(in)-1), ios, err, &t); 56 assert(err == std::ios_base::goodbit); 60 err = std::ios_base::goodbit; 62 I i = f.get_weekday(I(in), I(in+sizeof(in)-1), ios, err, &t) [all...] |