Home
last modified time | relevance | path

Searched refs:cipherText (Results 1 – 18 of 18) sorted by relevance

/external/tpm2-tss/src/tss2-sys/api/
DTss2_Sys_RSA_Decrypt.c18 const TPM2B_PUBLIC_KEY_RSA *cipherText, in Tss2_Sys_RSA_Decrypt_Prepare() argument
38 if (!cipherText) { in Tss2_Sys_RSA_Decrypt_Prepare()
46 rval = Tss2_MU_TPM2B_PUBLIC_KEY_RSA_Marshal(cipherText, in Tss2_Sys_RSA_Decrypt_Prepare()
106 const TPM2B_PUBLIC_KEY_RSA *cipherText, in Tss2_Sys_RSA_Decrypt() argument
118 rval = Tss2_Sys_RSA_Decrypt_Prepare(sysContext, keyHandle, cipherText, in Tss2_Sys_RSA_Decrypt()
/external/tpm2-tss/src/tss2-fapi/api/
DFapi_Encrypt.c78 uint8_t **cipherText, in Fapi_Encrypt() argument
89 check_not_null(cipherText); in Fapi_Encrypt()
116 r = Fapi_Encrypt_Finish(context, cipherText, cipherTextSize); in Fapi_Encrypt()
242 uint8_t **cipherText, in Fapi_Encrypt_Finish() argument
251 check_not_null(cipherText); in Fapi_Encrypt_Finish()
342 *cipherText = malloc(tpmCipherText->size); in Fapi_Encrypt_Finish()
343 goto_if_null2(*cipherText, "Out of memory", r, TSS2_FAPI_RC_MEMORY, in Fapi_Encrypt_Finish()
346 memcpy(*cipherText, &tpmCipherText->buffer[0], tpmCipherText->size); in Fapi_Encrypt_Finish()
DFapi_Decrypt.c72 uint8_t const *cipherText, in Fapi_Decrypt() argument
84 check_not_null(cipherText); in Fapi_Decrypt()
100 r = Fapi_Decrypt_Async(context, keyPath, cipherText, cipherTextSize); in Fapi_Decrypt()
155 uint8_t const *cipherText, in Fapi_Decrypt_Async() argument
159 LOG_TRACE("cipherText: %s", cipherText); in Fapi_Decrypt_Async()
166 check_not_null(cipherText); in Fapi_Decrypt_Async()
182 memcpy(inData, cipherText, cipherTextSize); in Fapi_Decrypt_Async()
/external/tpm2-tss/test/integration/
Dfapi-data-crypt.int.c193 uint8_t *cipherText = NULL; in test_fapi_data_crypt() local
239 SIZE, &cipherText, &cipherTextSize); in test_fapi_data_crypt()
250 r = Fapi_Decrypt(context, "HS/SRK/myRsaCryptKey", cipherText, cipherTextSize, in test_fapi_data_crypt()
260 Fapi_Free(cipherText); in test_fapi_data_crypt()
268 Fapi_Free(cipherText); in test_fapi_data_crypt()
/external/tpm2-tss/src/tss2-esys/api/
DEsys_RSA_Decrypt.c70 const TPM2B_PUBLIC_KEY_RSA *cipherText, in Esys_RSA_Decrypt() argument
78 shandle3, cipherText, inScheme, label); in Esys_RSA_Decrypt()
146 const TPM2B_PUBLIC_KEY_RSA *cipherText, in Esys_RSA_Decrypt_Async() argument
153 esysContext, keyHandle, cipherText, inScheme, label); in Esys_RSA_Decrypt_Async()
178 : keyHandleNode->rsrc.handle, cipherText, in Esys_RSA_Decrypt_Async()
/external/ms-tpm-20-ref/TPMCmd/tpm/include/prototypes/
DRSA_Decrypt_fp.h48 TPM2B_PUBLIC_KEY_RSA cipherText; member
/external/tpm2-tss/include/tss2/
Dtss2_fapi.h313 uint8_t **cipherText,
324 uint8_t **cipherText,
330 uint8_t const *cipherText,
338 uint8_t const *cipherText,
Dtss2_sys.h492 const TPM2B_PUBLIC_KEY_RSA *cipherText,
504 const TPM2B_PUBLIC_KEY_RSA *cipherText,
Dtss2_esys.h755 const TPM2B_PUBLIC_KEY_RSA *cipherText,
767 const TPM2B_PUBLIC_KEY_RSA *cipherText,
/external/conscrypt/common/src/test/java/org/conscrypt/javax/crypto/
DCipherTest.java1277 byte[] cipherText = c.wrap(sk); in test_Cipher()
1281 Key decryptedKey = c.unwrap(cipherText, sk.getAlgorithm(), Cipher.SECRET_KEY); in test_Cipher()
1298 byte[] cipherText = c.doFinal(getActualPlainText(algorithm)); in test_Cipher()
1301 assertEquals(cipherID, Arrays.toString(cipherText), Arrays.toString(cipherText2)); in test_Cipher()
1308 byte[] decryptedPlainText = c.doFinal(cipherText); in test_Cipher()
1315 byte[] decryptedPlainText2 = c.doFinal(cipherText); in test_Cipher()
1326 decryptKey, cipherText); in test_Cipher()
1528 byte[] cipherText = c.doFinal(text); in test_Cipher_aborted_doFinal()
1533 byte[] plainText = c.doFinal(cipherText); in test_Cipher_aborted_doFinal()
1568 byte[] cipherText = encryptCipher.doFinal(prePaddedPlainText); in testInputPKCS1Padding()
[all …]
/external/conscrypt/repackaged/common/src/test/java/com/android/org/conscrypt/javax/crypto/
DCipherTest.java1281 byte[] cipherText = c.wrap(sk); in test_Cipher()
1285 Key decryptedKey = c.unwrap(cipherText, sk.getAlgorithm(), Cipher.SECRET_KEY); in test_Cipher()
1302 byte[] cipherText = c.doFinal(getActualPlainText(algorithm)); in test_Cipher()
1305 assertEquals(cipherID, Arrays.toString(cipherText), Arrays.toString(cipherText2)); in test_Cipher()
1312 byte[] decryptedPlainText = c.doFinal(cipherText); in test_Cipher()
1319 byte[] decryptedPlainText2 = c.doFinal(cipherText); in test_Cipher()
1330 decryptKey, cipherText); in test_Cipher()
1532 byte[] cipherText = c.doFinal(text); in test_Cipher_aborted_doFinal()
1537 byte[] plainText = c.doFinal(cipherText); in test_Cipher_aborted_doFinal()
1572 byte[] cipherText = encryptCipher.doFinal(prePaddedPlainText); in testInputPKCS1Padding()
[all …]
/external/ms-tpm-20-ref/TPMCmd/tpm/src/command/Asymmetric/
DRSA_Decrypt.c101 result = CryptRsaDecrypt(&out->message.b, &in->cipherText.b, rsaKey, in TPM2_RSA_Decrypt()
/external/tpm2-tss/test/unit/
Desys-tcti-rcs.c768 TPM2B_PUBLIC_KEY_RSA cipherText = DUMMY_2B_DATA(.buffer); in test_RSA_Decrypt() local
777 &cipherText, &inScheme, &label, &message); in test_RSA_Decrypt()
Desys-tpm-rcs.c748 TPM2B_PUBLIC_KEY_RSA cipherText = DUMMY_2B_DATA(.buffer); in test_RSA_Decrypt() local
757 &cipherText, &inScheme, &label, &message); in test_RSA_Decrypt()
Desys-resubmissions.c807 TPM2B_PUBLIC_KEY_RSA cipherText = DUMMY_2B_DATA(.buffer); in test_RSA_Decrypt() local
816 &cipherText, &inScheme, &label, &message); in test_RSA_Decrypt()
/external/tpm2-tss/doc/
Ddoxygen.dox825 …ndle1, ESYS_TR shandle2, ESYS_TR shandle3, const TPM2B_PUBLIC_KEY_RSA *cipherText, const TPMT_RSA_…
826 …ndle1, ESYS_TR shandle2, ESYS_TR shandle3, const TPM2B_PUBLIC_KEY_RSA *cipherText, const TPMT_RSA_…
1320 uint8_t **cipherText,
1331 uint8_t **cipherText,
1341 uint8_t const *cipherText,
1349 uint8_t const *cipherText,
/external/ms-tpm-20-ref/TPMCmd/tpm/include/
DCommandDispatcher.h437 result = TPM2B_PUBLIC_KEY_RSA_Unmarshal(&in->cipherText, paramBuffer, paramBufferSize);
DCommandDispatchData.h1151 /* offsets */ {(UINT16)(offsetof(RSA_Decrypt_In, cipherText)),