| /src/sys/external/isc/libsodium/dist/test/default/ |
| aead_aes256gcm.c | 3083 unsigned char *ciphertext; local 3135 ciphertext = (unsigned char *) sodium_malloc(ciphertext_len); 3150 ciphertext, ciphertext_len); 3155 crypto_aead_aes256gcm_encrypt(ciphertext, &found_ciphertext_len, 3160 if (memcmp(ciphertext, expected_ciphertext, ciphertext_len) != 0) { 3164 ciphertext, ciphertext_len); 3172 NULL, ciphertext, 3189 NULL, ciphertext, ciphertext_len, 3194 NULL, ciphertext, ciphertext_len, 3216 sodium_free(ciphertext); [all...] |
| /src/external/bsd/libfido2/dist/tools/ |
| largeblob.c | 359 decode(const struct blob *ciphertext, const struct blob *nonce, 377 if (ciphertext->len > UINT_MAX || 378 ciphertext->len > SIZE_MAX - 16 || 379 ciphertext->len < 16) 381 plaintext.len = ciphertext->len - 16; 390 ciphertext->ptr + ciphertext->len - 16) == 0) 399 EVP_Cipher(ctx, plaintext.ptr, ciphertext->ptr, 417 try_rp(const fido_credman_rk_t *rk, const struct blob *ciphertext, 424 decode(ciphertext, nonce, origsiz, cred) == 0 489 struct blob ciphertext, nonce; local [all...] |
| /src/lib/libcrypt/ |
| bcrypt.c | 67 #define BCRYPT_BLOCKS 6 /* Ciphertext blocks */ 216 u_int8_t ciphertext[4 * BCRYPT_BLOCKS] = "OrpheanBeholderScryDoubt"; local 285 cdata[i] = Blowfish_stream2word(ciphertext, 4 * BCRYPT_BLOCKS, &j); 292 ciphertext[4 * i + 3] = cdata[i] & 0xff; 294 ciphertext[4 * i + 2] = cdata[i] & 0xff; 296 ciphertext[4 * i + 1] = cdata[i] & 0xff; 298 ciphertext[4 * i + 0] = cdata[i] & 0xff; 312 encode_base64((u_int8_t *) encrypted + strlen(encrypted), ciphertext,
|
| /src/sys/external/isc/libsodium/src/ |
| sodium_selftest.c | 118 static const uint8_t ciphertext[] = { local 138 uint8_t inbuf[sizeof(ciphertext) + TESTALIGN]; 139 uint8_t outbuf[sizeof(ciphertext) + TESTALIGN]; 147 * (plaintext/ciphertext, associated data, nonce, and key), and 148 * the output (ciphertext/plaintext). 164 * Verify encryption produces the expected ciphertext. 191 if (outsize != sizeof(ciphertext)) { 196 outsize, sizeof(ciphertext)); 199 if (memcmp(outbuf + M, ciphertext, sizeof(ciphertext)) != 0) 361 static const uint8_t ciphertext[] = { local [all...] |
| /src/external/bsd/libfido2/dist/src/ |
| largeblob.c | 19 fido_blob_t ciphertext; member in struct:largeblob 32 fido_blob_reset(&blob->ciphertext); 79 if (aes256_gcm_dec(key, &blob->nonce, aad, &blob->ciphertext, 142 &blob->ciphertext) < 0) { 289 case 1: /* ciphertext */ 290 if (fido_blob_decode(val, &blob->ciphertext) < 0 || 291 blob->ciphertext.len < LARGEBLOB_TAG_LENGTH) 322 if (fido_blob_is_empty(&blob->ciphertext) || 343 if ((argv[0] = fido_blob_encode(&blob->ciphertext)) == NULL ||
|
| /src/sys/crypto/camellia/ |
| camellia.c | 1270 unsigned char *ciphertext) 1292 PUTU32(ciphertext, tmp[0]); 1293 PUTU32(ciphertext+4, tmp[1]); 1294 PUTU32(ciphertext+8, tmp[2]); 1295 PUTU32(ciphertext+12, tmp[3]); 1300 const unsigned char *ciphertext, 1306 tmp[0] = GETU32(ciphertext); 1307 tmp[1] = GETU32(ciphertext + 4); 1308 tmp[2] = GETU32(ciphertext + 8); 1309 tmp[3] = GETU32(ciphertext + 12) [all...] |
| /src/external/apache2/mDNSResponder/dist/Clients/dnssdutil/ |
| dnssdutil.c | 7753 uint8_t * ciphertext; local 7799 ciphertext = hdr->poly1305MAC - crypto_box_BOXZEROBYTES; 7800 memset( ciphertext, 0, crypto_box_BOXZEROBYTES ); 7803 check( plaintext == ciphertext ); 7807 err = crypto_box_open_afternm( plaintext, ciphertext, (size_t)( end - ciphertext ), nonce, context->nmKey ); [all...] |