Re: understanding concept, async block ciphers

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Сергей Миронов <ierton@xxxxxxxxx> wrote:
>
> 1. Whats the difference between async crypto_alg's with
>    .cra_type = CRYPTO_ALG_TYPE_BLKCIPHER | CRYPTO_ALG_ASYNC
> and
>    .cra_type = CRYPTO_ALG_TYPE_ABLKCIPHER
> 
> Seems, that both are async. What is typical use-cases for them?

No, only the latter is async.

> 2. What are the rules for naming my alorithms?
> I looked in code, and think, that name is constructed like
> template_name1 ( template_name2 ( ... ( algorithm_name ) ... )
> 
> For example (as i saw in tcrypt.c), if my crypto_alg has
>   .cra_flags = CRYPTO_ALG_TYPE_CIPHER ,
>   .cra_name =   "des3_ede"
> then it is possible to alloc CRYPTO_ALG_TYPE_BLKCIPHER request by
> names  "cbc(des3_ede)"  or "ecb(des3_ede)" and
> CRYPTO_ALG_TYPE_BLKCIPHER  | CRYPTO_ALG_ASYNC  request with
> "cryptd(cbc(des3_ede)))" ?   Am i right ?

Yes, that's the correct algorithm name.  Each implementation
has two names, the algorithm and an implementation-specific
driver name.  The driver name is the unique identifier for that
implementation and/or device.

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

[Index of Archives]     [Kernel]     [Gnu Classpath]     [Gnu Crypto]     [DM Crypt]     [Netfilter]     [Bugtraq]

  Powered by Linux