| View previous topic :: View next topic |
| Author |
Message |
coolkehon
Joined: 20 Oct 2008 Posts: 355
|
Posted: Sun Oct 11, 2009 2:28 am Post subject: 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)? |
|
| Back to top |
|
 |
jojojoris
Joined: 30 Mar 2008 Posts: 261
|
Posted: Sun Oct 11, 2009 4:49 pm Post subject: |
|
|
by name is jojojoris
and
I will try to port as soon as possible. _________________
| Code: | int main(){
SetupCallbacks();
makeNiceGame();
sceKernelExitGame();
} |
|
|
| Back to top |
|
 |
coolkehon
Joined: 20 Oct 2008 Posts: 355
|
Posted: Mon Oct 12, 2009 2:11 am Post subject: |
|
|
| well what's the library called because i could use one for the pc side to learn with right now. I'm not sure if the others are cross-platform enough |
|
| Back to top |
|
 |
jojojoris
Joined: 30 Mar 2008 Posts: 261
|
Posted: Mon Oct 12, 2009 5:02 am Post subject: |
|
|
I'm afraid i am not able to port the GnuGP lib. It depends on a lib which i failed to port (libGcrypt). _________________
| Code: | int main(){
SetupCallbacks();
makeNiceGame();
sceKernelExitGame();
} |
|
|
| Back to top |
|
 |
coolkehon
Joined: 20 Oct 2008 Posts: 355
|
Posted: Mon Oct 12, 2009 8:41 am Post subject: |
|
|
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: | #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)
|
|
|
| Back to top |
|
 |
|