Page 1 of 1
					
				implement  KDF and PRF
				Posted: Mon Apr 10, 2017 11:17 pm
				by dabluwt
				Hey all here,
I need to implement SCP03 by myself.  Now I am trying to implement  KDF and PRF. I wonder if there are any API functions beside AES cipher and key handling I could use?  
Thanks a lot.
			 
			
					
				Re: implement  KDF and PRF
				Posted: Tue Apr 11, 2017 5:39 am
				by mabel
				You need to strictly follow the GP spec when implementing SCP03. SO JUST USE AES cipher.
			 
			
					
				Re: implement  KDF and PRF
				Posted: Tue Apr 11, 2017 6:02 am
				by dabluwt
				The main thing I am worried about is implementation of key derivation.
The AES implementation on my card is written by native code. But I wrote this part using JAVA not native code, will there any problems?
			 
			
					
				Re: implement  KDF and PRF
				Posted: Tue Apr 11, 2017 6:18 am
				by mabel
				You don't need to worry about this.
In fact, AES is the same no matter by which language you implement.
Derivation will produce the same results in all languages.