| 44 | // BlobCipherKey class methods |
| 45 | |
| 46 | BlobCipherKey::BlobCipherKey(const EncryptCipherDomainId& domainId, |
| 47 | const EncryptCipherBaseKeyId& baseCiphId, |
| 48 | const uint8_t* baseCiph, |
| 49 | int baseCiphLen) { |
| 50 | EncryptCipherRandomSalt salt; |
| 51 | if (g_network->isSimulated()) { |
| 52 | salt = deterministicRandom()->randomUInt64(); |
| 53 | } else { |
| 54 | salt = nondeterministicRandom()->randomUInt64(); |
| 55 | } |
| 56 | initKey(domainId, baseCiph, baseCiphLen, baseCiphId, salt); |
| 57 | } |
| 58 | |
| 59 | BlobCipherKey::BlobCipherKey(const EncryptCipherDomainId& domainId, |
| 60 | const EncryptCipherBaseKeyId& baseCiphId, |
nothing calls this directly
no test coverage detected