static int aes_ecb(EVP_CIPHER_CTX *ctx, unsigned char *out,
			 const unsigned char *in, unsigned int inl)
	{
	RIJNDAEL_KEY *k=ctx->cipher_data;
	while(inl > 0)
		{
		if(ctx->encrypt)
	    		rijndaelEncrypt(k->rd_key,k->rounds, in, out);
		else
	    		rijndaelDecrypt(k->rd_key,k->rounds, in, out);
		inl-=16;
		in+=16;
		out+=16;
		}
	assert(inl == 0);

	return 1;
	}