DS support in DNSSEC
Merge request reports
Activity
Filter activity
Added 1 commit:
- 46681d33 - libdnssec, missing crypto initialization in DS tests
55 56 { DNSSEC_SIGN_INIT_ERROR, "signing initialization error" }, 56 57 { DNSSEC_SIGN_ERROR, "signing error" }, 57 58 { DNSSEC_INVALID_SIGNATURE, "invalid signature" }, 59 58 60 { DNSSEC_INVALID_NSEC3_ALGORITHM, "invalid NSEC3 algorithm" }, 29 /*! 30 * Convert DNSSEC DS digest algorithm to GnuTLS digest algorithm. 31 */ 32 static gnutls_digest_algorithm_t lookup_algorithm(dnssec_key_digest_t algorithm) 33 { 34 switch (algorithm) { 35 case DNSSEC_KEY_DIGEST_SHA1: return GNUTLS_DIG_SHA1; 36 case DNSSEC_KEY_DIGEST_SHA256: return GNUTLS_DIG_SHA256; 37 case DNSSEC_KEY_DIGEST_SHA384: return GNUTLS_DIG_SHA384; 38 default: 39 return GNUTLS_DIG_UNKNOWN; 40 }; 41 } 42 43 static void wire_write_digest(wire_ctx_t *wire, 44 gnutls_hash_hd_t digest, int digest_size) 40 }; 41 } 42 43 static void wire_write_digest(wire_ctx_t *wire, 44 gnutls_hash_hd_t digest, int digest_size) 45 { 46 assert(wire_available(wire) >= digest_size); 47 gnutls_hash_output(digest, wire->position); 48 wire->position += digest_size; 49 } 50 22 51 _public_ 23 int dnssec_key_create_ds(const dnssec_key_t *key, dnssec_key_digest_t digest, 24 dnssec_binary_t *rdata) 52 int dnssec_key_create_ds(const dnssec_key_t *key, 53 dnssec_key_digest_t ds_algorithm, mentioned in commit 7af5d6ec
Please register or sign in to reply