⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 encrypt.c

📁 The Stanford IBE library is a C implementation of the Boneh-Franklin identity-based encryption sche
💻 C
字号:
/* frontend to IBE_encrypt() in ibe_lib.cc * (performs encryption) * Ben Lynn *//*Copyright (C) 2001 Benjamin Lynn (blynn@cs.stanford.edu)See LICENSE for license*/#include <stdlib.h>#include <string.h>#include "ibe_progs.h"#include "format.h"int encrypt(int argc, char **argv){    char **idarray;    int i;    int count;    if (argc < 2) {	printf("Usage: encrypt ID [ID ...]\n\n");	printf("Encrypts stdin for given ID(s) and prints on stdout\n");	return 1;    }    count = argc - 1;    idarray = (char **) alloca(sizeof(char *) * count);    for (i=0; i<count; i++) {	idarray[i] = FMT_make_id(argv[i + 1], NULL, params);    }    FMT_encrypt_stream_array(idarray, count, stdin, stdout, params);    for (i=0; i<count; i++) {	free(idarray[i]);    }    return 0;}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -