Lines Matching refs:pt
144 unsigned char *pt, size_t *ptlen) in hpke_aead_dec() argument
181 if (EVP_DecryptUpdate(ctx, pt, &len, ct, ctlen - taglen) != 1) { in hpke_aead_dec()
192 if (EVP_DecryptFinal_ex(ctx, pt + len, &len) <= 0) { in hpke_aead_dec()
200 OPENSSL_cleanse(pt, *ptlen); in hpke_aead_dec()
219 const unsigned char *pt, size_t ptlen, in hpke_aead_enc() argument
262 if (EVP_EncryptUpdate(ctx, ct, &len, pt, ptlen) != 1) { in hpke_aead_enc()
1155 const unsigned char *pt, size_t ptlen) in OSSL_HPKE_seal() argument
1161 || pt == NULL || ptlen == 0) { in OSSL_HPKE_seal()
1183 if (hpke_aead_enc(ctx, seqbuf, aad, aadlen, pt, ptlen, ct, ctlen) != 1) { in OSSL_HPKE_seal()
1195 unsigned char *pt, size_t *ptlen, in OSSL_HPKE_open() argument
1202 if (ctx == NULL || pt == NULL || ptlen == NULL || *ptlen == 0 in OSSL_HPKE_open()
1225 if (hpke_aead_dec(ctx, seqbuf, aad, aadlen, ct, ctlen, pt, ptlen) != 1) { in OSSL_HPKE_open()