HomeSort by relevance Sort by last modified time
    Searched refs:nonce (Results 76 - 100 of 231) sorted by null

1 2 34 5 6 7 8 910

  /external/iputils/
ping6.c 327 static int niquery_nonce(__u8 *nonce, int fill)
332 if (fill || seq != *(__u16 *)nonce || seq < 0) {
337 MD5_Update(&ctxt, nonce, sizeof(__u16));
340 seq = *(__u16 *)nonce;
344 memcpy(nonce + sizeof(__u16), digest, NI_NONCE_SIZE - sizeof(__u16));
347 if (memcmp(nonce + sizeof(__u16), digest, NI_NONCE_SIZE - sizeof(__u16)))
349 return ntohsp((__u16 *)nonce);
354 static inline void niquery_fill_nonce(__u16 seq, __u8 *nonce)
365 memcpy(nonce, &ni_nonce_ptr[NI_NONCE_SIZE * (seq % MAX_DUP_CHK)], NI_NONCE_SIZE);
367 memcpy(nonce, &v, sizeof(v))
    [all...]
  /external/chromium_org/third_party/WebKit/Source/core/page/
ContentSecurityPolicy.cpp 312 bool allowNonce(const String& nonce) const { return !nonce.isNull() && m_nonces.contains(nonce); }
320 bool parseNonce(const UChar* begin, const UChar* end, String& nonce);
326 void addSourceNonce(const String& nonce);
435 String nonce; local
436 if (!parseNonce(begin, end, nonce))
439 if (!nonce.isNull()) {
440 addSourceNonce(nonce);
519 // nonce-source = "'nonce-" nonce-value "'
    [all...]
ContentSecurityPolicy.h 111 bool allowScriptNonce(const String& nonce) const;
  /external/chromium_org/third_party/libjingle/source/talk/p2p/base/
turnserver.cc 91 void set_last_nonce(const std::string& nonce) { last_nonce_ = nonce; }
392 // Fail if there is M-I but no username, nonce, or realm.
399 // Fail if bad nonce.
414 // Fail if one-time-use nonce feature is enabled.
476 // Generate a nonce of the form hex(now + HMAC-MD5(nonce_key_, now))
479 std::string nonce = talk_base::hex_encode(input.c_str(), input.size()); local
480 nonce += talk_base::ComputeHmac(talk_base::DIGEST_MD5, nonce_key_, input);
481 ASSERT(nonce.size() == kNonceSize);
482 return nonce;
    [all...]
  /external/wpa_supplicant_8/src/ap/
wpa_auth_ft.c 324 if (random_get_bytes(f.nonce, sizeof(f.nonce))) {
326 "nonce");
335 f.nonce, frame.nonce) < 0)
    [all...]
  /external/chromium/chrome/common/extensions/docs/examples/apps/hello-php/lib/oauth/
OAuth.php 470 * util function: current nonce
639 $nonce = $request instanceof OAuthRequest variable
644 $this->check_nonce($consumer, $token, $nonce, $timestamp);
680 * check that the nonce is not repeated
682 private function check_nonce($consumer, $token, $nonce, $timestamp) {
683 if( ! $nonce )
685 'Missing nonce parameter. The parameter is required'
688 // verify that the nonce is uniqueish
692 $nonce,
696 throw new OAuthException("Nonce already used: $nonce")
    [all...]
  /external/chromium_org/chrome/common/extensions/docs/examples/apps/hello-php/lib/oauth/
OAuth.php 470 * util function: current nonce
639 $nonce = $request instanceof OAuthRequest variable
644 $this->check_nonce($consumer, $token, $nonce, $timestamp);
680 * check that the nonce is not repeated
682 private function check_nonce($consumer, $token, $nonce, $timestamp) {
683 if( ! $nonce )
685 'Missing nonce parameter. The parameter is required'
688 // verify that the nonce is uniqueish
692 $nonce,
696 throw new OAuthException("Nonce already used: $nonce")
    [all...]
  /external/dropbear/libtomcrypt/src/encauth/ocb/
ocb_test.c 31 unsigned char key[16], nonce[16], pt[34], ct[34], tag[16];
40 /* nonce */
59 /* nonce */
77 /* nonce */
97 /* nonce */
119 /* nonce */
144 /* nonce */
181 tests[x].nonce, tests[x].pt, tests[x].ptlen, outct, outtag, &len)) != CRYPT_OK) {
204 if ((err = ocb_decrypt_verify_memory(idx, tests[x].key, 16, tests[x].nonce, outct, tests[x].ptlen,
  /external/wpa_supplicant_8/src/eap_server/
eap_server_fast.c 640 if (random_get_bytes(binding->nonce, sizeof(binding->nonce)) < 0) {
647 * The nonce in a request MUST have its least significant bit set to 0.
649 binding->nonce[sizeof(binding->nonce) - 1] &= ~0x01;
651 os_memcpy(data->crypto_binding_nonce, binding->nonce,
652 sizeof(binding->nonce));
668 wpa_hexdump(MSG_MSGDUMP, "EAP-FAST: NONCE",
669 binding->nonce, sizeof(binding->nonce));
    [all...]
  /frameworks/base/core/java/android/os/storage/
IMountService.java 491 IObbActionListener token, int nonce) throws RemoteException {
500 _data.writeInt(nonce);
517 String rawPath, boolean force, IObbActionListener token, int nonce)
526 _data.writeInt(nonce);
1070 int nonce; local
1084 int nonce; local
    [all...]
  /external/chromium/net/http/
http_auth_handler_digest.h 24 // Unit tests can override the default client nonce behavior with fixed
25 // nonce generation to get reproducible results.
31 // Generates a client nonce.
38 // characters to generate a client nonce.
48 // construction time as the client nonce.
51 explicit FixedNonceGenerator(const std::string& nonce);
118 // |nonce_count| indicates how many times the server-specified nonce has
120 // |nonce_generator| is used to create a client nonce, and is not owned by
134 // Generates a random string, to be used for client-nonce.
http_auth_handler_digest.cc 29 // ? | ?, md5, | MD5(MD5(A1):nonce:MD5(A2)) |
32 // auth, | ?, md5, | MD5(MD5(A1):nonce:nc:cnonce:qop:MD5(A2)) |
39 // | md5-sess | MD5(user:realm:password):nonce:cnonce |
69 const std::string& nonce)
70 : nonce_(nonce) {
144 // Generate a random client nonce.
176 // nonce="<nonce-value>"
232 } else if (LowerCaseEqualsASCII(name, "nonce")) {
348 // the nonce-count is an 8 digit hex string
    [all...]
  /external/chromium_org/chromeos/dbus/
shill_manager_client.h 91 std::string nonce; member in struct:chromeos::ShillManagerClient::VerificationProperties
  /external/chromium_org/net/http/
http_auth_handler_digest.h 23 // Unit tests can override the default client nonce behavior with fixed
24 // nonce generation to get reproducible results.
30 // Generates a client nonce.
37 // characters to generate a client nonce.
47 // construction time as the client nonce.
50 explicit FixedNonceGenerator(const std::string& nonce);
117 // |nonce_count| indicates how many times the server-specified nonce has
119 // |nonce_generator| is used to create a client nonce, and is not owned by
133 // Generates a random string, to be used for client-nonce.
  /external/chromium_org/net/quic/crypto/
strike_register.cc 115 bool StrikeRegister::Insert(const uint8 nonce[32],
120 if (memcmp(nonce + sizeof(current_time), orbit_, sizeof(orbit_))) {
123 const uint32 nonce_time = ExternalTimeToInternal(TimeFromBytes(nonce));
137 // We strip the orbit out of the nonce.
141 nonce + sizeof(nonce_time) + sizeof(orbit_),
  /external/dropbear/libtomcrypt/demos/
tv_gen.c 397 unsigned char key[MAXBLOCKSIZE], nonce[MAXBLOCKSIZE*2], header[MAXBLOCKSIZE*2], local
402 fprintf(out, "EAX Test Vectors. Uses the 00010203...NN-1 pattern for header/nonce/plaintext/key. The outputs\n"
425 nonce[z] = (unsigned char)(z & 255);
429 if ((err = eax_encrypt_authenticate_memory(x, key, kl, nonce, y1, header, y1, plaintext, y1, plaintext, tag, &len)) != CRYPT_OK) {
457 unsigned char key[MAXBLOCKSIZE], nonce[MAXBLOCKSIZE*2], local
462 fprintf(out, "OCB Test Vectors. Uses the 00010203...NN-1 pattern for nonce/plaintext/key. The outputs\n"
464 "step repeated sufficiently. The nonce is fixed throughout.\n\n");
482 /* fixed nonce */
484 nonce[z] = z;
492 if ((err = ocb_encrypt_authenticate_memory(x, key, kl, nonce, plaintext, y1, plaintext, tag, &len)) != CRYPT_OK)
521 unsigned char key[MAXBLOCKSIZE], nonce[MAXBLOCKSIZE*2], local
    [all...]
  /hardware/broadcom/wlan/bcmdhd/dhdutil/include/proto/
eapol.h 110 unsigned char nonce[EAPOL_WPA_KEY_NONCE_LEN]; /* Nonce */ member in struct:__anon32683
  /external/ipsec-tools/src/racoon/
handler.h 153 vchar_t *nonce; /* nonce value */ member in struct:ph1handle
154 vchar_t *nonce_p; /* partner's nonce value */
300 vchar_t *nonce; /* nonce value in phase 2 */ member in struct:ph2handle
301 vchar_t *nonce_p; /* partner's nonce value in phase 2 */
isakmp_agg.c 176 /* generate NONCE value */
177 iph1->nonce = eay_set_random(iph1->rmconf->nonce_size);
178 if (iph1->nonce == NULL)
241 /* create isakmp NONCE payload */
242 plist = isakmp_plist_append(plist, iph1->nonce, ISAKMP_NPTYPE_NONCE);
982 /* generate NONCE value */
983 iph1->nonce = eay_set_random(iph1->rmconf->nonce_size);
984 if (iph1->nonce == NULL)
1083 /* create isakmp NONCE payload */
1085 iph1->nonce, ISAKMP_NPTYPE_NONCE)
    [all...]
  /external/wpa_supplicant_8/src/eap_common/
ikev2_common.h 13 * Nonce length must be at least 16 octets. It must also be at least half the
294 const u8 *nonce, size_t nonce_len,
312 const u8 *nonce; member in struct:ikev2_payloads
  /frameworks/opt/telephony/src/java/com/android/internal/telephony/cdma/
CDMALTEPhone.java 258 public void requestIsimAuthentication(String nonce, Message result) {
259 mCi.requestIsimAuthentication(nonce, result);
  /external/chromium_org/third_party/openssl/openssl/include/openssl/
ts.h 120 nonce INTEGER OPTIONAL,
130 ASN1_INTEGER *nonce; /* OPTIONAL */ member in struct:TS_req_st
162 nonce INTEGER OPTIONAL,
178 ASN1_INTEGER *nonce; member in struct:TS_tst_info_st
387 int TS_REQ_set_nonce(TS_REQ *a, const ASN1_INTEGER *nonce);
448 int TS_TST_INFO_set_nonce(TS_TST_INFO *a, const ASN1_INTEGER *nonce);
629 /* Verify the nonce value. */
674 ASN1_INTEGER *nonce; member in struct:TS_verify_ctx
705 * nonce, nonce_len = nonce from the request or NULL if absent (in this cas
    [all...]
  /external/openssl/include/openssl/
ts.h 120 nonce INTEGER OPTIONAL,
130 ASN1_INTEGER *nonce; /* OPTIONAL */ member in struct:TS_req_st
162 nonce INTEGER OPTIONAL,
178 ASN1_INTEGER *nonce; member in struct:TS_tst_info_st
387 int TS_REQ_set_nonce(TS_REQ *a, const ASN1_INTEGER *nonce);
448 int TS_TST_INFO_set_nonce(TS_TST_INFO *a, const ASN1_INTEGER *nonce);
629 /* Verify the nonce value. */
674 ASN1_INTEGER *nonce; member in struct:TS_verify_ctx
705 * nonce, nonce_len = nonce from the request or NULL if absent (in this cas
    [all...]
  /external/dropbear/libtomcrypt/src/encauth/eax/
eax_test.c 36 nonce[MAXBLOCKSIZE],
49 /* nonce */
62 /* test with nonce */
68 /* nonce */
82 /* test with header [no nonce] */
88 /* nonce */
102 /* test with header + nonce + plaintext */
108 /* nonce */
129 /* test with header + nonce + plaintext [not even sizes!] */
135 /* nonce */
    [all...]
  /external/srtp/crypto/cipher/
aes_icm.c 64 * | nonce | pakcet index | ctr |---+
86 * nonce can be distinct across many uses of the same key, or
263 v128_t *nonce = (v128_t *) iv; local
266 "setting iv: %s", v128_hex_string(nonce));
268 v128_xor(&c->counter, &c->offset, nonce);

Completed in 2339 milliseconds

1 2 34 5 6 7 8 910