summaryrefslogtreecommitdiff
path: root/cpp/src/Ice/CryptKey.cpp
blob: cee409edea1bd0d416c915f8e174a754bff4665d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
// **********************************************************************
//
// Copyright (c) 2002
// MutableRealms, Inc.
// Huntsville, AL, USA
//
// All Rights Reserved
//
// **********************************************************************

#include <Ice/CryptKey.h>

using Ice::ByteSeq;

void ::IceInternal::incRef(::IceSecurity::SecureUdp::CryptKey* p) { p->__incRef(); }
void ::IceInternal::decRef(::IceSecurity::SecureUdp::CryptKey* p) { p->__decRef(); }

IceSecurity::SecureUdp::CryptKey::CryptKey(const ByteSeq& key) :
                                 _keyBytes(key)
{
}

IceSecurity::SecureUdp::CryptKey::~CryptKey()
{
}

const ByteSeq&
IceSecurity::SecureUdp::CryptKey::toByteSeq() const
{
    return _keyBytes;
}

bool
IceSecurity::SecureUdp::CryptKey::operator == (const CryptKey& key) const
{
    return _keyBytes == key._keyBytes;
}

bool
IceSecurity::SecureUdp::CryptKey::operator != (const CryptKey& key) const
{
    return !operator==(key);
}

bool
IceSecurity::SecureUdp::CryptKey::operator < (const CryptKey& key) const
{
    return _keyBytes < key._keyBytes;
}