| 3140 | } |
| 3141 | |
| 3142 | std::vector<unsigned char> JLSRTP::getMasterKey(ActiveCrypto crypto_attrib /*= ACTIVE_CRYPTO*/) |
| 3143 | { |
| 3144 | std::vector<unsigned char> retVal; |
| 3145 | ActiveCrypto active_crypto = INVALID_CRYPTO; |
| 3146 | |
| 3147 | if (crypto_attrib == ACTIVE_CRYPTO) |
| 3148 | { |
| 3149 | active_crypto = _active_crypto; |
| 3150 | } |
| 3151 | else |
| 3152 | { |
| 3153 | active_crypto = crypto_attrib; |
| 3154 | } |
| 3155 | |
| 3156 | switch (active_crypto) |
| 3157 | { |
| 3158 | case PRIMARY_CRYPTO: |
| 3159 | { |
| 3160 | retVal = _primary_crypto.master_key; |
| 3161 | } |
| 3162 | break; |
| 3163 | |
| 3164 | case SECONDARY_CRYPTO: |
| 3165 | { |
| 3166 | retVal = _secondary_crypto.master_key; |
| 3167 | } |
| 3168 | break; |
| 3169 | |
| 3170 | default: |
| 3171 | { |
| 3172 | retVal.clear(); |
| 3173 | } |
| 3174 | break; |
| 3175 | } |
| 3176 | |
| 3177 | return retVal; |
| 3178 | } |
| 3179 | |
| 3180 | std::vector<unsigned char> JLSRTP::getMasterSalt(ActiveCrypto crypto_attrib /*= ACTIVE_CRYPTO*/) |
| 3181 | { |
nothing calls this directly
no outgoing calls
no test coverage detected