Lines Matching refs:kciphers
653 crypto_get_mechanism_list_t *kciphers = NULL;
665 kciphers = malloc(sizeof (crypto_get_mechanism_list_t) +
667 if (kciphers == NULL)
670 kciphers->ml_count = count;
678 if (ioctl(fd, CRYPTO_GET_MECHANISM_LIST, kciphers) == -1) {
683 if (kciphers->ml_return_value == CRYPTO_BUFFER_TOO_SMALL) {
684 count = kciphers->ml_count;
685 free(kciphers);
686 kciphers = malloc(sizeof (crypto_get_mechanism_list_t) +
688 if (kciphers == NULL) {
693 kciphers->ml_count = count;
695 if (ioctl(fd, CRYPTO_GET_MECHANISM_LIST, kciphers) == -1) {
701 if (kciphers->ml_return_value != CRYPTO_SUCCESS) {
704 kciphers->ml_return_value);
713 count = kciphers->ml_count;
716 strcasecmp(cipher->name, kciphers->ml_list[i]) == 0)
719 strcasecmp(cipher->iv_name, kciphers->ml_list[i]) == 0)
722 free(kciphers);
723 kciphers = NULL;
816 if (kciphers != NULL)
817 free(kciphers);