66 static inline int sceSblDmac5AesCbcEnc(
const void *src,
void *dst,
SceSize length,
const void *key,
SceSize keysize,
void *iv)
72 1 | 8 | (((keysize << 2) - 0x100) & 0x300)
76 static inline int sceSblDmac5AesCbcDec(
const void *src,
void *dst,
SceSize length,
const void *key,
SceSize keysize,
void *iv)
82 2 | 8 | (((keysize << 2) - 0x100) & 0x300)
86 static inline int sceSblDmac5AesCtrEnc(
const void *src,
void *dst,
SceSize length,
const void *key,
SceSize keysize,
void *iv)
92 1 | 0x20 | (((keysize << 2) - 0x100) & 0x300)
96 static inline int sceSblDmac5AesCtrDec(
const void *src,
void *dst,
SceSize length,
const void *key,
SceSize keysize,
void *iv)
102 2 | 0x20 | (((keysize << 2) - 0x100) & 0x300)
106 static inline int sceSblDmac5Sha256Digest(
const void *src,
void *dst,
SceSize length)
111 ctx.
state[0] = __builtin_bswap32(0x6a09e667);
112 ctx.
state[1] = __builtin_bswap32(0xbb67ae85);
113 ctx.
state[2] = __builtin_bswap32(0x3c6ef372);
114 ctx.
state[3] = __builtin_bswap32(0xa54ff53a);
115 ctx.
state[4] = __builtin_bswap32(0x510e527f);
116 ctx.
state[5] = __builtin_bswap32(0x9b05688c);
117 ctx.
state[6] = __builtin_bswap32(0x1f83d9ab);
118 ctx.
state[7] = __builtin_bswap32(0x5be0cd19);
uint32_t length
Definition: bt.h:7
int sceSblDmac5EncDec(SceSblDmac5EncDecParam *param, SceUInt32 command)
Execute DMAC5 encdec command.
void * iv
Definition: dmac5.h:23
SceUInt64 length
Definition: dmac5.h:29
void * dst
Definition: dmac5.h:19
SceUInt32 state[8]
Definition: dmac5.h:28
int sceSblDmac5HashTransform(SceSblDmac5HashTransformParam *param, SceUInt32 command, SceUInt32 extra)
Execute DMAC5 hash transform command.
SceSize length
Definition: dmac5.h:20
void * ctx
Definition: dmac5.h:39
SceSize keysize
Definition: dmac5.h:38
VITASDK_BUILD_ASSERT_EQ(0x18, SceSblDmac5EncDecParam)
const void * src
Definition: dmac5.h:34
SceSize length
Definition: dmac5.h:36
void * dst
Definition: dmac5.h:35
const void * key
Definition: dmac5.h:37
SceSize keysize
Definition: dmac5.h:22
const void * key
Definition: dmac5.h:21
const void * src
Definition: dmac5.h:18
unsigned int SceSize
Definition: types.h:56
uint64_t SceUInt64
Definition: types.h:51
uint32_t SceUInt32
Definition: types.h:45