tls: Picotls engine symmetric crypto enhancement by vpp crypto framework
Type: feature Signed-off-by: Simon Zhang <yuwei1.zhang@intel.com> Change-Id: I1d4fe75e5faf3fa2086d11020828345b173ebd03
This commit is contained in:
@ -17,6 +17,7 @@ if (PICOTLS_INCLUDE_DIR AND PICOTLS_LINK_LIBRARIES)
|
||||
add_vpp_plugin(tlspicotls
|
||||
SOURCES
|
||||
tls_picotls.c
|
||||
pico_vpp_crypto.c
|
||||
certs.c
|
||||
|
||||
LINK_LIBRARIES ${PICOTLS_LINK_LIBRARIES}
|
||||
|
339
src/plugins/tlspicotls/pico_vpp_crypto.c
Normal file
339
src/plugins/tlspicotls/pico_vpp_crypto.c
Normal file
File diff suppressed because it is too large
Load Diff
31
src/plugins/tlspicotls/pico_vpp_crypto.h
Normal file
31
src/plugins/tlspicotls/pico_vpp_crypto.h
Normal file
@ -0,0 +1,31 @@
|
||||
/*
|
||||
* Copyright (c) 2020 Intel and/or its affiliates.
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at:
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef __included_pico_vpp_crypto_h__
|
||||
#define __included_pico_vpp_crypto_h__
|
||||
|
||||
#include <picotls.h>
|
||||
|
||||
extern ptls_cipher_suite_t *ptls_vpp_crypto_cipher_suites[];
|
||||
|
||||
#endif /* __included_pico_vpp_crypto_h__ */
|
||||
|
||||
/*
|
||||
* fd.io coding-style-patch-verification: ON
|
||||
*
|
||||
* Local Variables:
|
||||
* eval: (c-set-style "gnu")
|
||||
* End:
|
||||
*/
|
@ -2,6 +2,7 @@
|
||||
|
||||
#include "certs.h"
|
||||
#include "tls_picotls.h"
|
||||
#include "pico_vpp_crypto.h"
|
||||
|
||||
picotls_main_t picotls_main;
|
||||
|
||||
@ -151,7 +152,7 @@ picotls_start_listen (tls_ctx_t * lctx)
|
||||
/* setup protocol related functions */
|
||||
ptls_ctx->key_exchanges = key_exchange;
|
||||
ptls_ctx->random_bytes = ptls_openssl_random_bytes;
|
||||
ptls_ctx->cipher_suites = ptls_openssl_cipher_suites;
|
||||
ptls_ctx->cipher_suites = ptls_vpp_crypto_cipher_suites;
|
||||
ptls_ctx->get_time = &ptls_get_time;
|
||||
|
||||
lctx->tls_ssl_ctx = ptls_lctx_idx;
|
||||
|
Reference in New Issue
Block a user