Searched refs:pkey1 (Results 1 – 7 of 7) sorted by relevance
/external/linux-kselftest/tools/testing/selftests/powerpc/ptrace/ |
D | ptrace-pkey.c | 78 int pkey1, pkey2, pkey3; in child() local 87 pkey1 = sys_pkey_alloc(0, PKEY_DISABLE_EXECUTE); in child() 88 if (pkey1 < 0) { in child() 89 pkey1 = sys_pkey_alloc(0, 0); in child() 90 CHILD_FAIL_IF(pkey1 < 0, &info->child_sync); in child() 101 info->amr1 |= 3ul << pkeyshift(pkey1); in child() 106 info->expected_iamr |= 1ul << pkeyshift(pkey1); in child() 108 info->expected_iamr &= ~(1ul << pkeyshift(pkey1)); in child() 112 info->expected_uamor |= 3ul << pkeyshift(pkey1) | in child() 114 info->new_iamr |= 1ul << pkeyshift(pkey1) | 1ul << pkeyshift(pkey2); in child() [all …]
|
D | core-pkey.c | 113 int pkey1, pkey2, pkey3; in child() local 125 pkey1 = sys_pkey_alloc(0, PKEY_DISABLE_EXECUTE); in child() 126 if (pkey1 < 0) { in child() 127 pkey1 = sys_pkey_alloc(0, 0); in child() 128 FAIL_IF(pkey1 < 0); in child() 139 info->amr |= 3ul << pkeyshift(pkey1) | 2ul << pkeyshift(pkey2); in child() 142 info->iamr |= 1ul << pkeyshift(pkey1); in child() 144 info->iamr &= ~(1ul << pkeyshift(pkey1)); in child() 148 info->uamor |= 3ul << pkeyshift(pkey1) | 3ul << pkeyshift(pkey2); in child() 151 user_write, info->amr, pkey1, pkey2, pkey3); in child()
|
/external/conscrypt/openjdk/src/test/java/org/conscrypt/ |
D | NativeCryptoTest.java | 290 NativeRef.EVP_PKEY pkey1 = getRsaPkey(privKey1); in EVP_PKEY_cmp_withNullShouldThrow() local 291 assertNotSame(NULL, pkey1); in EVP_PKEY_cmp_withNullShouldThrow() 292 NativeCrypto.EVP_PKEY_cmp(pkey1, null); in EVP_PKEY_cmp_withNullShouldThrow() 299 NativeRef.EVP_PKEY pkey1 = getRsaPkey(privKey1); in test_EVP_PKEY_cmp() local 300 assertNotSame(NULL, pkey1); in test_EVP_PKEY_cmp() 308 assertEquals("Same keys should be the equal", 1, NativeCrypto.EVP_PKEY_cmp(pkey1, pkey1)); in test_EVP_PKEY_cmp() 311 "Same keys should be the equal", 1, NativeCrypto.EVP_PKEY_cmp(pkey1, pkey1_copy)); in test_EVP_PKEY_cmp() 314 "Different keys should not be equal", 0, NativeCrypto.EVP_PKEY_cmp(pkey1, pkey2)); in test_EVP_PKEY_cmp()
|
/external/conscrypt/repackaged/openjdk/src/test/java/com/android/org/conscrypt/ |
D | NativeCryptoTest.java | 294 NativeRef.EVP_PKEY pkey1 = getRsaPkey(privKey1); in EVP_PKEY_cmp_withNullShouldThrow() local 295 assertNotSame(NULL, pkey1); in EVP_PKEY_cmp_withNullShouldThrow() 296 NativeCrypto.EVP_PKEY_cmp(pkey1, null); in EVP_PKEY_cmp_withNullShouldThrow() 303 NativeRef.EVP_PKEY pkey1 = getRsaPkey(privKey1); in test_EVP_PKEY_cmp() local 304 assertNotSame(NULL, pkey1); in test_EVP_PKEY_cmp() 312 assertEquals("Same keys should be the equal", 1, NativeCrypto.EVP_PKEY_cmp(pkey1, pkey1)); in test_EVP_PKEY_cmp() 315 "Same keys should be the equal", 1, NativeCrypto.EVP_PKEY_cmp(pkey1, pkey1_copy)); in test_EVP_PKEY_cmp() 318 "Different keys should not be equal", 0, NativeCrypto.EVP_PKEY_cmp(pkey1, pkey2)); in test_EVP_PKEY_cmp()
|
/external/conscrypt/common/src/main/java/org/conscrypt/ |
D | NativeCrypto.java | 98 static native int EVP_PKEY_cmp(NativeRef.EVP_PKEY pkey1, NativeRef.EVP_PKEY pkey2); in EVP_PKEY_cmp() argument
|
/external/conscrypt/repackaged/common/src/main/java/com/android/org/conscrypt/ |
D | NativeCrypto.java | 102 static native int EVP_PKEY_cmp(NativeRef.EVP_PKEY pkey1, NativeRef.EVP_PKEY pkey2); in EVP_PKEY_cmp() argument
|
/external/conscrypt/common/src/jni/main/cpp/conscrypt/ |
D | native_crypto.cc | 1140 EVP_PKEY* pkey1 = fromContextObject<EVP_PKEY>(env, pkey1Ref); in NativeCrypto_EVP_PKEY_cmp() local 1141 if (pkey1 == nullptr) { in NativeCrypto_EVP_PKEY_cmp() 1150 JNI_TRACE("EVP_PKEY_cmp(%p, %p) <- ptr", pkey1, pkey2); in NativeCrypto_EVP_PKEY_cmp() 1152 int result = EVP_PKEY_cmp(pkey1, pkey2); in NativeCrypto_EVP_PKEY_cmp() 1153 JNI_TRACE("EVP_PKEY_cmp(%p, %p) => %d", pkey1, pkey2, result); in NativeCrypto_EVP_PKEY_cmp()
|