| /src/crypto/external/apache2/openssl/dist/crypto/evp/ |
| e_chacha20_poly1305.c | 221 unsigned char *buf, *tohash, *ctr, storage[sizeof(zero) + 32]; local 228 tohash = buf + CHACHA_BLK_SIZE - POLY1305_BLOCK_SIZE; 238 memcpy(tohash, actx->tls_aad, POLY1305_BLOCK_SIZE); 251 tohash_len = (size_t)(ctr - tohash); 263 memcpy(tohash, actx->tls_aad, POLY1305_BLOCK_SIZE); 297 tohash = ctr; 343 Poly1305_Update(POLY1305_ctx(actx), tohash, tohash_len); local 346 EVP_CIPHER_CTX_is_encrypting(ctx) ? actx->tag : tohash); 353 if (CRYPTO_memcmp(tohash, in, POLY1305_BLOCK_SIZE)) {
|
| /src/crypto/external/apache2/openssl/dist/providers/implementations/ciphers/ |
| cipher_chacha20_poly1305_hw.c | 124 unsigned char *buf, *tohash, *ctr, storage[sizeof(zero) + 32]; local 130 tohash = buf + CHACHA_BLK_SIZE - POLY1305_BLOCK_SIZE; 139 memcpy(tohash, ctx->tls_aad, POLY1305_BLOCK_SIZE); 152 tohash_len = (size_t)(ctr - tohash); 164 memcpy(tohash, ctx->tls_aad, POLY1305_BLOCK_SIZE); 198 tohash = ctr; 240 Poly1305_Update(poly, tohash, tohash_len); 242 Poly1305_Final(poly, bctx->enc ? ctx->tag : tohash); 249 if (CRYPTO_memcmp(tohash, in, POLY1305_BLOCK_SIZE)) {
|
| /src/crypto/external/bsd/openssl/dist/crypto/evp/ |
| e_chacha20_poly1305.c | 219 unsigned char *buf, *tohash, *ctr, storage[sizeof(zero) + 32]; local 226 tohash = buf + CHACHA_BLK_SIZE - POLY1305_BLOCK_SIZE; 236 memcpy(tohash, actx->tls_aad, POLY1305_BLOCK_SIZE); 249 tohash_len = (size_t)(ctr - tohash); 261 memcpy(tohash, actx->tls_aad, POLY1305_BLOCK_SIZE); 295 tohash = ctr; 341 Poly1305_Update(POLY1305_ctx(actx), tohash, tohash_len); local 344 : tohash); 351 if (CRYPTO_memcmp(tohash, in, POLY1305_BLOCK_SIZE)) {
|
| /src/crypto/external/bsd/openssl/dist/providers/implementations/ciphers/ |
| cipher_chacha20_poly1305_hw.c | 125 unsigned char *buf, *tohash, *ctr, storage[sizeof(zero) + 32]; local 131 tohash = buf + CHACHA_BLK_SIZE - POLY1305_BLOCK_SIZE; 140 memcpy(tohash, ctx->tls_aad, POLY1305_BLOCK_SIZE); 153 tohash_len = (size_t)(ctr - tohash); 165 memcpy(tohash, ctx->tls_aad, POLY1305_BLOCK_SIZE); 199 tohash = ctr; 241 Poly1305_Update(poly, tohash, tohash_len); 243 Poly1305_Final(poly, bctx->enc ? ctx->tag : tohash); 250 if (CRYPTO_memcmp(tohash, in, POLY1305_BLOCK_SIZE)) {
|
| /src/crypto/external/bsd/openssl.old/dist/crypto/evp/ |
| e_chacha20_poly1305.c | 217 unsigned char *buf, *tohash, *ctr, storage[sizeof(zero) + 32]; local 224 tohash = buf + CHACHA_BLK_SIZE - POLY1305_BLOCK_SIZE; 234 memcpy(tohash, actx->tls_aad, POLY1305_BLOCK_SIZE); 247 tohash_len = (size_t)(ctr - tohash); 259 memcpy(tohash, actx->tls_aad, POLY1305_BLOCK_SIZE); 293 tohash = ctr; 342 Poly1305_Update(POLY1305_ctx(actx), tohash, tohash_len); local 345 : tohash); 352 if (CRYPTO_memcmp(tohash, in, POLY1305_BLOCK_SIZE)) {
|
| /src/external/gpl3/gcc.old/dist/gcc/d/dmd/ |
| clone.d | 724 * We need a toHash for the struct if 725 * any fields has a toHash. 736 /* If any of the fields has an toHash, then we 783 if (Dsymbol s = search_function(sd, Id.tohash)) 808 * But, it's debatable whether C structs should even need toHash(). 810 * For now, we'll just not generate a toHash() for C files. 828 * hash value will also contain the result of parent class's toHash().
|
| typesem.d | 995 // sd or its fields have user-defined toHash. 1016 .error(loc, "%sAA key type `%s` should have `extern (D) size_t toHash() const nothrow @safe` if `opEquals` defined", s, sd.toChars()); 1056 fhash = search_function(ClassDeclaration.object, Id.tohash).isFuncDeclaration(); 1067 errorSupplemental(loc, "Please override `Object.opEquals` and `Object.toHash`.");
|