* aes.c (krb5int_aes_init_state): Implement.
authorKen Raeburn <raeburn@mit.edu>
Wed, 5 Mar 2003 02:58:51 +0000 (02:58 +0000)
committerKen Raeburn <raeburn@mit.edu>
Wed, 5 Mar 2003 02:58:51 +0000 (02:58 +0000)
* enc_provider.h (krb5int_enc_aes128, krb5int_enc_aes256): Declare.

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@15228 dc483132-0cff-0310-8789-dd5450dbe970

src/lib/crypto/enc_provider/ChangeLog
src/lib/crypto/enc_provider/aes.c
src/lib/crypto/enc_provider/enc_provider.h

index f46ced59f6a4e41564f8b67bd0890084d75570c2..08a614e967fa8f495e8147b7a6d7d8b812521d47 100644 (file)
@@ -1,3 +1,9 @@
+2003-03-04  Ken Raeburn  <raeburn@mit.edu>
+
+       * aes.c (krb5int_aes_init_state): Implement.
+       * enc_provider.h (krb5int_enc_aes128, krb5int_enc_aes256):
+       Declare.
+
 2003-02-03  Ken Raeburn  <raeburn@mit.edu>
 
        * aes.c: New file.
index 4a400cd0abc6797eabc74a1bbfc98e04ca935e85..d3dc2a5a73dfafac53db12a023057d6c23d52c81 100644 (file)
@@ -166,7 +166,12 @@ static krb5_error_code
 krb5int_aes_init_state (const krb5_keyblock *key, krb5_keyusage usage,
                        krb5_data *state)
 {
-    abort();
+    state->length = 16;
+    state->data = (void *) malloc(16);
+    if (state->data == NULL)
+       return ENOMEM;
+    memset(state->data, 0, state->length);
+    return 0;
 }
 
 const struct krb5_enc_provider krb5int_enc_aes128 = {
index 9a3dafb8d6464f7458d56cfece0f4734e11dc15c..5754d1a2d55d9dce5ce2894441e56af95c4687cb 100644 (file)
@@ -29,5 +29,5 @@
 extern const struct krb5_enc_provider krb5int_enc_des;
 extern const struct krb5_enc_provider krb5int_enc_des3;
 extern const struct krb5_enc_provider krb5int_enc_arcfour;
-
-
+extern const struct krb5_enc_provider krb5int_enc_aes128;
+extern const struct krb5_enc_provider krb5int_enc_aes256;