Home
last modified time | relevance | path

Searched refs:now_ms (Results 1 – 2 of 2) sorted by relevance

/system/security/keystore2/src/km_compat/
Dslot_test.cpp58 uint64_t now_ms = (uint64_t)time(nullptr) * 1000; in generateECSingingKey() local
67 KMV1::makeKeyParameter(KMV1::TAG_CERTIFICATE_NOT_BEFORE, now_ms - 60 * 60 * 1000), in generateECSingingKey()
68 KMV1::makeKeyParameter(KMV1::TAG_CERTIFICATE_NOT_AFTER, now_ms + 60 * 60 * 1000), in generateECSingingKey()
94 uint64_t now_ms = (uint64_t)time(nullptr) * 1000; in generateAndBeginECDHKeyOperation() local
102 KMV1::makeKeyParameter(KMV1::TAG_CERTIFICATE_NOT_BEFORE, now_ms - 60 * 60 * 1000), in generateAndBeginECDHKeyOperation()
103 KMV1::makeKeyParameter(KMV1::TAG_CERTIFICATE_NOT_AFTER, now_ms + 60 * 60 * 1000), in generateAndBeginECDHKeyOperation()
/system/security/keystore2/src/crypto/tests/
Dcertificate_utils_test.cpp163 uint64_t now_ms = (uint64_t)time(nullptr) * 1000; in TEST_P() local
176 auto certV = makeCert(pkey.get(), std::nullopt, std::nullopt, now_ms - kValidity, in TEST_P()
177 now_ms + kValidity, true /* subject key id extension */, keyUsage, bcons); in TEST_P()
262 uint64_t now_ms = (uint64_t)time(nullptr) * 1000; in TEST_P() local
275 auto certV = makeCert(pkey.get(), std::nullopt, std::nullopt, now_ms - kValidity, in TEST_P()
276 now_ms + kValidity, true /* subject key id extension */, keyUsage, bcons); in TEST_P()