GPG library for the psp
GPG library for the psp
I know that hashlib, cryptopp, and openssl have been ported to the psp (thanks jojojarias) but is there a gpg library for the psp? or is there a library that might be capable of being ported to the psp (I may try to port)?
by name is jojojoris
and
I will try to port as soon as possible.
and
I will try to port as soon as possible.
Code: Select all
int main(){
SetupCallbacks();
makeNiceGame();
sceKernelExitGame();
}
I'm afraid i am not able to port the GnuGP lib. It depends on a lib which i failed to port (libGcrypt).
Code: Select all
int main(){
SetupCallbacks();
makeNiceGame();
sceKernelExitGame();
}
no worries I'll just use the rsa in cryptopp also I wanted the CMAC mode of operation so I went a head and modified your makefile to compile the latest rev 477 from the cryptopp repo on sourceforge here it is
Code: Select all
#makfile originally by jojojaris
#but modified to port cryptopp 5.6.0 rev 447 by coolkehon
PREFIX=$(shell psp-config –psp-prefix)
PREFIX=/usr/local/pspdev/psp
TARGET_LIB = libcryptopp.a
SRCS = $(wildcard *.cpp)
ifeq ($(SRCS),) # workaround wildcard function bug in GNU Make 3.77
SRCS = $(shell echo *.cpp)
endif
#pre objects so that they can be removed
PRE_OBJS = $(SRCS:.cpp=.o)
#here to remove the test objects from library
TESTOBJS = bench.o bench2.o test.o validat1.o validat2.o validat3.o adhoc.o datatest.o regtest.o fipsalgt.o dlltest.o
OBJS = $(filter-out $(TESTOBJS),$(PRE_OBJS))
INCDIR =
CFLAGS = -O2 -G0 -Wall
CXXFLAGS = $(CFLAGS)
ASFLAGS = $(CFLAGS)
LIBDIR =
#LDFLAGS = -flat_namespace -undefined suppress -m
LDFLAGS =
LIBS=-lstdc++
PSPSDK=$(shell psp-config --pspsdk-path)
include $(PSPSDK)/lib/build.mak
install:
mkdir -p $(PREFIX)/include/cryptopp
cp *.h $(PREFIX)/include/cryptopp
cp *.a $(PREFIX)/lib
tell:
echo $(PREFIX)