HomeSort by: relevance | last modified time | path
    Searched defs:plaintext (Results 1 - 8 of 8) sorted by relevancy

  /src/sys/external/isc/libsodium/src/
sodium_selftest.c 87 static const uint8_t plaintext[] = { local
147 * (plaintext/ciphertext, associated data, nonce, and key), and
148 * the output (ciphertext/plaintext).
172 memcpy(inbuf + i, plaintext, sizeof(plaintext));
179 inbuf + i, sizeof(plaintext),
209 * and produces the expected plaintext.
236 if (outsize != sizeof(plaintext)) {
241 outsize, sizeof(plaintext));
244 if (memcmp(outbuf + M, plaintext, sizeof(plaintext)) != 0)
328 static const uint8_t plaintext[] = { local
    [all...]
sodium_selftest.c 87 static const uint8_t plaintext[] = { local
147 * (plaintext/ciphertext, associated data, nonce, and key), and
148 * the output (ciphertext/plaintext).
172 memcpy(inbuf + i, plaintext, sizeof(plaintext));
179 inbuf + i, sizeof(plaintext),
209 * and produces the expected plaintext.
236 if (outsize != sizeof(plaintext)) {
241 outsize, sizeof(plaintext));
244 if (memcmp(outbuf + M, plaintext, sizeof(plaintext)) != 0)
328 static const uint8_t plaintext[] = { local
    [all...]
  /src/external/bsd/libfido2/dist/tools/
largeblob.c 351 decompress(const struct blob *plaintext, uint64_t origsiz)
353 if (try_decompress(plaintext, origsiz, MAX_WBITS) == 0) /* rfc1950 */
355 return try_decompress(plaintext, origsiz, -MAX_WBITS); /* rfc1951 */
365 struct blob plaintext; local
369 memset(&plaintext, 0, sizeof(plaintext));
381 plaintext.len = ciphertext->len - 16;
382 if ((plaintext.ptr = calloc(1, plaintext.len)) == NULL)
399 EVP_Cipher(ctx, plaintext.ptr, ciphertext->ptr
    [all...]
largeblob.c 351 decompress(const struct blob *plaintext, uint64_t origsiz)
353 if (try_decompress(plaintext, origsiz, MAX_WBITS) == 0) /* rfc1950 */
355 return try_decompress(plaintext, origsiz, -MAX_WBITS); /* rfc1951 */
365 struct blob plaintext; local
369 memset(&plaintext, 0, sizeof(plaintext));
381 plaintext.len = ciphertext->len - 16;
382 if ((plaintext.ptr = calloc(1, plaintext.len)) == NULL)
399 EVP_Cipher(ctx, plaintext.ptr, ciphertext->ptr
    [all...]
  /src/external/bsd/libfido2/dist/src/
largeblob.c 67 fido_blob_t *plaintext = NULL, *aad = NULL; local
70 if ((plaintext = fido_blob_new()) == NULL ||
80 plaintext) < 0) {
90 fido_blob_free(&plaintext);
92 return plaintext;
121 fido_blob_t *plaintext = NULL, *aad = NULL; local
124 if ((plaintext = fido_blob_new()) == NULL ||
129 if (fido_compress(plaintext, body) != FIDO_OK) {
141 if (aes256_gcm_enc(key, &blob->nonce, aad, plaintext,
150 fido_blob_free(&plaintext);
362 fido_blob_t *plaintext = NULL; local
    [all...]
largeblob.c 67 fido_blob_t *plaintext = NULL, *aad = NULL; local
70 if ((plaintext = fido_blob_new()) == NULL ||
80 plaintext) < 0) {
90 fido_blob_free(&plaintext);
92 return plaintext;
121 fido_blob_t *plaintext = NULL, *aad = NULL; local
124 if ((plaintext = fido_blob_new()) == NULL ||
129 if (fido_compress(plaintext, body) != FIDO_OK) {
141 if (aes256_gcm_enc(key, &blob->nonce, aad, plaintext,
150 fido_blob_free(&plaintext);
362 fido_blob_t *plaintext = NULL; local
    [all...]
  /src/external/apache2/mDNSResponder/dist/Clients/dnssdutil/
dnssdutil.c 7754 uint8_t * plaintext; local
7802 plaintext = (uint8_t *)( hdr + 1 ) - crypto_box_ZEROBYTES;
7803 check( plaintext == ciphertext );
7807 err = crypto_box_open_afternm( plaintext, ciphertext, (size_t)( end - ciphertext ), nonce, context->nmKey );
7810 response = plaintext + crypto_box_ZEROBYTES;
    [all...]
dnssdutil.c 7754 uint8_t * plaintext; local
7802 plaintext = (uint8_t *)( hdr + 1 ) - crypto_box_ZEROBYTES;
7803 check( plaintext == ciphertext );
7807 err = crypto_box_open_afternm( plaintext, ciphertext, (size_t)( end - ciphertext ), nonce, context->nmKey );
7810 response = plaintext + crypto_box_ZEROBYTES;
    [all...]

Completed in 166 milliseconds