DdsSecurity_Export int OpenDDS::Security::SSL::hash | ( | const std::vector< const DDS::OctetSeq * > & | src, | |
DDS::OctetSeq & | dst | |||
) |
Referenced by OpenDDS::Security::AuthenticationBuiltInImpl::begin_handshake_reply(), OpenDDS::Security::AuthenticationBuiltInImpl::begin_handshake_request(), OpenDDS::Security::SSL::DHAlgorithm::hash_shared_secret(), and OpenDDS::Security::AuthenticationBuiltInImpl::process_handshake_reply().
DdsSecurity_Export int OpenDDS::Security::SSL::hash_serialized | ( | const DDS::BinaryPropertySeq & | src, | |
DDS::OctetSeq & | dst | |||
) |
Referenced by OpenDDS::Security::CredentialHash::operator()().
DdsSecurity_Export int OpenDDS::Security::SSL::make_adjusted_guid | ( | const OpenDDS::DCPS::GUID_t & | src, | |
OpenDDS::DCPS::GUID_t & | dst, | |||
const Certificate & | target | |||
) |
int OpenDDS::Security::SSL::make_nonce | ( | std::vector< unsigned char > & | nonce | ) | [inline] |
Definition at line 67 of file Utils.cpp.
References ACE_TEXT(), and LM_ERROR.
00068 { 00069 nonce.clear(); 00070 00071 unsigned char tmp[Bits / 8] = { 0 }; 00072 00073 int result = RAND_bytes(tmp, sizeof(tmp)); 00074 if (1 == result) { 00075 /* Copy data to nonce */ 00076 nonce.insert(nonce.begin(), tmp, tmp + sizeof(tmp)); 00077 00078 return 0; 00079 00080 } else { 00081 unsigned long err = ERR_get_error(); 00082 char msg[256] = { 0 }; 00083 ERR_error_string_n(err, msg, sizeof(msg)); 00084 00085 ACE_ERROR((LM_ERROR, 00086 ACE_TEXT("(%P|%t) SSL::make_nonce: ERROR '%C' returned by RAND_bytes(...)\n"), 00087 msg)); 00088 } 00089 00090 return 1; 00091 }
DdsSecurity_Export int OpenDDS::Security::SSL::make_nonce_256 | ( | DDS::OctetSeq & | nonce | ) |
DdsSecurity_Export int OpenDDS::Security::SSL::make_nonce_256 | ( | std::vector< unsigned char > & | nonce | ) |
Referenced by OpenDDS::Security::AuthenticationBuiltInImpl::begin_handshake_reply(), and OpenDDS::Security::AuthenticationBuiltInImpl::begin_handshake_request().
DdsSecurity_Export unsigned char OpenDDS::Security::SSL::offset_1bit | ( | const unsigned char | array[], | |
size_t | i | |||
) |
Gets byte from array as though it were shifted right one bit.
Referenced by OpenDDS::Security::validate_topic_data_guid().
DdsSecurity_Export std::ostream & OpenDDS::Security::SSL::operator<< | ( | std::ostream & | lhs, | |
const Certificate & | rhs | |||
) |
DdsSecurity_Export bool OpenDDS::Security::SSL::operator== | ( | const SignedDocument & | lhs, | |
const SignedDocument & | rhs | |||
) |
DdsSecurity_Export bool OpenDDS::Security::SSL::operator== | ( | const PrivateKey & | lhs, | |
const PrivateKey & | rhs | |||
) |
DdsSecurity_Export bool OpenDDS::Security::SSL::operator== | ( | const Certificate & | lhs, | |
const Certificate & | rhs | |||
) |
DdsSecurity_Export int OpenDDS::Security::SSL::sign_serialized | ( | const DDS::BinaryPropertySeq & | src, | |
const PrivateKey & | key, | |||
DDS::OctetSeq & | dst | |||
) |
Referenced by OpenDDS::Security::AuthenticationBuiltInImpl::begin_handshake_reply(), and OpenDDS::Security::AuthenticationBuiltInImpl::process_handshake_reply().
DdsSecurity_Export int OpenDDS::Security::SSL::verify_serialized | ( | const DDS::BinaryPropertySeq & | src, | |
const Certificate & | key, | |||
const DDS::OctetSeq & | signed_data | |||
) |
Referenced by OpenDDS::Security::AuthenticationBuiltInImpl::process_final_handshake(), and OpenDDS::Security::AuthenticationBuiltInImpl::process_handshake_reply().