dst_context_t
dst_context_t *tsigctx;
dst_context_t **dctxp)
dst_context_t *dctx;
dctx = malloc(sizeof(dst_context_t));
dst_context_destroy(dst_context_t **dctxp) {
dst_context_t *dctx;
dst_context_adddata(dst_context_t *dctx, const isc_region_t *data) {
dst_context_sign(dst_context_t *dctx, isc_buffer_t *sig) {
dst_context_verify(dst_context_t *dctx, isc_region_t *sig) {
isc_result_t (*createctx)(dst_key_t *key, dst_context_t *dctx);
void (*destroyctx)(dst_context_t *dctx);
isc_result_t (*adddata)(dst_context_t *dctx, const isc_region_t *data);
isc_result_t (*sign)(dst_context_t *dctx, isc_buffer_t *sig);
isc_result_t (*verify)(dst_context_t *dctx, const isc_region_t *sig);
hmacsha1_verify(dst_context_t *dctx, const isc_region_t *sig) {
hmacsha224_createctx(dst_key_t *key, dst_context_t *dctx) {
hmacsha224_destroyctx(dst_context_t *dctx) {
hmacsha224_adddata(dst_context_t *dctx, const isc_region_t *data) {
hmacsha224_sign(dst_context_t *dctx, isc_buffer_t *sig) {
hmacsha224_verify(dst_context_t *dctx, const isc_region_t *sig) {
hmacsha256_createctx(dst_key_t *key, dst_context_t *dctx) {
hmacsha256_destroyctx(dst_context_t *dctx) {
hmacsha256_adddata(dst_context_t *dctx, const isc_region_t *data) {
hmacsha256_sign(dst_context_t *dctx, isc_buffer_t *sig) {
hmacsha256_verify(dst_context_t *dctx, const isc_region_t *sig) {
hmacsha384_createctx(dst_key_t *key, dst_context_t *dctx) {
hmacsha384_destroyctx(dst_context_t *dctx) {
hmacsha384_adddata(dst_context_t *dctx, const isc_region_t *data) {
hmacsha384_sign(dst_context_t *dctx, isc_buffer_t *sig) {
hmacsha384_verify(dst_context_t *dctx, const isc_region_t *sig) {
hmacsha1_createctx(dst_key_t *key, dst_context_t *dctx) {
hmacsha512_createctx(dst_key_t *key, dst_context_t *dctx) {
hmacsha512_destroyctx(dst_context_t *dctx) {
hmacsha512_adddata(dst_context_t *dctx, const isc_region_t *data) {
hmacsha512_sign(dst_context_t *dctx, isc_buffer_t *sig) {
hmacsha512_verify(dst_context_t *dctx, const isc_region_t *sig) {
hmacsha1_destroyctx(dst_context_t *dctx) {
hmacsha1_adddata(dst_context_t *dctx, const isc_region_t *data) {
hmacsha1_sign(dst_context_t *dctx, isc_buffer_t *sig) {
dst_context_t *tsigctx;
dst_context_t **dctxp);
dst_context_destroy(dst_context_t **dctxp);
dst_context_adddata(dst_context_t *dctx, const isc_region_t *data);
dst_context_sign(dst_context_t *dctx, isc_buffer_t *sig);
dst_context_verify(dst_context_t *dctx, isc_region_t *sig);
dst_context_t *ctx = NULL;
dst_context_t *ctx = NULL;