26
26
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
27
27
* SUCH DAMAGE.
28
28
*
29
- * $PostgreSQL: pgsql/contrib/pgcrypto/pgcrypto.c,v 1.16 2004/05/07 00:24:57 tgl Exp $
29
+ * $PostgreSQL: pgsql/contrib/pgcrypto/pgcrypto.c,v 1.17 2005/03/21 05:18:45 neilc Exp $
30
30
*/
31
31
32
32
#include "postgres.h"
@@ -46,7 +46,7 @@ typedef int (*PFN) (const char *name, void **res);
46
46
static void *
47
47
find_provider (text * name , PFN pf , char * desc , int silent );
48
48
49
- /* SQL function: hash(text , text) returns text */
49
+ /* SQL function: hash(bytea , text) returns bytea */
50
50
PG_FUNCTION_INFO_V1 (pg_digest );
51
51
52
52
Datum
@@ -111,7 +111,7 @@ pg_digest_exists(PG_FUNCTION_ARGS)
111
111
PG_RETURN_BOOL (true);
112
112
}
113
113
114
- /* SQL function: hmac(data:text , key:text , type:text) */
114
+ /* SQL function: hmac(data:bytea , key:bytea , type:text) returns bytea */
115
115
PG_FUNCTION_INFO_V1 (pg_hmac );
116
116
117
117
Datum
@@ -316,7 +316,7 @@ pg_crypt(PG_FUNCTION_ARGS)
316
316
PG_RETURN_TEXT_P (res );
317
317
}
318
318
319
- /* SQL function: pg_encrypt(text, text , text) returns text */
319
+ /* SQL function: pg_encrypt(bytea, bytea , text) returns bytea */
320
320
PG_FUNCTION_INFO_V1 (pg_encrypt );
321
321
322
322
Datum
@@ -367,7 +367,7 @@ pg_encrypt(PG_FUNCTION_ARGS)
367
367
PG_RETURN_BYTEA_P (res );
368
368
}
369
369
370
- /* SQL function: pg_decrypt(text, text , text) returns text */
370
+ /* SQL function: pg_decrypt(bytea, bytea , text) returns bytea */
371
371
PG_FUNCTION_INFO_V1 (pg_decrypt );
372
372
373
373
Datum
@@ -417,7 +417,7 @@ pg_decrypt(PG_FUNCTION_ARGS)
417
417
PG_RETURN_BYTEA_P (res );
418
418
}
419
419
420
- /* SQL function: pg_encrypt(text, text, text) returns text */
420
+ /* SQL function: pg_encrypt_iv(bytea, bytea, bytea, text) returns bytea */
421
421
PG_FUNCTION_INFO_V1 (pg_encrypt_iv );
422
422
423
423
Datum
@@ -473,7 +473,7 @@ pg_encrypt_iv(PG_FUNCTION_ARGS)
473
473
PG_RETURN_BYTEA_P (res );
474
474
}
475
475
476
- /* SQL function: pg_decrypt_iv(text, text, text) returns text */
476
+ /* SQL function: pg_decrypt_iv(bytea, bytea, bytea, text) returns bytea */
477
477
PG_FUNCTION_INFO_V1 (pg_decrypt_iv );
478
478
479
479
Datum
@@ -529,7 +529,7 @@ pg_decrypt_iv(PG_FUNCTION_ARGS)
529
529
PG_RETURN_BYTEA_P (res );
530
530
}
531
531
532
- /* SQL function: pg_decrypt (text, text, text ) returns text */
532
+ /* SQL function: pg_cipher_exists (text) returns bool */
533
533
PG_FUNCTION_INFO_V1 (pg_cipher_exists );
534
534
535
535
Datum
@@ -550,7 +550,6 @@ pg_cipher_exists(PG_FUNCTION_ARGS)
550
550
PG_RETURN_BOOL ((c != NULL ) ? true : false);
551
551
}
552
552
553
-
554
553
static void *
555
554
find_provider (text * name ,
556
555
PFN provider_lookup ,
0 commit comments