FreeRDP
|
#include <freerdp/config.h>
#include "settings.h"
#include "security.h"
#include <freerdp/log.h>
#include <winpr/crypto.h>
Macros | |
#define | TAG FREERDP_TAG("core") |
Functions | |
static BOOL | security_salted_hash (const BYTE *salt, size_t salt_len, const BYTE *input, size_t length, const BYTE *salt1, size_t salt1_len, const BYTE *salt2, size_t salt2_len, BYTE *output, size_t out_len) |
static BOOL | security_premaster_hash (const BYTE *input, size_t length, const BYTE *premaster_secret, size_t pre_len, const BYTE *client_random, size_t client_len, const BYTE *server_random, size_t server_len, BYTE *output, size_t out_len) |
BOOL | security_master_secret (const BYTE *premaster_secret, size_t pre_len, const BYTE *client_random, size_t client_len, const BYTE *server_random, size_t server_len, BYTE *output, size_t out_len) |
static BOOL | security_master_hash (const BYTE *input, size_t length, const BYTE *master_secret, size_t master_len, const BYTE *client_random, size_t client_len, const BYTE *server_random, size_t server_len, BYTE *output, size_t out_len) |
BOOL | security_session_key_blob (const BYTE *master_secret, size_t master_len, const BYTE *client_random, size_t client_len, const BYTE *server_random, size_t server_len, BYTE *output, size_t out_len) |
void | security_mac_salt_key (const BYTE *session_key_blob, size_t session_len, const BYTE *client_random, size_t client_len, const BYTE *server_random, size_t server_len, BYTE *output, size_t out_len) |
static BOOL | security_md5_16_32_32 (const BYTE *in0, const BYTE *in1, const BYTE *in2, BYTE *output, size_t out_len) |
static BOOL | security_md5_16_32_32_Allow_FIPS (const BYTE *in0, const BYTE *in1, const BYTE *in2, BYTE *output, size_t out_len) |
BOOL | security_licensing_encryption_key (const BYTE *session_key_blob, size_t session_len, const BYTE *client_random, size_t client_len, const BYTE *server_random, size_t server_len, BYTE *output, size_t out_len) |
static void | security_UINT32_le (BYTE *output, size_t out_len, UINT32 value) |
BOOL | security_mac_data (const BYTE *mac_salt_key, size_t mac_salt_key_length, const BYTE *data, size_t length, BYTE *output, size_t output_length) |
BOOL | security_mac_signature (rdpRdp *rdp, const BYTE *data, UINT32 length, BYTE *output, size_t out_len) |
BOOL | security_salted_mac_signature (rdpRdp *rdp, const BYTE *data, UINT32 length, BOOL encryption, BYTE *output, size_t out_len) |
static BOOL | security_A (const BYTE *master_secret, size_t master_len, const BYTE *client_random, size_t client_len, const BYTE *server_random, size_t server_len, BYTE *output, size_t out_len) |
static BOOL | security_X (const BYTE *master_secret, size_t master_len, const BYTE *client_random, size_t client_len, const BYTE *server_random, size_t server_len, BYTE *output, size_t out_len) |
static void | fips_expand_key_bits (const BYTE *in, size_t in_len, BYTE *out, size_t out_len) |
BOOL | security_establish_keys (rdpRdp *rdp) |
static BOOL | security_key_update (BYTE *key, BYTE *update_key, size_t key_len, rdpRdp *rdp) |
BOOL | security_encrypt (BYTE *data, size_t length, rdpRdp *rdp) |
BOOL | security_decrypt (BYTE *data, size_t length, rdpRdp *rdp) |
BOOL | security_hmac_signature (const BYTE *data, size_t length, BYTE *output, size_t out_len, rdpRdp *rdp) |
BOOL | security_fips_encrypt (BYTE *data, size_t length, rdpRdp *rdp) |
BOOL | security_fips_decrypt (BYTE *data, size_t length, rdpRdp *rdp) |
BOOL | security_fips_check_signature (const BYTE *data, size_t length, const BYTE *sig, size_t sig_len, rdpRdp *rdp) |
BOOL | security_lock (rdpRdp *rdp) |
BOOL | security_unlock (rdpRdp *rdp) |
Variables | |
static const BYTE | A [] = { 'A' } |
static const BYTE | BB [] = { 'B', 'B' } |
static const BYTE | CCC [] = { 'C', 'C', 'C' } |
static const BYTE | pad1 [40] |
static const BYTE | pad2 [48] |
static const BYTE | fips_reverse_table [256] |
static const BYTE | fips_oddparity_table [256] |
#define TAG FREERDP_TAG("core") |
FreeRDP: A Remote Desktop Protocol Implementation RDP Security
Copyright 2011 Marc-Andre Moreau marca Copyright 2014 Norbert Federa ndre .more au@g mail. comnorbe rt.f edera @thi ncast .com
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.
|
static |
|
static |
BOOL security_decrypt | ( | BYTE * | data, |
size_t | length, | ||
rdpRdp * | rdp | ||
) |
BOOL security_encrypt | ( | BYTE * | data, |
size_t | length, | ||
rdpRdp * | rdp | ||
) |
BOOL security_establish_keys | ( | rdpRdp * | rdp | ) |
BOOL security_fips_check_signature | ( | const BYTE * | data, |
size_t | length, | ||
const BYTE * | sig, | ||
size_t | sig_len, | ||
rdpRdp * | rdp | ||
) |
BOOL security_fips_decrypt | ( | BYTE * | data, |
size_t | length, | ||
rdpRdp * | rdp | ||
) |
BOOL security_fips_encrypt | ( | BYTE * | data, |
size_t | length, | ||
rdpRdp * | rdp | ||
) |
BOOL security_hmac_signature | ( | const BYTE * | data, |
size_t | length, | ||
BYTE * | output, | ||
size_t | out_len, | ||
rdpRdp * | rdp | ||
) |
|
static |
BOOL security_licensing_encryption_key | ( | const BYTE * | session_key_blob, |
size_t | session_len, | ||
const BYTE * | client_random, | ||
size_t | client_len, | ||
const BYTE * | server_random, | ||
size_t | server_len, | ||
BYTE * | output, | ||
size_t | out_len | ||
) |
BOOL security_lock | ( | rdpRdp * | rdp | ) |
BOOL security_mac_data | ( | const BYTE * | mac_salt_key, |
size_t | mac_salt_key_length, | ||
const BYTE * | data, | ||
size_t | length, | ||
BYTE * | output, | ||
size_t | output_length | ||
) |
void security_mac_salt_key | ( | const BYTE * | session_key_blob, |
size_t | session_len, | ||
const BYTE * | client_random, | ||
size_t | client_len, | ||
const BYTE * | server_random, | ||
size_t | server_len, | ||
BYTE * | output, | ||
size_t | out_len | ||
) |
BOOL security_mac_signature | ( | rdpRdp * | rdp, |
const BYTE * | data, | ||
UINT32 | length, | ||
BYTE * | output, | ||
size_t | out_len | ||
) |
|
static |
BOOL security_master_secret | ( | const BYTE * | premaster_secret, |
size_t | pre_len, | ||
const BYTE * | client_random, | ||
size_t | client_len, | ||
const BYTE * | server_random, | ||
size_t | server_len, | ||
BYTE * | output, | ||
size_t | out_len | ||
) |
FreeRDP: A Remote Desktop Protocol Implementation RDP Security
Copyright 2011 Marc-Andre Moreau marca ndre .more au@g mail. com
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.
|
static |
|
static |
|
static |
|
static |
BOOL security_salted_mac_signature | ( | rdpRdp * | rdp, |
const BYTE * | data, | ||
UINT32 | length, | ||
BOOL | encryption, | ||
BYTE * | output, | ||
size_t | out_len | ||
) |
BOOL security_session_key_blob | ( | const BYTE * | master_secret, |
size_t | master_len, | ||
const BYTE * | client_random, | ||
size_t | client_len, | ||
const BYTE * | server_random, | ||
size_t | server_len, | ||
BYTE * | output, | ||
size_t | out_len | ||
) |
|
static |
BOOL security_unlock | ( | rdpRdp * | rdp | ) |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |