-#define IN6_CGA_HASH1_LENGTH 8
-#define IN6_CGA_HASH2_LENGTH 14
-#define IN6_CGA_PREPARE_ZEROES 9
+#define IN6_CGA_HASH1_LENGTH 8
+#define IN6_CGA_HASH2_LENGTH 14
+#define IN6_CGA_PREPARE_ZEROES 9
- * XXX You may notice that following does not really
- * mirror what is decribed in:
- * https://tools.ietf.org/html/rfc3972#section-4
- * By design kernel here will assume that that
- * modifier has been converged on by userspace
- * for first part of the algorithm for the given
- * security level.
- * We are not doing that yet but that's how the code
- * below is written. So really we are starting
- * from bullet 4 of the algorithm.
+ * XXX You may notice that following does not really
+ * mirror what is decribed in:
+ * https://tools.ietf.org/html/rfc3972#section-4
+ * By design kernel here will assume that that
+ * modifier has been converged on by userspace
+ * for first part of the algorithm for the given
+ * security level.
+ * We are not doing that yet but that's how the code
+ * below is written. So really we are starting
+ * from bullet 4 of the algorithm.
* @param pubkey Public key used for IID generation
* @param collisions Collission count on DAD failure
* @param pubkey Public key used for IID generation
* @param collisions Collission count on DAD failure
in6_cga.cga_prepare = *prepare;
MALLOC(privkeycopy, caddr_t, privkey.iov_len, M_IP6CGA, M_WAITOK);
in6_cga.cga_prepare = *prepare;
MALLOC(privkeycopy, caddr_t, privkey.iov_len, M_IP6CGA, M_WAITOK);
MALLOC(pubkeycopy, caddr_t, pubkey.iov_len, M_IP6CGA, M_WAITOK);
if (pubkeycopy == NULL) {
MALLOC(pubkeycopy, caddr_t, pubkey.iov_len, M_IP6CGA, M_WAITOK);
if (pubkeycopy == NULL) {
}
bcopy(privkey.iov_base, privkeycopy, privkey.iov_len);
privkey.iov_base = privkeycopy;
}
bcopy(privkey.iov_base, privkeycopy, privkey.iov_len);
privkey.iov_base = privkeycopy;
in6_cga.cga_privkey = privkey;
bcopy(pubkey.iov_base, pubkeycopy, pubkey.iov_len);
pubkey.iov_base = pubkeycopy;
in6_cga.cga_privkey = privkey;
bcopy(pubkey.iov_base, pubkeycopy, pubkey.iov_len);
pubkey.iov_base = pubkeycopy;
- bcopy(&modifier->octets, cursor, sizeof (modifier->octets));
- cursor += sizeof (modifier->octets);
+ bcopy(&modifier->octets, cursor, sizeof(modifier->octets));
+ cursor += sizeof(modifier->octets);
pubkey = &in6_cga.cga_pubkey;
if (pubkey->iov_base != NULL) {
in6_cga_generate_iid(prepare, pubkey, collisions, in6);
error = 0;
pubkey = &in6_cga.cga_pubkey;
if (pubkey->iov_base != NULL) {
in6_cga_generate_iid(prepare, pubkey, collisions, in6);
error = 0;