Home
last modified time | relevance | path

Searched refs:plaintext_len (Results 1 – 10 of 10) sorted by relevance

/third_party/mbedtls/library/
Dccm.c160 ctx->plaintext_len = 0; in ccm_calculate_first_block_if_ready()
184 for( i = 0, len_left = ctx->plaintext_len; i < ctx->q; i++, len_left >>= 8 ) in ccm_calculate_first_block_if_ready()
242 size_t plaintext_len, in mbedtls_ccm_set_lengths() argument
258 ctx->plaintext_len = plaintext_len; in mbedtls_ccm_set_lengths()
359 if( ctx->tag_len != 0 && ctx->processed + input_len > ctx->plaintext_len ) in mbedtls_ccm_update()
387 if( use_len + offset == 16 || ctx->processed == ctx->plaintext_len ) in mbedtls_ccm_update()
420 if( use_len + offset == 16 || ctx->processed == ctx->plaintext_len ) in mbedtls_ccm_update()
430 if( use_len + offset == 16 || ctx->processed == ctx->plaintext_len ) in mbedtls_ccm_update()
464 if( ctx->plaintext_len > 0 && ctx->processed != ctx->plaintext_len ) in mbedtls_ccm_finish()
/third_party/gstreamer/gstplugins_bad/ext/aes/
Dgstaesdec.c440 gint plaintext_len; in gst_aes_dec_transform() local
482 &plaintext_len, ciphertext, ciphertext_len)) { in gst_aes_dec_transform()
491 padding = plaintext[plaintext_len - 1]; in gst_aes_dec_transform()
498 if (plaintext[plaintext_len - 1 - k] != padding) { in gst_aes_dec_transform()
505 plaintext_len -= padding; in gst_aes_dec_transform()
507 if (plaintext_len > 2 * GST_AES_BLOCK_SIZE) in gst_aes_dec_transform()
516 ciphertext_len, plaintext_len, padding); in gst_aes_dec_transform()
517 gst_buffer_set_size (outbuf, plaintext_len); in gst_aes_dec_transform()
Dgstaesenc.c435 gint plaintext_len; in gst_aes_enc_transform() local
454 plaintext_len = inmap.size; in gst_aes_enc_transform()
456 plaintext_len += filter->padding - GST_AES_BLOCK_SIZE; in gst_aes_enc_transform()
472 &ciphertext_len, plaintext, plaintext_len)) { in gst_aes_enc_transform()
483 filter->padded_block[k] = plaintext[plaintext_len + k]; in gst_aes_enc_transform()
495 plaintext_len += GST_AES_BLOCK_SIZE; in gst_aes_enc_transform()
505 plaintext_len, ciphertext_len, filter->padding, out_len); in gst_aes_enc_transform()
/third_party/openssl/test/recipes/
D70-test_sslcbcpadding.t95 my $plaintext_len = $block_size - ($mac_len % $block_size);
96 my $plaintext = "A" x $plaintext_len;
119 $plaintext_len,
/third_party/mbedtls/include/mbedtls/
Dccm.h82 size_t MBEDTLS_PRIVATE(plaintext_len); /*!< Total plaintext length */
379 size_t plaintext_len,
/third_party/openssl/test/
Devp_extra_test.c965 int len, kek_len, ciphertext_len, plaintext_len; in test_EVP_Enveloped() local
983 || !TEST_true(EVP_OpenUpdate(ctx, plaintext, &plaintext_len, in test_EVP_Enveloped()
985 || !TEST_true(EVP_OpenFinal(ctx, plaintext + plaintext_len, &len))) in test_EVP_Enveloped()
988 plaintext_len += len; in test_EVP_Enveloped()
989 if (!TEST_mem_eq(msg, sizeof(msg), plaintext, plaintext_len)) in test_EVP_Enveloped()
Devp_test.c479 size_t plaintext_len; member
543 return parse_bin(value, &cdat->plaintext, &cdat->plaintext_len); in cipher_test_parse()
589 in_len = expected->plaintext_len; in cipher_test_enc()
596 out_len = expected->plaintext_len; in cipher_test_enc()
/third_party/node/src/
Dnode_crypto.h580 bool SetAAD(const char* data, unsigned int len, int plaintext_len);
Dnode_crypto.cc3954 bool CipherBase::SetAAD(const char* data, unsigned int len, int plaintext_len) { in SetAAD() argument
3965 if (plaintext_len < 0) { in SetAAD()
3970 if (!CheckCCMMessageLength(plaintext_len)) in SetAAD()
3979 if (!EVP_CipherUpdate(ctx_.get(), nullptr, &outlen, nullptr, plaintext_len)) in SetAAD()
3997 int plaintext_len = args[1].As<Int32>()->Value(); in SetAAD() local
4000 bool b = cipher->SetAAD(buf.data(), buf.length(), plaintext_len); in SetAAD()
/third_party/mbedtls/tests/suites/
Dtest_suite_ssl.function3485 size_t plaintext_len, block_size, i;
3507 plaintext_len = 0;
3523 plaintext_len = block_size - ( padlen + t0.maclen + 1 ) % block_size;
3528 + plaintext_len
3547 rec.data_len = plaintext_len;