{
    "properties": {
        "kdf": {
            "enum": [
                "scrypt"
            ],
            "type": "string"
        },
        "kdfparams": {
            "additionalProperties": false,
            "properties": {
                "dklen": {
                    "minimum": 1,
                    "type": "integer"
                },
                "n": {
                    "minimum": 1,
                    "type": "integer"
                },
                "p": {
                    "minimum": 1,
                    "type": "integer"
                },
                "r": {
                    "minimum": 1,
                    "type": "integer"
                },
                "salt": {
                    "pattern": "^(([0-9]|[a-f]){2}){0,32}$",
                    "type": "string"
                }
            },
            "required": [
                "r",
                "p",
                "n",
                "dklen",
                "salt"
            ],
            "type": "object"
        }
    },
    "required": [
        "kdf",
        "kdfparams"
    ],
    "type": "object"
}