shishi-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

shishi/lib Makefile.am shishi.h.in crypto-ctx.c


From: shishi-commit
Subject: shishi/lib Makefile.am shishi.h.in crypto-ctx.c
Date: Tue, 23 Sep 2003 18:31:59 -0400

CVSROOT:        /cvsroot/shishi
Module name:    shishi
Branch:         
Changes by:     Simon Josefsson <address@hidden>        03/09/23 18:31:59

Modified files:
        lib            : Makefile.am shishi.h.in 
Added files:
        lib            : crypto-ctx.c 

Log message:
        Add context encryption API (for repeated encryptions with updated IV).

CVSWeb URLs:
http://savannah.gnu.org/cgi-bin/viewcvs/shishi/shishi/lib/crypto-ctx.c?rev=1.1
http://savannah.gnu.org/cgi-bin/viewcvs/shishi/shishi/lib/Makefile.am.diff?tr1=1.55&tr2=1.56&r1=text&r2=text
http://savannah.gnu.org/cgi-bin/viewcvs/shishi/shishi/lib/shishi.h.in.diff?tr1=1.174&tr2=1.175&r1=text&r2=text

Patches:
Index: shishi/lib/Makefile.am
diff -u shishi/lib/Makefile.am:1.55 shishi/lib/Makefile.am:1.56
--- shishi/lib/Makefile.am:1.55 Mon Sep 22 20:19:57 2003
+++ shishi/lib/Makefile.am      Tue Sep 23 18:31:59 2003
@@ -43,7 +43,7 @@
        ap.c apreq.c aprep.c encapreppart.c \
        safe.c priv.c \
        ticket.c encticketpart.c tkt.c tkts.c \
-       netio.c key.c keys.c hostkeys.c crypto.c crypto.h \
+       netio.c key.c keys.c hostkeys.c crypto.c crypto.h crypto-ctx.c \
        asn1.c kerberos5.asn1 kerberos5.c \
        version.c password.c \
        utils.c resolv.c
Index: shishi/lib/shishi.h.in
diff -u shishi/lib/shishi.h.in:1.174 shishi/lib/shishi.h.in:1.175
--- shishi/lib/shishi.h.in:1.174        Sun Sep 21 09:03:07 2003
+++ shishi/lib/shishi.h.in      Tue Sep 23 18:31:59 2003
@@ -557,6 +557,7 @@
 typedef struct node_asn_struct *ASN1_TYPE;
 #endif
 typedef ASN1_TYPE Shishi_asn1;
+typedef struct Shishi_crypto Shishi_crypto;
 
 /* init.c */
 extern Shishi *shishi (void);
@@ -1417,6 +1418,20 @@
                               const char *P, size_t Plen,
                               const char *S, size_t Slen,
                               unsigned int c, unsigned int dkLen, char *DK);
+
+/* crypto-ctx.c */
+extern Shishi_crypto *shishi_crypto_init (Shishi * handle,
+                                         Shishi_key * key,
+                                         int keyusage,
+                                         int32_t etype,
+                                         const char * iv, size_t ivlen);
+extern void shishi_crypto_close (Shishi_crypto * ctx);
+extern int shishi_crypto_encrypt (Shishi_crypto * ctx,
+                                 const char *in, size_t inlen,
+                                 char **out, size_t * outlen);
+extern int shishi_crypto_decrypt (Shishi_crypto * ctx,
+                                 const char *in, size_t inlen,
+                                 char **out, size_t * outlen);
 
 /* version.c */
 extern const char *shishi_check_version (const char *req_version);




reply via email to

[Prev in Thread] Current Thread [Next in Thread]