Open Mobile Alliance DRM Encryption Method
843810Sep 6 2004 — edited Sep 23 2004I'm trying to encrypt an mp3 file for use on a mobile phone using the Open Mobile Alliance DRM v1.0 encryption method 'AES128CBC'. The semantics of this method are:
AES symmetric encryption as defined by NIST.
128 bit keys.
Cipher block chaining mode (CBC).
128 bit initialization vector prefixing the ciphertext.
Padding according to RFC 2630.
However, as a newbie to Java Cryptography I'm not sure if the SunJCE function Cipher.getInstance("AES") returns a compatible cipher. If instead I use the Cipher.getInstance("AES/CBC/?") form which padding scheme is compatible with RFC 2630 and what about the 128 bit initialization?
Any suggestions?