Home
last modified time | relevance | path

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

/external/syslinux/gpxe/src/net/
Dtls.c1090 void *digest, size_t *plaintext_len ) { in tls_assemble_stream() argument
1097 *plaintext_len = ( len + mac_len ); in tls_assemble_stream()
1100 plaintext = malloc ( *plaintext_len ); in tls_assemble_stream()
1125 void *digest, size_t *plaintext_len ) { in tls_assemble_block() argument
1141 *plaintext_len = ( iv_len + len + mac_len + padding_len + 1 ); in tls_assemble_block()
1144 plaintext = malloc ( *plaintext_len ); in tls_assemble_block()
1176 size_t plaintext_len; in tls_send_plaintext() local
1195 &plaintext_len ); in tls_send_plaintext()
1198 &plaintext_len ); in tls_send_plaintext()
1202 "plaintext\n", tls, plaintext_len ); in tls_send_plaintext()
[all …]
/external/boringssl/src/crypto/rsa_extra/
Drsa_test.cc411 size_t plaintext_len = 0; in TEST_P() local
412 ASSERT_TRUE(RSA_decrypt(key.get(), &plaintext_len, plaintext, in TEST_P()
415 EXPECT_EQ(Bytes(kPlaintext, kPlaintextLen), Bytes(plaintext, plaintext_len)); in TEST_P()
424 plaintext_len = 0; in TEST_P()
425 ASSERT_TRUE(RSA_decrypt(key.get(), &plaintext_len, plaintext, in TEST_P()
428 EXPECT_EQ(Bytes(kPlaintext, kPlaintextLen), Bytes(plaintext, plaintext_len)); in TEST_P()
431 plaintext_len = 0; in TEST_P()
432 ASSERT_TRUE(RSA_decrypt(key.get(), &plaintext_len, plaintext, in TEST_P()
435 EXPECT_EQ(Bytes(kPlaintext, kPlaintextLen), Bytes(plaintext, plaintext_len)); in TEST_P()
443 key.get(), &plaintext_len, plaintext, sizeof(plaintext), ciphertext, in TEST_P()
[all …]
/external/boringssl/src/ssl/
Dssl_aead_ctx.cc162 size_t plaintext_len) { in ssl_aead_ctx_get_ad() argument
175 out[len++] = (uint8_t)(plaintext_len >> 8); in ssl_aead_ctx_get_ad()
176 out[len++] = (uint8_t)plaintext_len; in ssl_aead_ctx_get_ad()
196 size_t plaintext_len = 0; in SSL_AEAD_CTX_open() local
204 plaintext_len = in_len - overhead; in SSL_AEAD_CTX_open()
208 plaintext_len); in SSL_AEAD_CTX_open()
Dt1_lib.cc3112 size_t plaintext_len; in ssl_decrypt_ticket_with_cipher_ctx() local
3115 plaintext_len = ciphertext_len; in ssl_decrypt_ticket_with_cipher_ctx()
3127 plaintext_len = (size_t)(len1) + len2; in ssl_decrypt_ticket_with_cipher_ctx()
3131 *out_len = plaintext_len; in ssl_decrypt_ticket_with_cipher_ctx()
3144 size_t plaintext_len; in ssl_decrypt_ticket_with_method() local
3147 ssl, plaintext, &plaintext_len, ticket_len, ticket, ticket_len); in ssl_decrypt_ticket_with_method()
3152 *out_len = plaintext_len; in ssl_decrypt_ticket_with_method()
3172 size_t plaintext_len; in ssl_process_ticket() local
3176 ssl, &plaintext, &plaintext_len, out_renew_ticket, ticket, ticket_len); in ssl_process_ticket()
3179 ssl, &plaintext, &plaintext_len, out_renew_ticket, ticket, ticket_len); in ssl_process_ticket()
[all …]
/external/boringssl/src/crypto/fipsmodule/cipher/
Daead.c209 size_t plaintext_len = in_len - ctx->tag_len; in EVP_AEAD_CTX_open() local
210 if (max_out_len < plaintext_len) { in EVP_AEAD_CTX_open()
214 if (EVP_AEAD_CTX_open_gather(ctx, out, nonce, nonce_len, in, plaintext_len, in EVP_AEAD_CTX_open()
215 in + plaintext_len, ctx->tag_len, ad, ad_len)) { in EVP_AEAD_CTX_open()
216 *out_len = plaintext_len; in EVP_AEAD_CTX_open()
/external/boringssl/src/crypto/cipher_extra/
De_aesgcmsiv.c417 const size_t plaintext_len = in_len - EVP_AEAD_AES_GCM_SIV_TAG_LEN; in aead_aes_gcm_siv_asm_open() local
418 const uint8_t *const given_tag = in + plaintext_len; in aead_aes_gcm_siv_asm_open()
420 if (max_out_len < plaintext_len) { in aead_aes_gcm_siv_asm_open()
458 plaintext_len); in aead_aes_gcm_siv_asm_open()
461 plaintext_len); in aead_aes_gcm_siv_asm_open()
464 if (plaintext_len & 15) { in aead_aes_gcm_siv_asm_open()
466 plaintext_len, given_tag, in aead_aes_gcm_siv_asm_open()
469 OPENSSL_memcpy(scratch, out + (plaintext_len & ~15), plaintext_len & 15); in aead_aes_gcm_siv_asm_open()
483 length_block.bitlens.in = plaintext_len * 8; in aead_aes_gcm_siv_asm_open()
De_chacha20poly1305.c51 size_t plaintext_len, const uint8_t *ad,
62 size_t plaintext_len, const uint8_t *ad,
72 size_t plaintext_len, const uint8_t *ad, in chacha20_poly1305_open() argument
77 size_t plaintext_len, const uint8_t *ad, in chacha20_poly1305_seal() argument
/external/boringssl/src/crypto/pkcs8/
Dpkcs8.c446 size_t plaintext_len = 0; in PKCS8_marshal_encrypted_private_key() local
473 !CBB_finish(&plaintext_cbb, &plaintext, &plaintext_len)) { in PKCS8_marshal_encrypted_private_key()
495 size_t max_out = plaintext_len + EVP_CIPHER_CTX_block_size(&ctx); in PKCS8_marshal_encrypted_private_key()
496 if (max_out < plaintext_len) { in PKCS8_marshal_encrypted_private_key()
506 !EVP_CipherUpdate(&ctx, ptr, &n1, plaintext, plaintext_len) || in PKCS8_marshal_encrypted_private_key()
517 OPENSSL_cleanse(plaintext, plaintext_len); in PKCS8_marshal_encrypted_private_key()