Re: Documentation for pgp_pub_decrypt

Поиск
Список
Период
Сортировка
От Kevin Grittner
Тема Re: Documentation for pgp_pub_decrypt
Дата
Msg-id CACjxUsMwjey7tCm1aKoMfHXLSUTuoLWHeir_7=HaNQa26maqFw@mail.gmail.com
обсуждение исходный текст
Ответ на Documentation for pgp_pub_decrypt  (joe@snikeris.com)
Список pgsql-docs
On Sun, Sep 25, 2016 at 4:55 AM,  <joe@snikeris.com> wrote:

> I believe the first argument [apparently of pg_sym_decrypt() and
> pg_pub_decrypt()] should be of type 'text'. Especially
> considering the paragraph that follows discusses how passing in
> bytea is disallowed.

The *encrypted* form is bytea; those functions *return* text and
are thus not a good way to get back to unencrypted bytea data; an
additional transformation would still be required to get to the
byte format from text, and the bytes representing those character
strings would depend on the character encoding.

--
Kevin Grittner
EDB: http://www.enterprisedb.com
The Enterprise PostgreSQL Company


В списке pgsql-docs по дате отправления:

Предыдущее
От: joe@snikeris.com
Дата:
Сообщение: Documentation for pgp_pub_decrypt
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Documentation for pgp_pub_decrypt