* 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
+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.
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 = {
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;