Lines Matching refs:keylen
403 @param keylen The key length in bytes
409 static int _cast5_setup(const unsigned char *key, int keylen, int num_rounds, symmetric_key *skey)
411 int cast5_setup(const unsigned char *key, int keylen, int num_rounds, symmetric_key *skey)
425 if (num_rounds == 12 && keylen > 10) {
429 if (keylen < 5 || keylen > 16) {
435 XMEMCPY(buf, key, (size_t)keylen);
481 skey->cast5.keylen = keylen;
493 int cast5_setup(const unsigned char *key, int keylen, int num_rounds, symmetric_key *skey)
496 z = _cast5_setup(key, keylen, num_rounds, skey);
564 if (skey->cast5.keylen > 10) {
605 if (skey->cast5.keylen > 10) {
648 int keylen;
674 if ((err = cast5_setup(tests[i].key, tests[i].keylen, 0, &key)) != CRYPT_OK) {