/*
* crypto - Tcl bindings for parts of the `nettle' crypto library
- * Copyright 2006 Ian Jackson
+ * Copyright 2006-2012 Ian Jackson
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License as
return TCL_OK;
}
-int cht_do_hbcrypto_hash(ClientData cd, Tcl_Interp *ip, const HashAlgInfo *alg,
- HBytes_Value message, HBytes_Value *result) {
- Byte *dest;
-
- dest= cht_hb_arrayspace(result,alg->hashsize);
- alg->oneshot(dest, cht_hb_data(&message), cht_hb_len(&message));
- return TCL_OK;
-}
-
#define OBJ_CIPHKEY(o) ((CiphKeyValue*)(o)->internalRep.otherValuePtr)
typedef struct {
}
static void key_t_ustr(Tcl_Obj *o) {
- obj_updatestr_array(o, OBJ_CIPHKEY(o)->value, OBJ_CIPHKEY(o)->valuelen);
+ cht_obj_updatestr_array(o, OBJ_CIPHKEY(o)->value, OBJ_CIPHKEY(o)->valuelen);
}
static int key_t_sfa(Tcl_Interp *ip, Tcl_Obj *o) {