Another clang-format run, changed how parameters are binned

This commit is contained in:
Pedro Pinto committed 2020-12-30 17:30:10 -05:00
1 parent 8f21a77150
commit de063e51f0
452 files changed
+5506 -2380

No files matched your search

+21 -9
View File
@@ -129,13 +129,19 @@ PrivateKey::~PrivateKey() {
typedef int encrypt_decrypt_init(openssl::EVP_PKEY_CTX *ctx);
typedef int encrypt_decrypt(
openssl::EVP_PKEY_CTX *ctx, unsigned char *out, size_t *outlen,
const unsigned char *in, size_t inlen);
openssl::EVP_PKEY_CTX *ctx,
unsigned char *out,
size_t *outlen,
const unsigned char *in,
size_t inlen);
bool encrypt_decrypt_function(
const std::iostream &in_dat, std::iostream &out_data,
encrypt_decrypt_init *init_function, encrypt_decrypt *function,
openssl::EVP_PKEY *key, bool encrypt) {
const std::iostream &in_dat,
std::iostream &out_data,
encrypt_decrypt_init *init_function,
encrypt_decrypt *function,
openssl::EVP_PKEY *key,
bool encrypt) {
UNUSED(encrypt);
openssl::EVP_PKEY_CTX *ctx = openssl::EVP_PKEY_CTX_new(key, 0);
bts_assert(ctx);
@@ -187,8 +193,11 @@ bool encrypt_decrypt_function(
}
int private_encrypt_func(
openssl::EVP_PKEY_CTX *ctx, unsigned char *out, size_t *outlen,
const unsigned char *in, size_t inlen) {
openssl::EVP_PKEY_CTX *ctx,
unsigned char *out,
size_t *outlen,
const unsigned char *in,
size_t inlen) {
openssl::EVP_PKEY *pk = openssl::EVP_PKEY_CTX_get0_pkey(ctx);
auto rsa = openssl::EVP_PKEY_get0_RSA(pk);
if (out == 0) {
@@ -201,8 +210,11 @@ int private_encrypt_func(
}
int public_decrypt_func(
openssl::EVP_PKEY_CTX *ctx, unsigned char *out, size_t *outlen,
const unsigned char *in, size_t inlen) {
openssl::EVP_PKEY_CTX *ctx,
unsigned char *out,
size_t *outlen,
const unsigned char *in,
size_t inlen) {
openssl::EVP_PKEY *pk = openssl::EVP_PKEY_CTX_get0_pkey(ctx);
auto rsa = openssl::EVP_PKEY_get0_RSA(pk);
if (out == 0) {