Lines Matching defs:lrw
705 symmetric_LRW lrw;
714 if ((err = lrw_start(find_cipher("aes"), iv, key, 16, tweak, 0, &lrw)) != CRYPT_OK) {
715 fprintf(stderr, "Error starting LRW-AES: %s\n", error_to_string(err));
724 if ((err = lrw_encrypt(buf, buf, x, &lrw)) != CRYPT_OK) {
725 fprintf(stderr, "Error encrypting with LRW-AES: %s\n", error_to_string(err));
737 if ((err = lrw_setiv(iv, 16, &lrw)) != CRYPT_OK) {
749 if ((err = lrw_decrypt(buf, buf, x, &lrw)) != CRYPT_OK) {
750 fprintf(stderr, "Error decrypting with LRW-AES: %s\n", error_to_string(err));
760 lrw_done(&lrw);
780 printf("Generating LRW vectors..."); fflush(stdout); lrw_gen(); printf("done\n");