Dimitrios Siganos <dimitris@xxxxxxxxxxx> wrote: > Hi, > > I am trying to write an ABLKCIPHER algorithm for my hardware crypto > engine and I have a few questions: > > 1) In struct ablkcipher_alg, what do these fields do? I see some > implementations use them and some not. Do I need to implement them? > int (*givencrypt)(struct skcipher_givcrypt_request *req); > int (*givdecrypt)(struct skcipher_givcrypt_request *req); > const char *geniv; These do not have to be implemented, unless your hardware is capable of generating initial IVs (e.g., through a secure RNG). > 2) What is a CRYPTO_ALG_TYPE_GIVCIPHER? What does it do and how does it > interface to other algorithms? That's the type to use if you do choose to provide givencrypt and givdecrypt. Cheers, -- Visit Openswan at http://www.openswan.org/ Email: Herbert Xu ~{PmV>HI~} <herbert@xxxxxxxxxxxxxxxxxxx> Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt -- To unsubscribe from this list: send the line "unsubscribe linux-crypto" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html