/src/sys/external/isc/libsodium/src/ |
sodium_selftest.c | 118 static const uint8_t ciphertext[] = { local in function:crypto_aead_chacha20poly1305_ietf_selftest 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 in function:crypto_aead_xchacha20poly1305_ietf_selftest [all...] |
/src/lib/libcrypt/ |
bcrypt.c | 70 #define BCRYPT_BLOCKS 6 /* Ciphertext blocks */ 219 u_int8_t ciphertext[4 * BCRYPT_BLOCKS] = "OrpheanBeholderScryDoubt"; local in function:__bcrypt 288 cdata[i] = Blowfish_stream2word(ciphertext, 4 * BCRYPT_BLOCKS, &j); 295 ciphertext[4 * i + 3] = cdata[i] & 0xff; 297 ciphertext[4 * i + 2] = cdata[i] & 0xff; 299 ciphertext[4 * i + 1] = cdata[i] & 0xff; 301 ciphertext[4 * i + 0] = cdata[i] & 0xff; 315 encode_base64((u_int8_t *) encrypted + strlen(encrypted), ciphertext,
|
/src/sys/external/isc/libsodium/dist/test/default/ |
aead_aes256gcm.c | 3083 unsigned char *ciphertext; local in function:tv 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...] |